KUtils
kcmodulecontainer.h File Reference
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <kcmodule.h>
#include <kcmoduleloader.h>
#include <QtCore/QList>
Include dependency graph for kcmodulecontainer.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
class | KCModuleContainer |
KCModuleContainer is a convenience class encapsulating several KCModules. More... | |
Defines | |
#define | KCMODULECONTAINER(modules, factoryName) |
Define Documentation
#define KCMODULECONTAINER | ( | modules, | |||
factoryName | ) |
Value:
class KCModuleContainer##factoryName : public KCModuleContainer \ { \ public: \ KCModuleContainer##factoryName(QWidget *parent, const QStringList &) \ : KCModuleContainer(parent, QLatin1String(modules)) \ { \ } \ }; \ typedef KGenericFactory<KCModuleContainer#factoryName> KCModuleContainer##factoryName##Factory; \ K_EXPORT_COMPONENT_FACTORY(factoryName, KCModuleContainer##factoryName##Factory)
For example:
KCMODULECONTAINER("kcm_fonts,kcm_keyboard,kcm_foo", misc_modules)
The module container takes care of testing the contained modules when being shown, as well as when the module itself is asked whether it should be shown.
- Parameters:
-
modules the modules to put in the container factoryName what factory name the module should have
Definition at line 162 of file kcmodulecontainer.h.