• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KUtils

kcmodulecontainer.h File Reference

#include <QtCore/QString>
#include <QtCore/QStringList>
#include <kcmodule.h>
#include <kcmoduleloader.h>
#include <QtCore/QList>

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)

This macro creates an factory declaration which when run creates an KCModule with specified modules.

For example:

 KCMODULECONTAINER("kcm_fonts,kcm_keyboard,kcm_foo", misc_modules)

would create a KCModule with three tabs, each containing one of the specified KCMs. Each use of the macro must be accompanied by a desktop file where the factory name equals the second argument in the macro(in this example, 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.

KUtils

Skip menu "KUtils"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal