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

KUtils

  • sources
  • kde-4.12
  • kdelibs
  • kutils
Classes | Macros
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
 

Macros

#define KCMODULECONTAINER(modules, factoryName)
 

Macro Definition Documentation

#define KCMODULECONTAINER (   modules,
  factoryName 
)
Value:
class KCModuleContainer##factoryName : public KCModuleContainer \
{ \
public: \
KCModuleContainer##factoryName(QWidget *parent, const QVariantList &) \
: KCModuleContainer(parent, QLatin1String(modules)) \
{ \
} \
}; \
K_PLUGIN_FACTORY(KCModuleContainer##factoryName##Factory, \
registerPlugin<KCModuleContainer#factoryName>(); \
) \
K_EXPORT_PLUGIN(KCModuleContainer##factoryName##Factory)
QWidget
KCModuleContainer
KCModuleContainer is a convenience class encapsulating several KCModules.
Definition: kcmodulecontainer.h:49
KCModuleContainer::KCModuleContainer
KCModuleContainer(QWidget *parent, const QStringList &mods)
Creates a KCModuleContainer with tabs, each one containing one of the specified modules in mods...
Definition: kcmodulecontainer.cpp:74
K_EXPORT_PLUGIN
#define K_EXPORT_PLUGIN(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
modulesthe modules to put in the container
factoryNamewhat factory name the module should have

Definition at line 162 of file kcmodulecontainer.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUtils

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal