edelib
1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
edelib
XSettingsManager.h
1
/*
2
* $Id: XSettingsManager.h 2839 2009-09-28 11:36:20Z karijes $
3
*
4
* Manager part of XSETTINGS protocol
5
* Based on implementation from Owen Tylor, copyright (c) 2001 Red Hat, inc.
6
* Copyright (c) 2005-2007 edelib authors
7
*
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
12
*
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public License
19
* along with this library. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef __EDELIB_XSETTINGSMANAGER_H__
23
#define __EDELIB_XSETTINGSMANAGER_H__
24
25
#include "XSettingsCommon.h"
26
27
EDELIB_NS_BEGIN
28
38
class
EDELIB_API
XSettingsManager
{
39
private
:
40
E_DISABLE_CLASS_COPY
(
XSettingsManager
)
41
42
protected
:
44
XSettingsData
*
manager_data
;
45
46
public
:
50
XSettingsManager
() : manager_data(NULL) { }
51
55
~XSettingsManager
() { clear(); }
56
63
bool
init(Display* dpy,
int
screen);
64
69
void
clear(
void
);
70
77
static
bool
manager_running(Display* dpy,
int
screen);
78
84
bool
should_terminate(
const
XEvent* xev);
85
91
void
set
(
const
char
* name,
int
val);
92
98
void
set
(
const
char
* name,
const
char
* val);
99
108
void
set
(
const
char
* name,
unsigned
short
red,
unsigned
short
green,
unsigned
short
blue,
unsigned
short
alpha);
109
113
void
notify(
void
);
114
};
115
116
EDELIB_NS_END
117
#endif
Generated on Wed Feb 24 2016 11:00:42 for edelib by
1.8.2