1 #ifndef _KVI_KVS_RUNTIMECONTEXT_H_
2 #define _KVI_KVS_RUNTIMECONTEXT_H_
41 class KviKvsReportHandler;
58 : m_pExtendedScopeVariables(0),
59 m_pAliasSwitchList(0),
65 : m_pExtendedScopeVariables(pExtScopeVariables),
66 m_pAliasSwitchList(0),
69 m_bAutoDelete(autoDelete),
72 : m_pExtendedScopeVariables(0),
73 m_pAliasSwitchList(pAliasSwitchList),
76 m_bAutoDelete(autoDelete),
79 : m_pExtendedScopeVariables(0),
80 m_pAliasSwitchList(0),
81 m_pThisObject(pThisObject),
83 m_bAutoDelete(autoDelete),
86 : m_pExtendedScopeVariables(0),
87 m_pAliasSwitchList(0),
89 m_pScriptFilePath(pScriptFilePath),
90 m_bAutoDelete(autoDelete),
99 QString *
popupId() {
return m_pPopupId; };
100 void setPopupId(QString * pPopupId);
155 return m_pWindow->context();
165 return m_pWindow->connection();
171 return m_pLocalVariables;
178 return m_pParameterList;
189 return m_pReturnValue;
196 return m_pDefaultReportLocation;
202 return m_pExtendedData ? m_pExtendedData->extendedScopeVariables() : 0;
206 return m_pExtendedData ? m_pExtendedData->aliasSwitchList() : 0;
210 return m_pExtendedData ? m_pExtendedData->thisObject() : 0;
214 return m_pExtendedData ? m_pExtendedData->scriptFilePath() : 0;
218 return m_pExtendedData ? m_pExtendedData->popupId() : 0;
224 void enterBlockingSection();
229 bool leaveBlockingSection();
234 bool error()
const {
return m_bError; };
238 void error(QString szMsgFmt, ...);
239 void warning(QString szMsgFmt, ...);
241 bool errorNoIrcContext();
242 bool warningNoIrcConnection();
243 bool warningMissingParameter();
265 m_uRunTimeFlags |= BreakPending;
272 return (m_uRunTimeFlags & BreakPending);
277 m_uRunTimeFlags &= ~BreakPending;
283 m_uRunTimeFlags |= ContinuePending;
288 return (m_uRunTimeFlags & ContinuePending);
293 m_uRunTimeFlags &= ~ContinuePending;
301 m_uRunTimeFlags |= HaltCalled;
305 return (m_uRunTimeFlags & HaltCalled);
311 m_uRunTimeFlags |= DisableReporting;
315 return (m_uRunTimeFlags & DisableReporting);
319 m_uRunTimeFlags &= ~DisableReporting;
KviKvsSwitchList * m_pAliasSwitchList
Definition: KviKvsRunTimeContext.h:49
RunTimeFlags
Definition: KviKvsRunTimeContext.h:132
bool error() const
Definition: KviKvsRunTimeContext.h:234
KviWindow * window()
Definition: KviKvsRunTimeContext.h:148
Treenode class.
Definition: KviKvsTreeNodeBase.h:40
KviKvsTreeNode * m_pDefaultReportLocation
Definition: KviKvsRunTimeContext.h:145
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
Definition: KviConsoleWindow.h:75
#define KVIRC_API
Definition: kvi_settings.h:128
void enableReporting()
Definition: KviKvsRunTimeContext.h:317
KviKvsExtendedRunTimeData()
Definition: KviKvsRunTimeContext.h:57
KviKvsExtendedRunTimeData * m_pExtendedData
Definition: KviKvsRunTimeContext.h:141
void setBreakPending()
Definition: KviKvsRunTimeContext.h:263
bool m_bAutoDelete
Definition: KviKvsRunTimeContext.h:52
QString * m_pPopupId
Definition: KviKvsRunTimeContext.h:53
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
KviKvsExtendedRunTimeData(KviKvsObject *pThisObject, bool autoDelete=false)
Definition: KviKvsRunTimeContext.h:78
KviKvsScript * script()
Definition: KviKvsRunTimeContext.h:182
KviKvsVariantList * m_pParameterList
Definition: KviKvsRunTimeContext.h:125
void disableReporting()
Definition: KviKvsRunTimeContext.h:309
The KVIrc Script class.
Definition: KviKvsScript.h:59
An abstraction of a connection to an IRC server.
Definition: KviIrcConnection.h:95
Definition: KviKvsObject.h:50
void setContinuePending()
Definition: KviKvsRunTimeContext.h:281
KviKvsTreeNode * defaultReportLocation()
Definition: KviKvsRunTimeContext.h:194
KviKvsSwitchList * aliasSwitchList()
Definition: KviKvsRunTimeContext.h:204
void handleContinue()
Definition: KviKvsRunTimeContext.h:291
KviKvsExtendedRunTimeData(KviKvsSwitchList *pAliasSwitchList, bool autoDelete=false)
Definition: KviKvsRunTimeContext.h:71
#define kvi_va_list
Definition: kvi_stdarg.h:31
QString * popupId()
Definition: KviKvsRunTimeContext.h:216
bool reportingDisabled()
Definition: KviKvsRunTimeContext.h:313
KviKvsHash * extendedScopeVariables()
Definition: KviKvsRunTimeContext.h:95
Definition: KviKvsRunTimeContext.h:43
QString * scriptFilePath()
Definition: KviKvsRunTimeContext.h:212
void setHaltCalled()
Definition: KviKvsRunTimeContext.h:299
This class defines a new data type which contains hash data.
Definition: KviKvsHash.h:47
KviConsoleWindow * console()
Definition: KviKvsRunTimeContext.h:158
KviIrcConnection * connection()
Definition: KviKvsRunTimeContext.h:163
Definition: KviKvsSwitchList.h:33
KviKvsVariant * m_pReturnValue
Definition: KviKvsRunTimeContext.h:126
bool continuePending()
Definition: KviKvsRunTimeContext.h:286
void clearError()
Definition: KviKvsRunTimeContext.h:325
KviKvsObject * m_pThisObject
Definition: KviKvsRunTimeContext.h:50
KviKvsObject * thisObject()
Definition: KviKvsRunTimeContext.h:97
bool breakPending()
Definition: KviKvsRunTimeContext.h:270
QString * scriptFilePath()
Definition: KviKvsRunTimeContext.h:98
KviKvsScript * m_pScript
Definition: KviKvsRunTimeContext.h:123
bool haltCalled()
Definition: KviKvsRunTimeContext.h:303
void warning(QString fmt,...)
Definition: KviMessageBox.cpp:41
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
KviKvsExtendedRunTimeData(QString *pScriptFilePath, bool autoDelete=false)
Definition: KviKvsRunTimeContext.h:85
KviIrcContext * context()
Definition: KviKvsRunTimeContext.h:153
Definition: KviKvsRunTimeContext.h:103
KviKvsVariantList * parameterList()
Definition: KviKvsRunTimeContext.h:176
KviKvsSwitchList * aliasSwitchList()
Definition: KviKvsRunTimeContext.h:96
Parser class to handle variant variables lists.
bool m_bError
Definition: KviKvsRunTimeContext.h:144
KviKvsObject * thisObject()
Definition: KviKvsRunTimeContext.h:208
Contains the KviWindow class.
Handling of variant data type in KVS.
QString * m_pScriptFilePath
Definition: KviKvsRunTimeContext.h:51
void handleBreak()
Definition: KviKvsRunTimeContext.h:275
KviKvsHash * localVariables()
Definition: KviKvsRunTimeContext.h:169
KviKvsVariant * returnValue()
Definition: KviKvsRunTimeContext.h:187
void setWindow(KviWindow *pWnd)
Definition: KviKvsRunTimeContext.h:248
Handling of hash data type in KVS.
KviKvsExtendedRunTimeData(KviKvsHash *pExtScopeVariables, bool autoDelete=false)
Definition: KviKvsRunTimeContext.h:64
This file contains compile time settings.
KviKvsHash * m_pLocalVariables
Definition: KviKvsRunTimeContext.h:124
Definition: KviKvsRunTimeCall.h:33
KviKvsHash * m_pExtendedScopeVariables
Definition: KviKvsRunTimeContext.h:48
QString * popupId()
Definition: KviKvsRunTimeContext.h:99
Definition: KviIrcContext.h:58
KviConsoleWindow * console()
Returns the console that this window belongs to.
Definition: KviWindow.h:290
KviKvsHash * extendedScopeVariables()
Definition: KviKvsRunTimeContext.h:200
KviWindow * m_pWindow
Definition: KviKvsRunTimeContext.h:130
unsigned int m_uRunTimeFlags
Definition: KviKvsRunTimeContext.h:139
Definition: KviKvsEventManager.h:39