XSettingsManager.h
/*
* $Id: XSettingsManager.h 2839 2009-09-28 11:36:20Z karijes $
*
* Manager part of XSETTINGS protocol
* Based on implementation from Owen Tylor, copyright (c) 2001 Red Hat, inc.
* Copyright (c) 2005-2007 edelib authors
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_XSETTINGSMANAGER_H__
#define __EDELIB_XSETTINGSMANAGER_H__
#include "XSettingsCommon.h"
EDELIB_NS_BEGIN
class EDELIB_API XSettingsManager {
private:
E_DISABLE_CLASS_COPY(XSettingsManager)
protected:
XSettingsData* manager_data;
public:
XSettingsManager() : manager_data(NULL) { }
~XSettingsManager() { clear(); }
bool init(Display* dpy, int screen);
void clear(void);
static bool manager_running(Display* dpy, int screen);
bool should_terminate(const XEvent* xev);
void set(const char* name, int val);
void set(const char* name, const char* val);
void set(const char* name, unsigned short red, unsigned short green, unsigned short blue, unsigned short alpha);
void notify(void);
};
EDELIB_NS_END
#endif
edelib::XSettingsManager::~XSettingsManager
~XSettingsManager()
Definition: XSettingsManager.h:55
edelib::XSettingsManager::XSettingsManager
XSettingsManager()
Definition: XSettingsManager.h:50
edelib::XSettingsManager::manager_data
XSettingsData * manager_data
Definition: XSettingsManager.h:44
edelib::XSettingsData
Main data shared between client and manager.
Definition: XSettingsCommon.h:122
E_DISABLE_CLASS_COPY
#define E_DISABLE_CLASS_COPY(klass)
Definition: edelib-global.h:161
edelib::XSettingsManager
Manager part of XSETTINGS protocol.
Definition: XSettingsManager.h:38