This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkAway2.h
226 lines (168 loc) · 6.42 KB
/
kAway2.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
/**
* kAway2 Header
*
* Licensed under The GNU Lesser General Public License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright (c) 2005-2006 Sijawusz Pur Rahnama
* @link svn://konnekt.info/kaway2/ kAway2 plugin SVN Repo
* @version $Revision: 51 $
* @modifiedby $LastChangedBy: sija $
* @lastmodified $Date: 2006-10-28 21:39:17 +0200 (So, 28 paź 2006) $
* @license http://creativecommons.org/licenses/LGPL/2.1/
*/
#pragma once
#ifndef __KAWAY2_H__
#define __KAWAY2_H__
namespace kAway2 {
/*
* Values for {cfg::reply::minIntervalType} col
*/
enum enMinIntType {
intervalTypeRcvTime,
intervalTypeSendTime,
intervalTypeBoth
};
const unsigned int net = 667;
const char poweredBy[] = "planet boelex";
namespace api {
const unsigned int api = net * 1000 + IM_USER;
const unsigned int isEnabled = api + 1;
const unsigned int enable = api + 2;
const unsigned int disable = api + 3;
const unsigned int isIgnored = api + 4;
const unsigned int ignore = api + 5;
const unsigned int showAwayWnd = api + 6;
const unsigned int isAway = api + 7;
const unsigned int isBack = api + 8;
const unsigned int isAutoAway = api + 9;
}
namespace ui {
const unsigned int ui = net * 1000;
const unsigned int cfgGroup = ui + 1;
const unsigned int cntCfgGroup = ui + 2;
const unsigned int statusCfgGroup = ui + 3;
const unsigned int replyCfgGroup = ui + 4;
const unsigned int powerInMainWnd = ui + 5;
const unsigned int powerInCntWnd = ui + 6;
const unsigned int powerInTrayMenu = ui + 7;
const unsigned int ignoreBtn = ui + 8;
const unsigned int msgTbGrp = ui + 9;
}
namespace ico {
const unsigned int ico = net * 1000 + 100;
const unsigned int logoSmall = ico + 1;
const unsigned int logoBig = ico + 2;
const unsigned int enable = ico + 3;
const unsigned int disable = ico + 4;
const unsigned int ignore = ico + 5;
const unsigned int unIgnore = ico + 6;
const unsigned int status = ico + 7;
const unsigned int reply = ico + 8;
const unsigned int accept = ico + 9;
const unsigned int cancel = ico + 10;
const unsigned int help = ico + 11;
const unsigned int trash = ico + 12;
const unsigned int msg = ico + 13;
}
namespace act {
const unsigned int act = net * 1000 + 200;
const unsigned int cfgGroupCheckCreate = act + 1;
const unsigned int cfgGroupCheckDestroy = act + 2;
const unsigned int replyCfgGroupCheckCreate = act + 3;
const unsigned int replyCfgGroupCheckDestroy = act + 4;
const unsigned int clearMru = act + 5;
const unsigned int resetCntSettings = act + 6;
}
// dynamiczne akcje
namespace dynAct {
const unsigned int dynAct = net * 1000 + 300;
const unsigned int reply = dynAct + 10;
const unsigned int status = dynAct + 20;
}
namespace cfg {
const unsigned int cfg = net * 1000 + 500;
const unsigned int autoAwaySync = cfg + 1;
const unsigned int useKNotify = cfg + 2;
const unsigned int ircCmds = cfg + 3;
const unsigned int disableOnMsgSend = cfg + 4;
const unsigned int saveToHistory = cfg + 5;
const unsigned int btnInMainWindow = cfg + 6;
const unsigned int btnInCntWindow = cfg + 7;
const unsigned int btnInTrayMenu = cfg + 8;
const unsigned int dateFormat = cfg + 9;
const unsigned int timeFormat = cfg + 10;
const unsigned int mruSize = cfg + 11;
const unsigned int muteOnEnable = cfg + 12;
const unsigned int disableConfirmation = cfg + 13;
const char extParamName[] = "kA2AutoMsgTpl";
const char historyFolder[] = "kAway2";
const char mruName[] = "kA2_awayMsg";
namespace wnd {
const unsigned int wnd = cfg + 50;
const unsigned int changeOnEnable = wnd + 1;
const unsigned int changeInfoOnEnable = wnd + 2;
const unsigned int muteOnEnable = wnd + 3;
const unsigned int onEnableSt = wnd + 4;
}
namespace summary {
const unsigned int summary = cfg + 75;
const unsigned int interval = summary + 1;
const unsigned int inAutoAway = summary + 2;
const unsigned int minMsgCount = summary + 3;
}
namespace fwd {
const unsigned int fwd = cfg + 85;
const unsigned int inAutoAway = fwd + 1;
}
namespace tpl {
const unsigned int tpl = cfg + 100;
const unsigned int enable = tpl + 1;
const unsigned int disable = tpl + 2;
const unsigned int reply = tpl + 3;
const unsigned int email = tpl + 6;
const unsigned int status = tpl + 7;
const unsigned int autoAway = tpl + 8;
}
namespace reply {
const unsigned int reply = cfg + 200;
const unsigned int onEnable = reply + 1;
const unsigned int onDisable = reply + 2;
const unsigned int onMsg = reply + 3;
const unsigned int whenInvisible = reply + 4;
const unsigned int minInterval = reply + 5;
const unsigned int useHtml = reply + 6;
const unsigned int magicKey = reply + 7;
const unsigned int magicKeyNotifyMethod = reply + 8;
const unsigned int netChange = reply + 9;
const unsigned int showInWnd = reply + 10;
const unsigned int minIntervalType = reply + 11;
}
namespace email {
const unsigned int email = cfg + 400;
const unsigned int interval = email + 1;
const unsigned int useHtml = email + 2;
const unsigned int address = email + 3;
const unsigned int subject = email + 4;
namespace smtp {
const unsigned int smtp = cfg + 450;
const unsigned int host = smtp + 1;
const unsigned int port = smtp + 2;
const unsigned int login = smtp + 3;
const unsigned int password = smtp + 4;
}
}
namespace status {
const unsigned int status = cfg + 600;
const unsigned int netChange = status + 1;
const unsigned int whenInvisible = status + 2;
const unsigned int changeOnEnable = status + 3;
const unsigned int changeInfoOnEnable = status + 4;
const unsigned int onEnableSt = status + 5;
const unsigned int onAutoAwaySt = status + 6;
const unsigned int dotsAppend = status + 7;
}
}
}
#endif // __KAWAY2_H__