1 /*
2  * This file is part of Licq, an instant messaging client for UNIX.
3  * Copyright (C) 2007-2011 Licq developers
4  *
5  * Licq is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * Licq is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with Licq; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19 
20 #ifndef CONF_H
21 #define CONF_H
22 
23 #include <string>
24 
25 #include <aosd.h>
26 
27 typedef enum
28 {
29   GROUP_TYPE_NONE = 0,
30   GROUP_TYPE_ONLINE_NOTIFY,
31   GROUP_TYPE_ALL
32 } UserGroupType;
33 
34 class Conf
35 {
36 private:
37   void loadConfig();
38 
39   bool markSecure;
40   bool mouseActive;
41   bool notifyOnly;
42   bool wait;
43 
44   std::string backColor;
45   std::string font;
46   std::string ownerModes;
47   std::string ownerModesMsg;
48   std::string shadowColor;
49   std::string textColor;
50   std::string textControlColor;
51 
52   AosdCoordinate posHorizontal;
53   AosdCoordinate posVertical;
54 
55   int offsetHorizontal;
56   int offsetVertical;
57   int shadowOffset;
58   int wrapWidth;
59   int maxLines;
60 
61   unsigned backOpacity;
62   unsigned delayPerChar;
63   unsigned fadeFull;
64   unsigned fadeIn;
65   unsigned fadeOut;
66   unsigned marginHorizontal;
67   unsigned marginVertical;
68   unsigned quietTimeout;
69   unsigned shadowOpacity;
70   unsigned textOpacity;
71 
72   UserGroupType autoResponse;
73   UserGroupType logonLogoff;
74   UserGroupType showMessage;
75   UserGroupType statusChange;
76 
77   friend class Iface;
78 };
79 
80 #endif
81 
82 /* vim: set ts=2 sw=2 et : */
83