|
| CPlugin (const string &name, const string &cat=gNoneString, RoadRunner *aRR=NULL) |
| Create a plugin written in C.
|
|
virtual | ~CPlugin () |
| De allocate the plugin.
|
|
string | getImplementationLanguage () |
|
virtual bool | execute (bool useThread=false) |
|
tlp::StringList | getPropertyNames () |
|
PropertyBase * | getProperty (const string ¶m) |
|
string | getLastError () |
| Function to retrieve last error in a C plugin.
|
|
| Plugin (const string &name=gEmptyString, const string &cat=gNoneString, RoadRunner *aRR=NULL, const string &language=gNoneString, const PluginManager *pm=NULL) |
|
virtual | ~Plugin () |
|
string | getName () |
|
string | getLibraryName () |
|
string | getAuthor () |
|
string | getCategory () |
|
string | getDescription () |
|
string | getHint () |
|
string | getVersion () |
|
string | getCopyright () |
|
RoadRunner * | getRoadRunnerInstance () |
|
virtual string | getInfo () |
|
virtual string | getExtendedInfo () |
|
virtual unsigned char * | getManualAsPDF () const |
|
virtual unsigned int | getPDFManualByteSize () |
|
virtual Properties * | getProperties () |
|
string | getPluginPropertiesAsXML () |
|
string | getPropertyValueAsString (const string ¶m) |
|
void * | getPropertyValueHandle (const string ¶m) |
|
void | setPropertyByString (const string &nameOf, const char *value) |
|
void | setPropertyValue (const string &nameOf, const void *value) |
|
void | terminate () |
|
bool | isBeingTerminated () const |
|
bool | wasTerminated () const |
| check if the plugin was terminated
|
|
virtual bool | isWorking () const |
| check if the plugin is working
|
|
virtual bool | assignRoadRunnerInstance (RoadRunner *rr) |
| Assign a roadrunner instance for the plugin to use.
|
|
virtual bool | assignOnStartedEvent (PluginEvent pluginStarted, void *userData1=NULL, void *userData2=NULL) |
|
virtual bool | assignOnProgressEvent (PluginEvent pluginsProgress, void *userData1=NULL, void *userData2=NULL) |
|
virtual bool | assignOnFinishedEvent (PluginEvent pluginsFinished, void *userData1=NULL, void *userData2=NULL) |
|
virtual string | getResult () |
|
virtual bool | resetPlugin () |
|
virtual string | getStatus () |
|
bool | hasStartedEvent () const |
|
bool | hasProgressEvent () const |
|
bool | hasFinishedEvent () const |
|
void | WorkStartedEvent (void *data1, void *data2) |
|
void | WorkProgressEvent (void *data1, void *data2) |
|
void | WorkFinishedEvent (void *data1, void *data2) |
|
pair< void *, void * > | getWorkStartedData () |
|
pair< void *, void * > | getWorkProgressData () |
|
pair< void *, void * > | getWorkFinishedData () |
|
const PluginManager * | getPluginManager () |
|
The CPlugin class is containing the framework to load plugins that are written in pure C. The shared library need to export an execute and destroy function.