Y2CCProgram Class Reference

#include <Y2CCProgram.h>

Inheritance diagram for Y2CCProgram:

Y2ComponentCreator List of all members.

Public Member Functions

 Y2CCProgram (bool server, bool non_y2)
bool isServerCreator () const
Y2ComponentcreateInLevel (const char *name, int level, int current_level) const
virtual Y2ComponentprovideNamespace (const char *name_space)

Private Attributes

bool creates_servers
bool creates_non_y2

Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

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.

bool Y2CCProgram::isServerCreator  )  const [virtual]
 

Return true, if this creator creates server components.

Implements Y2ComponentCreator.

Y2Component * Y2CCProgram::provideNamespace const char *  name_space  )  [virtual]
 

Importing a namespace from a program-based subcomponent is not possible.

Reimplemented from Y2ComponentCreator.


Member Data Documentation

bool Y2CCProgram::creates_non_y2 [private]
 

Is true, if this creator only should create non_y2 programs.

bool Y2CCProgram::creates_servers [private]
 

Is true, if this creator only should create servers.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6