KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Attributes | List of all members
KviKvsTreeNodeModuleCallbackCommand Class Reference

#include <KviKvsTreeNodeModuleCallbackCommand.h>

+ Inheritance diagram for KviKvsTreeNodeModuleCallbackCommand:

Public Member Functions

virtual void contextDescription (QString &szBuffer)
 Sets the buffer as Instruction. More...
 
virtual void dump (const char *prefix)
 Dumps the instructions tree. More...
 
bool execute (KviKvsRunTimeContext *c)
 This is the main entry point to the tree visit. More...
 
 KviKvsTreeNodeModuleCallbackCommand (const QChar *pLocation, const QString &szModuleName, const QString &szCmdName, KviKvsTreeNodeDataList *params, KviKvsScript *pCallback)
 
 ~KviKvsTreeNodeModuleCallbackCommand ()
 
- Public Member Functions inherited from KviKvsTreeNodeCallbackCommand
void dumpCallback (const char *prefix)
 
 KviKvsTreeNodeCallbackCommand (const QChar *pLocation, const QString &szCmdName, KviKvsTreeNodeDataList *params, KviKvsScript *pCallback)
 
 ~KviKvsTreeNodeCallbackCommand ()
 
- Public Member Functions inherited from KviKvsTreeNodeCommandWithParameters
void dumpParameterList (const char *prefix)
 
 KviKvsTreeNodeCommandWithParameters (const QChar *pLocation, const QString &szCmdName, KviKvsTreeNodeDataList *params)
 
KviKvsTreeNodeDataListparams ()
 
 ~KviKvsTreeNodeCommandWithParameters ()
 
- Public Member Functions inherited from KviKvsTreeNodeCommand
const QString & commandName ()
 
void dumpSwitchList (const char *prefix)
 
 KviKvsTreeNodeCommand (const QChar *pLocation, const QString &szCmdName)
 
 ~KviKvsTreeNodeCommand ()
 
- Public Member Functions inherited from KviKvsTreeNodeInstruction
 KviKvsTreeNodeInstruction (const QChar *pLocation)
 Constructs the treenode instruction object. More...
 
 ~KviKvsTreeNodeInstruction ()
 Destroys the treenode instruction object. More...
 
- Public Member Functions inherited from KviKvsTreeNode
 KviKvsTreeNode (const QChar *pLocation)
 Constructs the treenode object. More...
 
const QChar * location ()
 Returns the location char. More...
 
KviKvsTreeNodeparent ()
 Returns the parent object. More...
 
void setParent (KviKvsTreeNode *p)
 Sets the parent object. More...
 
virtual ~KviKvsTreeNode ()
 Destroys the treenode object. More...
 

Protected Attributes

QString m_szModuleName
 
- Protected Attributes inherited from KviKvsTreeNodeCallbackCommand
KviKvsScriptm_pCallback
 
- Protected Attributes inherited from KviKvsTreeNodeCommandWithParameters
KviKvsTreeNodeDataListm_pParams
 
- Protected Attributes inherited from KviKvsTreeNodeCommand
KviKvsTreeNodeSwitchListm_pSwitches
 
QString m_szCmdName
 
- Protected Attributes inherited from KviKvsTreeNode
const QChar * m_pLocation
 
KviKvsTreeNodem_pParent
 

Additional Inherited Members

- Protected Member Functions inherited from KviKvsTreeNodeCommand
void setSwitchList (KviKvsTreeNodeSwitchList *sw)
 
- Protected Member Functions inherited from KviKvsTreeNode
void setLocation (const QChar *pLocation)
 Sets the location char. More...
 

Constructor & Destructor Documentation

KviKvsTreeNodeModuleCallbackCommand::KviKvsTreeNodeModuleCallbackCommand ( const QChar *  pLocation,
const QString &  szModuleName,
const QString &  szCmdName,
KviKvsTreeNodeDataList params,
KviKvsScript pCallback 
)

References m_szModuleName.

KviKvsTreeNodeModuleCallbackCommand::~KviKvsTreeNodeModuleCallbackCommand ( )
default

Member Function Documentation

void KviKvsTreeNodeModuleCallbackCommand::contextDescription ( QString &  szBuffer)
virtual

Sets the buffer as Instruction.

Parameters
szBufferThe buffer :)
Returns
void

Reimplemented from KviKvsTreeNodeCallbackCommand.

References KviKvsTreeNodeCommand::m_szCmdName, and m_szModuleName.

void KviKvsTreeNodeModuleCallbackCommand::dump ( const char *  prefix)
virtual
bool KviKvsTreeNodeModuleCallbackCommand::execute ( KviKvsRunTimeContext c)
virtual

This is the main entry point to the tree visit.

It returns false when the tree visiting has to be stopped and returns true when it has been successfully completed. A false return value may signal an error but is also used by break, halt, return and similar. The error condition is signaled by KviKvsRunTimeContext::error().

Parameters
cThe source context
Returns
bool

Implements KviKvsTreeNodeInstruction.

References __tr2qs_ctx(), KviKvsRunTimeContext::error(), KviKvsTreeNodeDataList::evaluate(), KviKvsTreeNodeSwitchList::evaluate(), g_pModuleManager, KviModuleManager::getModule(), KviKvsModuleInterface::kvsFindCallbackCommand(), l, KviModuleManager::lastError(), m, KviKvsTreeNodeCallbackCommand::m_pCallback, KviKvsTreeNodeCommandWithParameters::m_pParams, KviKvsTreeNodeCommand::m_pSwitches, KviKvsTreeNodeCommand::m_szCmdName, m_szModuleName, KviKvsVariantList::setAutoDelete(), KviKvsRunTimeContext::setDefaultReportLocation(), and swl.

Member Data Documentation

QString KviKvsTreeNodeModuleCallbackCommand::m_szModuleName
protected

The documentation for this class was generated from the following files: