#include <Y2ProgramComponent.h>
Inheritance diagram for Y2ProgramComponent:
Public Member Functions | |
Y2ProgramComponent (string chroot_path, string binpath, const char *component_name, bool non_y2, int level) | |
~Y2ProgramComponent () | |
string | name () const |
YCPValue | evaluate (const YCPValue &command) |
void | result (const YCPValue &result) |
void | setServerOptions (int argc, char **argv) |
YCPValue | doActualWork (const YCPList &arglist, Y2Component *user_interface) |
Private Member Functions | |
void | launchExternalProgram (char **argv) |
void | terminateExternalProgram () |
YCPValue | receiveFromExternal () |
void | sendToExternal (const YCPValue &) |
bool | externalProgramOK () const |
Private Attributes | |
string | chroot_path |
string | bin_file |
bool | is_non_y2 |
string | component_name |
int | argc |
char ** | argv |
int | to_external [2] |
int | from_external [2] |
pid_t | pid |
Parser | parser |
int | level |
|
|
|
Frees internal data. |
|
Launches the program 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. |
|
Determines, if the external program is running. |
|
Lauches the external programm in a new process.
|
|
Returns the name of this component. Implements Y2Component. |
|
Receives a YCP value from the external program. |
|
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. |
|
Send a YCP value to the external program |
|
Sets the commandline options of the server. This method is only valid, if the component is a server. Reimplemented from Y2Component. |
|
Kills the external program (that is process) with SIGQUIT |
|
Stores options for a server program |
|
Stores options for a server program |
|
Filename of the executable binary. |
|
Chroot path for the program. |
|
Name of the component that is implemented by the program |
|
Filehandles of pipe from external programm |
|
Specifies whether this component is a ycp program or a shell and such like. |
|
The component level this program was started in. For example programs started from floppy get the component level 0. |
|
Used to parse the values the external program sends |
|
Process ID of external process. This is -1, if the process is not yet launched. |
|
Filehandles of pipe to external programm |