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 |
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.
Y2Component * Y2CCWFM::create | ( | const char * | name | ) | const [virtual] |
Creates a new wfm component.
Reimplemented from Y2ComponentCreator.
References Y2WFMComponent::instance().
Y2Component * Y2CCWFM::createInLevel | ( | const char * | name, | |
int | level, | |||
int | current_level | |||
) | const [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.
bool Y2CCWFM::isServerCreator | ( | ) | const [virtual] |
Returns always true, since currently only client components can be realized by a YCP script.
Implements Y2ComponentCreator.
Y2Component * Y2CCWFM::provideNamespace | ( | const char * | name | ) | [virtual] |
We do provide namespaces from YCP
Reimplemented from Y2ComponentCreator.
References YCPPathSearch::findModule(), initializeBuiltins(), Y2WFMComponent::instance(), and y2debug.