KVIrc 5.2.6
Developer APIs
KviKvsCoreSimpleCommands.h
Go to the documentation of this file.
1#ifndef _KVI_KVS_CORESIMPLECOMMANDS_H_
2#define _KVI_KVS_CORESIMPLECOMMANDS_H_
3//=============================================================================
4//
5// File : KviKvsCoreSimpleCommands.h
6// Creation date : Fri 31 Oct 2003 00:04:25 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 "KviMainWindow.h"
28#include "KviConsoleWindow.h"
29#include "kvi_settings.h"
31#include "KviKvsVariantList.h"
32#include "KviKvsSwitchList.h"
34
35#define KVSCSC(_name) bool _name([[maybe_unused]] KviKvsRunTimeContext * __pContext, [[maybe_unused]] KviKvsVariantList * __pParams, [[maybe_unused]] KviKvsSwitchList * __pSwitches)
36
37#define KVSCSC_pContext __pContext
38#define KVSCSC_pParams __pParams
39#define KVSCSC_pSwitches __pSwitches
40
41#define KVSCSC_PARAMETER(a, b, c, d) KVS_PARAMETER(a, b, c, d)
42
43#define KVSCSC_PARAMETERS_BEGIN \
44 KVS_PARAMETERS_BEGIN(parameter_format_list)
45
46#define KVSCSC_PARAMETERS_END \
47 KVS_PARAMETERS_END \
48 if(!KviKvsParameterProcessor::process(KVSCSC_pParams, KVSCSC_pContext, parameter_format_list)) \
49 return false;
50
51#define KVSCSC_REQUIRE_CONNECTION \
52 if(!KVSCSC_pContext->window()->context()) \
53 return KVSCSC_pContext->errorNoIrcContext(); \
54 if(!KVSCSC_pContext->window()->connection()) \
55 return KVSCSC_pContext->warningNoIrcConnection();
56
57#define KVSCSC_pWindow __pContext->window()
58#define KVSCSC_pConnection __pContext->window()->connection()
59#define KVSCSC_pIrcContext __pContext->context()
60
62{
63 // a_f
64 KVSCSC(away);
65 KVSCSC(back);
66 KVSCSC(ban);
67 KVSCSC(beep);
68 KVSCSC(buttonctl);
69 KVSCSC(cap);
70 KVSCSC(chanadmin);
71 KVSCSC(chanowner);
72 KVSCSC(ctcp);
73 KVSCSC(debugCKEYWORDWORKAROUND);
74 KVSCSC(dechanadmin);
75 KVSCSC(dechanowner);
76 KVSCSC(dehalfop);
77 KVSCSC(deleteCKEYWORDWORKAROUND);
78 KVSCSC(delpopupitem);
79 KVSCSC(deop);
80 KVSCSC(deuserop);
81 KVSCSC(devoice);
82 KVSCSC(echoprivmsg);
83 KVSCSC(echo);
84 KVSCSC(error);
85 KVSCSC(eval);
86 KVSCSC(eventctl);
87 KVSCSC(exit);
88 // g_l
89 KVSCSC(halfop);
90 KVSCSC(halt);
91 KVSCSC(help);
92 KVSCSC(host);
93 KVSCSC(inject);
94 KVSCSC(join);
95 KVSCSC(kick);
96 KVSCSC(killtimer);
97 KVSCSC(listtimers);
98 // m_r
99 KVSCSC(me);
100 KVSCSC(mode);
101 KVSCSC(nick);
102 KVSCSC(notice);
103 KVSCSC(op);
104 KVSCSC(openurl);
105 KVSCSC(operwall);
106 KVSCSC(option);
107 KVSCSC(parse);
108 KVSCSC(part);
109 KVSCSC(play);
110 KVSCSC(popup);
111 KVSCSC(privmsg);
112 KVSCSC(query);
113 KVSCSC(quit);
114 KVSCSC(raise);
115 KVSCSC(raw);
116 KVSCSC(returnCKEYWORDWORKAROUND);
117 KVSCSC(rebind);
118 KVSCSC(rfc2812wrapper);
119 KVSCSC(run);
120 // s_z
121 KVSCSC(say);
122 KVSCSC(server);
123 KVSCSC(setmenu);
124 KVSCSC(setreturn);
125 KVSCSC(squery);
126 KVSCSC(srand);
127 KVSCSC(topic);
128 KVSCSC(trload);
129 KVSCSC(trunload);
130 KVSCSC(unban);
131 KVSCSC(userop);
132 KVSCSC(voice);
133 KVSCSC(warning);
134 KVSCSC(wallops);
135 KVSCSC(who);
136 KVSCSC(whois);
137 KVSCSC(whowas);
138
139 bool multipleModeCommand(KviKvsRunTimeContext * __pContext, KviKvsVariantList * __pParams, KviKvsSwitchList * __pSwitches, char plusminus, char flag);
140
141 void init();
142};
143
144#endif
#define KVSCSC(_name)
Definition KviKvsCoreSimpleCommands.h:35
Parser class to handle variant variables lists.
Definition KviKvsRunTimeContext.h:104
Definition KviKvsSwitchList.h:34
Class to handle variant variables lists.
Definition KviKvsVariantList.h:42
This file contains compile time settings.
Definition KviKvsCoreSimpleCommands.cpp:38
void init()
Definition KviKvsCoreSimpleCommands.cpp:39
bool multipleModeCommand(KviKvsRunTimeContext *__pContext, KviKvsVariantList *__pParams, KviKvsSwitchList *__pSwitches, char plusminus, char flag)
Definition KviKvsCoreSimpleCommands.cpp:152
void quit()
Definition winamp.cpp:125