#include <YUIComponent.h>
Inheritance diagram for YUIComponent:

Public Member Functions | |
| void | createUI () |
| YCPValue | callBuiltin (void *function, int fn_argc, YCPValue fn_argv[]) |
| void | result (const YCPValue &result) |
| void | setServerOptions (int argc, char **argv) |
| virtual string | name () const |
| void | setCallback (Y2Component *callback) |
| Y2Component * | getCallback () const |
Static Public Member Functions | |
| static YUIComponent * | uiComponent () |
| static YUI * | ui () |
Protected Member Functions | |
| YUIComponent () | |
| virtual | ~YUIComponent () |
| virtual YUI * | createUI (int argc, char **argv, bool with_threads, const char *macro_file)=0 |
Private Attributes | |
| int | _argc |
| char ** | _argv |
| const char * | _macro_file |
| bool | _with_threads |
| bool | _have_server_options |
Static Private Attributes | |
| static YUI * | _ui |
| static YUIComponent * | _uiComponent |
| YUIComponent::YUIComponent | ( | ) | [protected] |
Constructor.
| YUIComponent::~YUIComponent | ( | ) | [protected, virtual] |
Destructor.
| virtual YUI* YUIComponent::createUI | ( | int | argc, | |
| char ** | argv, | |||
| bool | with_threads, | |||
| const char * | macro_file | |||
| ) | [protected, pure virtual] |
Create the UI. This is called when all the information for doing that is complete, in setServerOptions(). 'argc' and 'argv' are the command line arguments.
Implement this method in derived classes.
| YUIComponent * YUIComponent::uiComponent | ( | ) | [static] |
Returns the instance of the UI component 0 if none has been created yet.
| static YUI* YUIComponent::ui | ( | ) | [inline, static] |
| void YUIComponent::createUI | ( | ) |
YUIComponent level call handler; this creates the actual UI instance upon its first call and then hands over the function to be called to the UI's call handler. Weird, huh? ;-)
| void YUIComponent::result | ( | const YCPValue & | result | ) | [virtual] |
Called from generic frontend upon session close. This deletes the UI.
Reimplemented from Y2Component.
| void YUIComponent::setServerOptions | ( | int | argc, | |
| char ** | argv | |||
| ) | [virtual] |
This is called by the generic frontend after it parsed the commandline. This actually creates an UI instance with createUI().
Reimplemented from Y2Component.
| virtual string YUIComponent::name | ( | ) | const [inline, virtual] |
The name of the component - the prefix used for builtin calls like UI::OpenDialog() etc.
Implements Y2Component.
| void YUIComponent::setCallback | ( | Y2Component * | callback | ) |
Set a callback component - call the UI's setCallback() method.
| Y2Component * YUIComponent::getCallback | ( | ) | const |
Returns the UI's callback component previously set with setCallback(); calls the UI's getCallback() method.
YUI * YUIComponent::_ui [static, private] |
YUIComponent * YUIComponent::_uiComponent [static, private] |
int YUIComponent::_argc [private] |
char** YUIComponent::_argv [private] |
const char* YUIComponent::_macro_file [private] |
bool YUIComponent::_with_threads [private] |
bool YUIComponent::_have_server_options [private] |
1.5.0