yast2-core
|
Creates client components realized by YCP scripts This component broker creates components of the type Y2WFMComponent. You can give it a module name or a path name to some file. First it tries to find some script in YASTHOME/clients/<modulename>.ycp
. If it doesn't find one here, it considers the name to be a filename and examines that file. If it:
More...
#include <Y2CCWFM.h>
Public Member Functions | |
Y2CCWFM () | |
virtual Y2Component * | createInLevel (const char *name, int level, int current_level) const |
virtual bool | isServerCreator () const |
virtual Y2Component * | provideNamespace (const char *name) |
Y2Component * | create (const char *name) const |
![]() | |
Y2ComponentCreator (Y2ComponentBroker::order_t order) | |
Y2ComponentCreator (Y2ComponentBroker::order_t order, bool force_register) | |
virtual | ~Y2ComponentCreator () |
bool | isClientCreator () const |
Creates client components realized by YCP scripts This component broker creates components of the type Y2WFMComponent. You can give it a module name or a path name to some file. First it tries to find some script in YASTHOME/clients/<modulename>.ycp
. If it doesn't find one here, it considers the name to be a filename and examines that file. If it:
.ycp
#!/bin/y2gf
Y2CCWFM::Y2CCWFM | ( | ) |
Creates a script component creator.
|
virtual |
Creates a new wfm component.
Reimplemented from Y2ComponentCreator.
References Y2WFMComponent::instance().
|
virtual |
Tries to create a script module from the given name. See the class description for details.
Reimplemented from Y2ComponentCreator.
References YCPPathSearch::bytecodeForFile(), Y2PathSearch::completeFilename(), Y2PathSearch::findy2(), initializeBuiltins(), Y2WFMComponent::instance(), Parser::parse(), parser, Bytecode::readFile(), Parser::setBuffered(), Y2WFMComponent::setupComponent(), y2debug, and y2milestone.
|
virtual |
Returns always true, since currently only client components can be realized by a YCP script.
Implements Y2ComponentCreator.
|
virtual |
We do provide namespaces from YCP
Reimplemented from Y2ComponentCreator.
References YCPPathSearch::findModule(), initializeBuiltins(), Y2WFMComponent::instance(), and y2debug.