-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.h
392 lines (261 loc) · 13.1 KB
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
/*
kueue - keep track of your SR queue
(C) 2011 - 2012 Stefan Bogner <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
Have a lot of fun :-)
*/
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QSettings>
#include <QPoint>
#include <QSize>
#include <QByteArray>
class Settings
{
public:
/* General Group */
static QString dBServer();
static void setdBServer( const QString& );
static QString engineer();
static void setEngineer( const QString& );
static QString unityPassword();
static void setUnityPassword( const QString& );
static bool showAppWindow();
static void setShowAppWindow( const bool& );
static bool showTabsAtTop();
static void setShowTabsAtTop( const bool& );
static bool unityEnabled();
static void setUnityEnabled( const bool& );
static bool showDownloadManager();
static void setShowDownloadManager( const bool& );
static QString unityURL();
static void setUnityURL( const QString& );
static bool useDefaultFileManager();
static void setUseDefaultFileManager( const bool& );
static QString otherFileManagerCommand();
static void setOtherFileManagerCommand( const QString& );
static bool useIdleTimeout();
static void setUseIdleTimeout( const bool& );
static int idleTimeoutMinutes();
static void setIdleTimeoutMinutes( const int& );
static int minimumFontSize();
static void setMinimumFontSize( const int& );
static int defaultFontSize();
static void setDefaultFontSize( const int& );
static int popupWindowX();
static void setPopupWindowX( const int& );
static int popupWindowY();
static void setPopupWindowY( const int& );
static bool externalEditorEnabled();
static void setExternalEditorEnabled( const bool& );
static QString editorCommand();
static void setEditorCommand( const QString& );
static QString editorSaveLocation();
static void setEditorSaveLocation( const QString& );
static bool replyFormatEnabled();
static void setReplyFormatEnabled( const bool& );
static int replyFormatLineBreak();
static void setReplyFormatLineBreak( const int& );
static QString downloadDirectory();
static void setDownloadDirectory( const QString& );
static bool useSrDirectory();
static void setUseSrDirectory( const bool& );
static bool autoExtract();
static void setAutoExtract( const bool& );
static bool splitSC();
static void setSplitSC( const bool& );
static bool autoNSA();
static void setAutoNSA( const bool& );
static bool cleanupDownloadDirectory();
static void setCleanupDownloadDirectory( const bool& );
static bool showSystemTray();
static void setShowSystemTray( const bool& );
static bool animateQueue();
static void setAnimateQueue( const bool& );
static bool animateQmon();
static void setAnimateQmon( const bool& );
static int leftMouseButton();
static void setLeftMouseButton( const int& );
static int middleMouseButton();
static void setMiddleMouseButton( const int& );
static int rightMouseButton();
static void setRightMouseButton( const int& );
/* View Group */
static bool showSR();
static void setShowSR( const bool& );
static bool showCR();
static void setShowCR( const bool& );
static bool showSS();
static void setShowSS( const bool& );
static bool sortUpdate();
static void setSortUpdate( const bool& );
static bool sortAge();
static void setSortAge( const bool& );
static bool sortAsc();
static void setSortAsc( const bool& );
static bool showAwaitingCustomer();
static void setShowAwaitingCustomer( const bool& );
static bool showAwaitingSupport();
static void setShowAwaitingSupport( const bool& );
static bool showStatusOthers();
static void setShowStatusOthers( const bool& );
static bool subShowSR();
static void setSubShowSR( const bool& );
static bool subShowCR();
static void setSubShowCR( const bool& );
static bool subShowSS();
static void setSubShowSS( const bool& );
static bool subSortUpdate();
static void setSubSortUpdate( const bool& );
static bool subSortAge();
static void setSubSortAge( const bool& );
static bool subSortAsc();
static void setSubSortAsc( const bool& );
static bool subShowAwaitingCustomer();
static void setSubShowAwaitingCustomer( const bool& );
static bool subShowAwaitingSupport();
static void setSubShowAwaitingSupport( const bool& );
static bool subShowStatusOthers();
static void setSubShowStatusOthers( const bool& );
/* Monitor Group */
static bool monitorEnabled();
static void setMonitorEnabled( const bool& );
static QStringList queuesToMonitor();
static void setQueuesToMonitor( const QStringList& );
static bool showEmptyQueues();
static void setShowEmptyQueues( const bool& );
static bool monitorPersonalBomgar();
static void setMonitorPersonalBomgar( const bool& );
static QString bomgarName();
static void setBomgarName( const QString& );
static QString qmonFilter();
static void setQmonFilter( const QString& );
/* QBoss Group */
static bool qbossFeatures();
static void setQbossFeatures( const bool& );
static QStringList engineerList();
static void setEngineerList( const QStringList& );
/* Stats Group */
static bool statsEnabled();
static void setStatsEnabled( const bool& );
/* Notifications Group */
static bool notificationsDisabled();
static void setNotificationsDisabled( const bool& );
static bool generalNotificationPopup();
static void setGeneralNotificationPopup( const bool& );
static bool generalNotificationSound();
static void setGeneralNotificationSound( const bool& );
static QString generalNotificationSoundFile();
static void setGeneralNotificationSoundFile( const QString& );
static bool generalNotificationWrite();
static void setGeneralNotificationWrite( const bool& );
static QString generalNotificationWriteFile();
static void setGeneralNotificationWriteFile( const QString& );
static bool newPersonalNotificationPopup();
static void setNewPersonalNotificationPopup( const bool& );
static bool newPersonalNotificationSound();
static void setNewPersonalNotificationSound( const bool& );
static QString newPersonalNotificationSoundFile();
static void setNewPersonalNotificationSoundFile( const QString& );
static bool newPersonalNotificationWrite();
static void setNewPersonalNotificationWrite( const bool& );
static QString newPersonalNotificationWriteFile();
static void setNewPersonalNotificationWriteFile( const QString& );
static bool updatePersonalNotificationPopup();
static void setUpdatePersonalNotificationPopup( const bool& );
static bool updatePersonalNotificationSound();
static void setUpdatePersonalNotificationSound( const bool& );
static QString updatePersonalNotificationSoundFile();
static void setUpdatePersonalNotificationSoundFile( const QString& );
static bool updatePersonalNotificationWrite();
static void setUpdatePersonalNotificationWrite( const bool& );
static QString updatePersonalNotificationWriteFile();
static void setUpdatePersonalNotificationWriteFile( const QString& );
static bool bomgarNotificationPopup();
static void setBomgarNotificationPopup( const bool& );
static bool bomgarNotificationSound();
static void setBomgarNotificationSound( const bool& );
static QString bomgarNotificationSoundFile();
static void setBomgarNotificationSoundFile( const QString& );
static bool bomgarNotificationWrite();
static void setBomgarNotificationWrite( const bool& );
static QString bomgarNotificationWriteFile();
static void setBomgarNotificationWriteFile( const QString& );
static bool lowNotificationPopup();
static void setLowNotificationPopup( const bool& );
static bool lowNotificationSound();
static void setLowNotificationSound( const bool& );
static QString lowNotificationSoundFile();
static void setLowNotificationSoundFile( const QString& );
static bool lowNotificationWrite();
static void setLowNotificationWrite( const bool& );
static QString lowNotificationWriteFile();
static void setLowNotificationWriteFile( const QString& );
static bool mediumNotificationPopup();
static void setMediumNotificationPopup( const bool& );
static bool mediumNotificationSound();
static void setMediumNotificationSound( const bool& );
static QString mediumNotificationSoundFile();
static void setMediumNotificationSoundFile( const QString& );
static bool mediumNotificationWrite();
static void setMediumNotificationWrite( const bool& );
static QString mediumNotificationWriteFile();
static void setMediumNotificationWriteFile( const QString& );
static bool urgentNotificationPopup();
static void setUrgentNotificationPopup( const bool& );
static bool urgentNotificationSound();
static void setUrgentNotificationSound( const bool& );
static QString urgentNotificationSoundFile();
static void setUrgentNotificationSoundFile( const QString& );
static bool urgentNotificationWrite();
static void setUrgentNotificationWrite( const bool& );
static QString urgentNotificationWriteFile();
static void setUrgentNotificationWriteFile( const QString& );
static bool highNotificationPopup();
static void setHighNotificationPopup( const bool& );
static bool highNotificationSound();
static void setHighNotificationSound( const bool& );
static QString highNotificationSoundFile();
static void setHighNotificationSoundFile( const QString& );
static bool highNotificationWrite();
static void setHighNotificationWrite( const bool& );
static QString highNotificationWriteFile();
static void setHighNotificationWriteFile( const QString& );
/* Misc */
static bool settingsOK();
static QString appVersion();
static void setAppVersion( const QString& );
static QPoint mainWinPos();
static void setMainWinPos( const QPoint& );
static QSize mainWinSize();
static void setMainWinSize( const QSize& );
static QByteArray mainWinState();
static void setMainWinState( const QByteArray& );
static QPoint detWinPos();
static void setDetWinPos( const QPoint& );
static QSize detWinSize();
static void setDetWinSize( const QSize& );
static QByteArray detWinState();
static void setDetWinState( const QByteArray& );
static QPoint nsaWinPos();
static void setNsaWinPos( const QPoint& );
static QSize nsaWinSize();
static void setNsaWinSize( const QSize& );
static QByteArray nsaWinState();
static void setNsaWinState( const QByteArray& );
static QString nsaVersion();
static void setNsaVersion( const QString& );
};
#endif