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

KUtils

  • kutils
Classes | Macros
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
 

Macros

#define KCMODULECONTAINER(modules, factoryName)
 

Macro Definition Documentation

◆ KCMODULECONTAINER

#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)
KCModuleContainer
KCModuleContainer is a convenience class encapsulating several KCModules.
Definition: kcmodulecontainer.h:50
K_EXPORT_PLUGIN
#define K_EXPORT_PLUGIN(factory)
QWidget

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)
KCMODULECONTAINER
#define KCMODULECONTAINER(modules, factoryName)
This macro creates an factory declaration which when run creates an KCModule with specified modules.
Definition: kcmodulecontainer.h:162

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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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