Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

Y2PkgComponent Class Reference

#include <Y2PkgComponent.h>

Inheritance diagram for Y2PkgComponent:

Y2Component List of all members.

Public Member Functions

virtual Y2Namespaceimport (const char *name)
virtual string name () const

Static Public Member Functions

Y2PkgComponentinstance ()

Static Private Attributes

Y2PkgComponentm_instance = NULL

Member Function Documentation

Y2Namespace * Y2PkgComponent::import const char *  name  )  [virtual]
 

Try to import a given namespace. This method is used for transparent handling of namespaces (YCP modules) through whole YaST. NOTICE: there is no reverse operation to import. Semantics of YCP modules is there is a single instance and it is available from the first import until the end of YaST run.

Parameters:
name_space the name of the required namespace
Returns:
on errors, NULL should be returned. The error reporting must be done by the component itself (typically using y2log). On success, the method should return a proper instance of the imported namespace ready to be used. The returned instance is still owned by the component, any other part of YaST will try to free it. Thus, it's possible to share the instance.

Reimplemented from Y2Component.

Y2PkgComponent * Y2PkgComponent::instance  )  [static]
 

virtual string Y2PkgComponent::name  )  const [inline, virtual]
 

Returns the name of the module.

Implements Y2Component.


Member Data Documentation

Y2PkgComponent * Y2PkgComponent::m_instance = NULL [static, private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:24 2007 for yast2-core by doxygen 1.3.6