yast2-core
Public Member Functions | Private Attributes | List of all members
Y2CCProgram Class Reference

#include <Y2CCProgram.h>

Inheritance diagram for Y2CCProgram:
Y2ComponentCreator

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)
 
- Public Member Functions inherited from Y2ComponentCreator
 Y2ComponentCreator (Y2ComponentBroker::order_t order)
 
 Y2ComponentCreator (Y2ComponentBroker::order_t order, bool force_register)
 
virtual ~Y2ComponentCreator ()
 
virtual Y2Componentcreate (const char *name) const
 
bool isClientCreator () const
 

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
servertrue, if server components are created, false if client components are created.
non_y2true, 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

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().


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

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