KVIrc  4.9.2
DeveloperAPIs
KviKvsCoreFunctions.h
Go to the documentation of this file.
1 #ifndef _KVI_KVS_COREFUNCTIONS_H_
2 #define _KVI_KVS_COREFUNCTIONS_H_
3 //=============================================================================
4 //
5 // File : KviKvsCoreFunctions.h
6 // Creation date : Fri 31 Oct 2003 01:52:04 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2003-2010 Szymon Stefanek <pragma at kvirc dot net>
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "kvi_settings.h"
28 #include "KviKvsRunTimeContext.h"
29 #include "KviKvsVariantList.h"
30 #include "KviKvsVariant.h"
32 
33 #define KVSCF(_name) bool _name(KviKvsRunTimeContext * __pContext, KviKvsVariantList * __pParams, KviKvsVariant * __pRetBuffer)
34 
35 #define KVSCF_pContext __pContext
36 #define KVSCF_pParams __pParams
37 #define KVSCF_pRetBuffer __pRetBuffer
38 
39 #define KVSCF_PARAMETER(a, b, c, d) KVS_PARAMETER(a, b, c, d)
40 
41 #define KVSCF_PARAMETERS_BEGIN \
42  KVS_PARAMETERS_BEGIN(parameter_format_list)
43 
44 #define KVSCF_PARAMETERS_END \
45  KVS_PARAMETERS_END \
46  if(!KviKvsParameterProcessor::process(KVSCF_pParams, KVSCF_pContext, parameter_format_list)) \
47  return false;
48 
49 namespace KviKvsCoreFunctions
50 {
51  // a_f
52  KVSCF(active);
53  KVSCF(aliasBody);
54  KVSCF(array);
55  KVSCF(asciiToBase64);
56  KVSCF(asciiToHex);
57  KVSCF(avatar);
58  KVSCF(away);
59  KVSCF(b);
60  KVSCF(base64ToAscii);
61  KVSCF(boolean);
62  KVSCF(certificate);
63  KVSCF(channel);
64  KVSCF(charCKEYWORDWORKAROUND);
65  KVSCF(classDefined);
66  KVSCF(console);
67  KVSCF(context);
68  KVSCF(countStatusBarItems);
69  KVSCF(cr);
70  KVSCF(date);
71  KVSCF(escape);
72  KVSCF(falseCKEYWORDWORKAROUND);
73  KVSCF(features);
74  KVSCF(firstConnectedConsole);
75  KVSCF(flatten);
76  KVSCF(fmtlink);
77  // g_l
78  KVSCF(gender);
79  KVSCF(globals);
80  KVSCF(hash);
81  KVSCF(inputText);
82  KVSCF(hexToAscii);
83  KVSCF(hostname);
84  KVSCF(hptimestamp);
85  KVSCF(icon);
86  KVSCF(iconName);
87  KVSCF(insideAlias);
88  KVSCF(integer);
89  KVSCF(isAnyConsoleConnected);
90  KVSCF(isBot);
91  KVSCF(isEmpty);
92  KVSCF(isEventEnabled);
93  KVSCF(isNumeric);
94  KVSCF(isMeOp);
95  KVSCF(isMeUserOp);
96  KVSCF(isMeHalfOp);
97  KVSCF(isMeVoice);
98  KVSCF(isMainWindowActive);
99  KVSCF(isMainWindowMinimized);
100  KVSCF(isSet);
101  KVSCF(isTimer);
102  KVSCF(isWellKnown);
103  KVSCF(k);
104  KVSCF(keys);
105  KVSCF(lag);
106  KVSCF(lang);
107  KVSCF(length);
108  KVSCF(lf);
109  KVSCF(link);
110  KVSCF(listtimers);
111  // m_r
112  KVSCF(mask);
113  KVSCF(me);
114  KVSCF(msgtype);
115  KVSCF(newCKEYWORDWORKAROUND);
116  KVSCF(nothing);
117  KVSCF(nullCKEYWORDWORKAROUND);
118  KVSCF(o);
119  KVSCF(option);
120  KVSCF(query);
121  KVSCF(r);
122  KVSCF(rand);
123  KVSCF(real);
124  KVSCF(realname);
125  KVSCF(receivedBytes);
126  KVSCF(rsort);
127  // s_z
128  KVSCF(scriptContextName);
129  KVSCF(selected);
130  KVSCF(sentBytes);
131  KVSCF(serialize);
132  KVSCF(server);
133  KVSCF(sort);
134  KVSCF(split);
135  KVSCF(string);
136  KVSCF(sw);
137  KVSCF(target);
138  KVSCF(thisCKEYWORDWORKAROUND);
139  KVSCF(timeCFUNCTIONWORKAROUND);
140  KVSCF(tr);
141  KVSCF(trueCKEYWORDWORKAROUND);
142  KVSCF(typeofCKEYWORDWORKAROUND);
143  KVSCF(u);
144  KVSCF(uflags);
145  KVSCF(unicode);
146  KVSCF(unixtime);
147  KVSCF(unserialize);
148  KVSCF(username);
149  KVSCF(version);
150  KVSCF(window);
151  // specials
152  KVSCF(strayAt);
153  KVSCF(mightBeStrayAtOrThis);
154  //bool redirectToModule(const QString &szFrom,const QString &szModName,const QString &szFuncName
155 
156  void init();
157 };
158 
159 #endif
KVSCF(strayAt)
Definition: KviKvsCoreFunctions.cpp:147
#define k
Definition: detector.cpp:75
KVIRC_API void split(QString url, KviIrcUrlParts &parts)
Definition: KviIrcUrl.cpp:104
QString features()
Returns the list of features compiled in the KVIrc executable.
Definition: KviBuildInfo.cpp:174
#define r
Definition: detector.cpp:82
#define o
Definition: detector.cpp:79
QString version()
Definition: KviRuntimeInfo.cpp:671
Parser class to handle variant variables lists.
#define u
Definition: detector.cpp:85
Handling of variant data type in KVS.
void init()
Definition: KviKvsCoreFunctions.cpp:32
This file contains compile time settings.
QString hostname()
Definition: KviRuntimeInfo.cpp:720