CommandPlugin Class Reference

An abstract class to create new Command's which can be loaded dynamically. More...

#include <CommandPlugin.h>

Inheritance diagram for CommandPlugin:

TraversoCommands

List of all members.

Public Member Functions

virtual Commandcreate (QObject *obj, const QString &command, QVariantList arguments)=0
virtual QStringList commands () const
virtual bool implements (const QString &command) const

Protected Attributes

QHash< QString, int > m_dict


Detailed Description

An abstract class to create new Command's which can be loaded dynamically.

Member Function Documentation

virtual Command* CommandPlugin::create ( QObject *  obj,
const QString &  command,
QVariantList  arguments 
) [pure virtual]

Create a Command object, based on the command string.

Parameters:
obj The Context Item object for which the Command has to be made
command The name of the Command to be created
arguments List of arguments which can be parsed by the to be created Command object.
Returns:
On success a Command object, the caller takes authorship, or 0 on failure.


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

Generated on Sun Mar 8 12:44:05 2009 for traverso by  doxygen 1.5.5