KVIrc  4.9.2
DeveloperAPIs
KviKvsObjectFunctionHandlerImpl.h
Go to the documentation of this file.
1 #ifndef _KVI_KVS_OBJECT_FUNCTIONHANDLERIMPL_H_
2 #define _KVI_KVS_OBJECT_FUNCTIONHANDLERIMPL_H_
3 //=============================================================================
4 //
5 // File : KviKvsObjectFunctionHandlerImpl.h
6 // Creation date : Sun 24 Apr 2005 04:01:14 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2005-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 "KviKvsObject.h"
29 #include "KviKvsObjectClass.h"
31 #include "KviQString.h"
32 
33 class KviKvsObjectClass;
34 class KviKvsScript;
36 
38 {
39  friend class KviKvsObject;
40  friend class KviKvsObjectClass;
41 
42 protected:
45 
46 public:
48 
49 protected:
51 
52 protected:
54  virtual bool call(KviKvsObject * pObject, KviKvsObjectFunctionCall * pCall);
55 };
56 
58 {
59  friend class KviKvsObject;
60  friend class KviKvsObjectClass;
61 
62 protected:
63  KviKvsObjectScriptFunctionHandler(const QString & szScriptContext, const QString & szCode, const QString & szReminder, unsigned int uFlags = 0);
65 
66 public:
68 
69 protected:
71  QString m_szReminder;
72 
73 protected:
74  virtual bool isScriptHandler();
75  virtual QString scriptHandlerCode();
76  virtual QString reminder();
77  virtual void setReminder(const QString & szReminder) { m_szReminder = szReminder; };
78 
80  virtual bool call(KviKvsObject * pObject, KviKvsObjectFunctionCall * pCall);
81 };
82 
84 {
85  friend class KviKvsObject;
86  friend class KviKvsObjectClass;
87 
88 protected:
91 
92 public:
94 
95 protected:
97  virtual bool call(KviKvsObject * pObject, KviKvsObjectFunctionCall * pCall);
98 };
99 
101 {
102  friend class KviKvsObject;
103  friend class KviKvsObjectClass;
104 
105 protected:
108 
109 public:
111 
112 protected:
114  virtual bool call(KviKvsObject * pObject, KviKvsObjectFunctionCall * pCall);
115 };
116 
118 {
119  friend class KviKvsObject;
120  friend class KviKvsObjectClass;
121 
122 protected:
125 
126 public:
128 
129 protected:
131  virtual bool call(KviKvsObject * pObject, KviKvsObjectFunctionCall * pCall);
132 };
133 
134 #endif
#define KVIRC_API
Definition: kvi_settings.h:128
Definition: KviKvsObjectFunctionHandlerImpl.h:37
Definition: KviKvsObjectFunctionHandlerImpl.h:100
The KVIrc Script class.
Definition: KviKvsScript.h:59
Definition: KviKvsObjectFunctionCall.h:33
Definition: KviKvsObject.h:50
Definition: KviKvsObjectFunctionHandlerImpl.h:117
Definition: KviKvsObjectFunctionHandlerImpl.h:83
Definition: KviKvsObjectClass.h:49
bool(KviKvsObject::* KviKvsObjectFunctionHandlerProc)(KviKvsObjectFunctionCall *pCall)
Definition: KviKvsObjectClass.h:45
virtual KviKvsObjectFunctionHandler * clone()=0
virtual ~KviKvsObjectStandardNothingReturnFunctionHandler()
Definition: KviKvsObjectFunctionHandlerImpl.h:127
virtual void setReminder(const QString &szReminder)
Definition: KviKvsObjectFunctionHandlerImpl.h:77
KviKvsObjectStandardNothingReturnFunctionHandler()
Definition: KviKvsObjectFunctionHandlerImpl.h:123
virtual bool isScriptHandler()
Definition: KviKvsObjectFunctionHandler.cpp:36
KviKvsObjectStandardFalseReturnFunctionHandler()
Definition: KviKvsObjectFunctionHandlerImpl.h:106
#define h
Definition: detector.cpp:72
virtual ~KviKvsObjectStandardFalseReturnFunctionHandler()
Definition: KviKvsObjectFunctionHandlerImpl.h:110
virtual ~KviKvsObjectStandardTrueReturnFunctionHandler()
Definition: KviKvsObjectFunctionHandlerImpl.h:93
virtual QString reminder()
Definition: KviKvsObjectFunctionHandler.cpp:45
KviKvsObjectStandardTrueReturnFunctionHandler()
Definition: KviKvsObjectFunctionHandlerImpl.h:89
QString m_szReminder
Definition: KviKvsObjectFunctionHandlerImpl.h:71
Definition: KviKvsObjectFunctionHandlerImpl.h:57
This file contains compile time settings.
virtual QString scriptHandlerCode()
Definition: KviKvsObjectFunctionHandler.cpp:41
virtual bool call(KviKvsObject *pObject, KviKvsObjectFunctionCall *pCall)=0
Helper functions for the QString class.
KviKvsScript * m_pHandler
Definition: KviKvsObjectFunctionHandlerImpl.h:70
KviKvsObjectFunctionHandlerProc m_pProc
Definition: KviKvsObjectFunctionHandlerImpl.h:50
Definition: KviKvsObjectFunctionHandler.h:34