2007-09-18 18:06:09 +04:00
|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Evoke, head honcho of everything
|
|
|
|
* Part of Equinox Desktop Environment (EDE).
|
|
|
|
* Copyright (c) 2000-2007 EDE Authors.
|
|
|
|
*
|
|
|
|
* This program is licensed under terms of the
|
|
|
|
* GNU General Public License version 2 or newer.
|
|
|
|
* See COPYING for details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __XSM_H__
|
|
|
|
#define __XSM_H__
|
|
|
|
|
2007-10-26 16:01:01 +04:00
|
|
|
#include <edelib/XSettingsManager.h>
|
2007-09-18 18:06:09 +04:00
|
|
|
|
|
|
|
/*
|
2007-10-26 16:01:01 +04:00
|
|
|
* XSETTINGS manager with serialization capability.
|
2008-01-16 13:59:02 +03:00
|
|
|
* Also it will write/undo to xrdb (X Resource database).
|
2007-09-19 18:12:34 +04:00
|
|
|
*/
|
2007-10-26 16:01:01 +04:00
|
|
|
class Xsm : public edelib::XSettingsManager {
|
2007-09-18 18:06:09 +04:00
|
|
|
public:
|
|
|
|
Xsm();
|
|
|
|
~Xsm();
|
2007-10-26 16:01:01 +04:00
|
|
|
bool load_serialized(const char* file);
|
|
|
|
bool save_serialized(const char* file);
|
2008-01-16 13:59:02 +03:00
|
|
|
|
|
|
|
// replace XResource values from one from XSETTINGS
|
|
|
|
void xresource_replace(void);
|
|
|
|
// undo old XResource values
|
|
|
|
void xresource_undo(void);
|
2007-09-18 18:06:09 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|