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.

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.


Member Data Documentation

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

Referenced by createInLevel().

Is true, if this creator only should create servers.

Referenced by createInLevel(), and isServerCreator().


The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.6.3