1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Mathias Kettner <kettner@suse.de>
16 Maintainer: Stefan Hundhammer <sh@suse.de>
25 #include "YWebUIComponent.h"
28 * @short Y2ComponentCreator that can create Wt user interfaces
29 * A Y2ComponentCreator is an object, that can create components.
30 * It is given a component name and - if it knows how to create
31 * such a component - returns a newly created component of this
32 * type. The Y2CCWeb can create components with the name "web".
34 class Y2CCWeb : public Y2ComponentCreator
38 * Creates a Web component creator
40 Y2CCWeb() : Y2ComponentCreator(Y2ComponentBroker::BUILTIN) { };
43 * Returns true, since the qt component is a
46 bool isServerCreator() const { return true; };
49 * Creates a new Qt UI component.
51 Y2Component *create(const char * name) const
53 if (!strcmp(name, "web") )
54 return new YWebUIComponent();
60 #endif // ifndef _Y2CCWeb_h