#include <Y2PluginComponent.h>
Inheritance diagram for Y2PluginComponent:
Public Member Functions | |
Y2PluginComponent (bool is_server, string filename, const char *creator_name, const char *component_name, int level) | |
~Y2PluginComponent () | |
string | name () const |
YCPValue | evaluate (const YCPValue &command) |
SCRAgent * | getSCRAgent () |
void | result (const YCPValue &result) |
void | setServerOptions (int argc, char **argv) |
Y2Component * | getCallback (void) const |
void | setCallback (Y2Component *callback) |
YCPValue | doActualWork (const YCPList &arglist, Y2Component *user_interface) |
Private Member Functions | |
bool | loadPlugin () |
Y2ComponentCreator * | locateSym (int num) |
Private Attributes | |
const bool | is_server |
string | filename |
string | creator_name |
string | component_name |
int | argc |
char ** | argv |
int | level |
void * | handle |
Y2Component * | comp |
Y2Component * | m_callback |
|
|
|
Frees internal data. |
|
Launches the plugin with the previously set parameters. Reimplemented from Y2Component. |
|
Let the server evaluate a command. This method is only valid, if the component is a server. Reimplemented from Y2Component. |
|
Functions to pass callback information The callback is a pointer to a Y2Component with a valid evaluate() function. Override the Y2Component functions here since the plugin component isn't the 'real' component but just a wrapper which contains a pointer to the real one. So any callback information must be passed by the Y2PluginComponent to the component loaded via plugin. Reimplemented from Y2Component. |
|
Returns the SCRAgent of the Y2Component or NULL if it doesn't have one. Reimplemented from Y2Component. |
|
Does actually load the plugin. |
|
Tries to locate the global componentcreator via dlsym. |
|
Returns the name of this component. Implements Y2Component. |
|
Tells this server, that the client doesn't need it's services any longer and that the exit code of the client is result. This method is only valid, if the component is a server. Reimplemented from Y2Component. |
|
Reimplemented from Y2Component. |
|
Sets the commandline options of the server. This method is only valid, if the component is a server. Reimplemented from Y2Component. |
|
Stores options for a server plugin. |
|
Stores options for a server plugin. |
|
The created Y2Component. |
|
Name of the component that is implemented by the plugin. |
|
Name of the global component creator. |
|
The name of the plugin library. |
|
Handle of the dynamic loaded library. |
|
It this component a server or a client? |
|
The component level the plugin was started in. |
|
The saved callback pointer to be passed to the component after creating (plugin loaded). |