#include <Y2CCProgram.h>

Public Member Functions | |
| Y2CCProgram (bool server, bool non_y2) | |
| bool | isServerCreator () const |
| Y2Component * | createInLevel (const char *name, int level, int current_level) const |
| virtual Y2Component * | provideNamespace (const char *name_space) |
Private Attributes | |
| bool | creates_servers |
| bool | creates_non_y2 |
| Y2CCProgram::Y2CCProgram | ( | bool | server, | |
| bool | non_y2 | |||
| ) |
Creates a YaST2 Component Creator that can create program components. A program component is a component that is realized by an Unix executable that is executed and communicates via a pipe.
| server | true, if server components are created, false if client components are created. | |
| non_y2 | true, if components other than YCP programs like shell scripts are created. |
| Y2Component * Y2CCProgram::createInLevel | ( | const char * | name, | |
| int | level, | |||
| int | current_level | |||
| ) | const [virtual] |
Creates a component. If the name contains a slash, it is considered to be a relative or absolute path name to a Unix executable. It is not possible to specifiy a server this way. If it does not contain a slash, it is searched for in YASTHOME/modules or YASTHOME/servers, resp.
Reimplemented from Y2ComponentCreator.
References creates_non_y2, creates_servers, and Y2PathSearch::findy2exe().
| bool Y2CCProgram::isServerCreator | ( | ) | const [virtual] |
Return true, if this creator creates server components.
Implements Y2ComponentCreator.
References creates_servers.
| Y2Component * Y2CCProgram::provideNamespace | ( | const char * | name_space | ) | [virtual] |
Importing a namespace from a program-based subcomponent is not possible.
Reimplemented from Y2ComponentCreator.
References y2debug.
bool Y2CCProgram::creates_non_y2 [private] |
Is true, if this creator only should create non_y2 programs.
Referenced by createInLevel().
bool Y2CCProgram::creates_servers [private] |
Is true, if this creator only should create servers.
Referenced by createInLevel(), and isServerCreator().
1.5.9