KVIrc 5.2.0
Developer APIs
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
34class KviKvsScript;
36
56
58{
59 friend class KviKvsObject;
60 friend class KviKvsObjectClass;
61
62protected:
63 KviKvsObjectScriptFunctionHandler(const QString & szScriptContext, const QString & szCode, const QString & szReminder, unsigned int uFlags = 0);
65
66public:
68
69protected:
71 QString m_szReminder;
72
73protected:
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
99
116
133
134#endif
bool(KviKvsObject::* KviKvsObjectFunctionHandlerProc)(KviKvsObjectFunctionCall *pCall)
Definition KviKvsObjectClass.h:45
Helper functions for the QString class.
Definition KviKvsObjectClass.h:50
Definition KviKvsObjectFunctionHandlerImpl.h:38
KviKvsObjectFunctionHandlerProc m_pProc
Definition KviKvsObjectFunctionHandlerImpl.h:50
Definition KviKvsObjectFunctionCall.h:34
Definition KviKvsObjectFunctionHandler.h:35
virtual bool isScriptHandler()
Definition KviKvsObjectFunctionHandler.cpp:36
virtual KviKvsObjectFunctionHandler * clone()=0
virtual QString reminder()
Definition KviKvsObjectFunctionHandler.cpp:45
virtual QString scriptHandlerCode()
Definition KviKvsObjectFunctionHandler.cpp:41
virtual bool call(KviKvsObject *pObject, KviKvsObjectFunctionCall *pCall)=0
Definition KviKvsObjectFunctionHandlerImpl.h:58
virtual void setReminder(const QString &szReminder)
Definition KviKvsObjectFunctionHandlerImpl.h:77
QString m_szReminder
Definition KviKvsObjectFunctionHandlerImpl.h:71
KviKvsScript * m_pHandler
Definition KviKvsObjectFunctionHandlerImpl.h:70
Definition KviKvsObjectFunctionHandlerImpl.h:101
virtual ~KviKvsObjectStandardFalseReturnFunctionHandler()
Definition KviKvsObjectFunctionHandlerImpl.h:110
KviKvsObjectStandardFalseReturnFunctionHandler()
Definition KviKvsObjectFunctionHandlerImpl.h:106
Definition KviKvsObjectFunctionHandlerImpl.h:118
KviKvsObjectStandardNothingReturnFunctionHandler()
Definition KviKvsObjectFunctionHandlerImpl.h:123
virtual ~KviKvsObjectStandardNothingReturnFunctionHandler()
Definition KviKvsObjectFunctionHandlerImpl.h:127
Definition KviKvsObjectFunctionHandlerImpl.h:84
KviKvsObjectStandardTrueReturnFunctionHandler()
Definition KviKvsObjectFunctionHandlerImpl.h:89
virtual ~KviKvsObjectStandardTrueReturnFunctionHandler()
Definition KviKvsObjectFunctionHandlerImpl.h:93
Definition KviKvsObject.h:51
The KVIrc Script class.
Definition KviKvsScript.h:60
#define h
Definition detector.cpp:73
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127