KVIrc 5.2.6
Developer APIs
KviKvsTreeNodeSpecialCommandSwitch.h
Go to the documentation of this file.
1#ifndef _KVI_KVS_TREENODE_SPECIALCOMMANDSWITCH_H_
2#define _KVI_KVS_TREENODE_SPECIALCOMMANDSWITCH_H_
3//=============================================================================
4//
5// File : KviKvsTreeNodeSpecialCommandSwitch.h
6// Creation date : Fri 02 Jan 2004 13:54:00 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC client distribution
9// Copyright (C) 2004-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 "KviQString.h"
29#include "KviKvsTreeNode.h"
31
35class KviKvsVariant;
36
54
56{
57public:
58 KviKvsTreeNodeSpecialCommandSwitchLabelCase(const QChar * pLocation);
60
61public:
62 virtual void contextDescription(QString & szBuffer);
63 virtual void dump(const char * prefix);
64 virtual bool execute(KviKvsRunTimeContext * c, KviKvsVariant * pRealParameter, bool * bPassThrough);
65};
66
68{
69public:
70 KviKvsTreeNodeSpecialCommandSwitchLabelMatch(const QChar * pLocation);
72
73public:
74 virtual void contextDescription(QString & szBuffer);
75 virtual void dump(const char * prefix);
76 virtual bool execute(KviKvsRunTimeContext * c, KviKvsVariant * pRealParameter, bool * bPassThrough);
77};
78
80{
81public:
82 KviKvsTreeNodeSpecialCommandSwitchLabelRegexp(const QChar * pLocation);
84
85public:
86 virtual void contextDescription(QString & szBuffer);
87 virtual void dump(const char * prefix);
88 virtual bool execute(KviKvsRunTimeContext * c, KviKvsVariant * pRealParameter, bool * bPassThrough);
89};
90
92{
93public:
96
97public:
98 virtual void dump(const char * prefix);
99 virtual void contextDescription(QString & szBuffer);
100 virtual bool execute(KviKvsRunTimeContext * c, KviKvsVariant * pRealParameter, bool * bPassThrough);
101};
102
104{
105public:
108
109private:
112public:
114 bool isEmpty() { return m_pLabels->isEmpty(); };
115 virtual void contextDescription(QString & szBuffer);
116 virtual void dump(const char * prefix);
117 virtual bool execute(KviKvsRunTimeContext * c);
118};
119
120#endif
Treenode instruction handling.
Helper functions for the QString class.
Definition KviKvsRunTimeContext.h:104
Definition KviKvsTreeNodeData.h:35
Definition KviKvsTreeNodeExpression.h:68
Treenode class to handle instructions.
Definition KviKvsTreeNodeInstruction.h:43
virtual bool execute(KviKvsRunTimeContext *c, KviKvsVariant *pRealParameter, bool *bPassThrough)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:90
KviKvsTreeNodeSpecialCommandSwitchLabelCase(const QChar *pLocation)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:66
virtual bool execute(KviKvsRunTimeContext *c, KviKvsVariant *pRealParameter, bool *bPassThrough)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:296
KviKvsTreeNodeSpecialCommandSwitchLabelDefault(const QChar *pLocation)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:274
KviKvsTreeNodeSpecialCommandSwitchLabelMatch(const QChar *pLocation)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:160
virtual bool execute(KviKvsRunTimeContext *c, KviKvsVariant *pRealParameter, bool *bPassThrough)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:184
KviKvsTreeNodeSpecialCommandSwitchLabelRegexp(const QChar *pLocation)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:217
virtual bool execute(KviKvsRunTimeContext *c, KviKvsVariant *pRealParameter, bool *bPassThrough)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:241
Definition KviKvsTreeNodeSpecialCommandSwitch.h:38
KviKvsTreeNodeInstruction * m_pInstruction
Definition KviKvsTreeNodeSpecialCommandSwitch.h:45
bool m_bHasTerminatingBreak
Definition KviKvsTreeNodeSpecialCommandSwitch.h:46
virtual bool execute(KviKvsRunTimeContext *c, KviKvsVariant *pRealParameter, bool *bPassThrough)=0
KviKvsTreeNodeSpecialCommandSwitchLabel(const QChar *pLocation)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:32
KviKvsTreeNodeData * m_pParameter
Definition KviKvsTreeNodeSpecialCommandSwitch.h:44
void setInstruction(KviKvsTreeNodeInstruction *pInstruction)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:57
void setTerminatingBreak(bool b)
Definition KviKvsTreeNodeSpecialCommandSwitch.h:51
void setParameter(KviKvsTreeNodeData *pParameter)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:48
KviKvsTreeNodeExpression * m_pExpression
Definition KviKvsTreeNodeSpecialCommandSwitch.h:110
KviPointerList< KviKvsTreeNodeSpecialCommandSwitchLabel > * m_pLabels
Definition KviKvsTreeNodeSpecialCommandSwitch.h:111
bool isEmpty()
Definition KviKvsTreeNodeSpecialCommandSwitch.h:114
void addLabel(KviKvsTreeNodeSpecialCommandSwitchLabel *l)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:328
KviKvsTreeNodeSpecialCommandSwitch(const QChar *pLocation, KviKvsTreeNodeExpression *e)
Definition KviKvsTreeNodeSpecialCommandSwitch.cpp:313
KviKvsTreeNodeSpecialCommand(const QChar *pLocation, const QString &szCmdName)
Definition KviKvsTreeNodeSpecialCommand.cpp:27
virtual void contextDescription(QString &szBuffer)=0
Sets the buffer.
KviKvsTreeNode(const QChar *pLocation)
Constructs the treenode object.
Definition KviKvsTreeNodeBase.cpp:27
virtual void dump(const char *prefix)=0
Dumps the tree.
This class defines a new data type which contains variant data.
Definition KviKvsVariant.h:352
A template double linked list of pointers.
Definition KviPointerList.h:371
#define e
Definition detector.cpp:70
#define l
Definition detector.cpp:77
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127
char szBuffer[4096]
Definition winamp.cpp:77