• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

kresources

  • kresources
factory.h
Go to the documentation of this file.
1/*
2 This file is part of libkresources.
3
4 Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
5 Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
6 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.
22*/
33#ifndef KRESOURCES_FACTORY_H
34#define KRESOURCES_FACTORY_H
35
36#include <QtCore/QMap>
37#include <QtCore/QString>
38
39#include <kconfig.h>
40#include <kservice.h>
41
42#include "resource.h"
43#include "configwidget.h"
44
45namespace KRES {
46
73class KRESOURCES_DEPRECATED_EXPORT Factory
74{
75 public:
76
80 static Factory *self( const QString &resourceFamily );
81
82 ~Factory();
83
91 ConfigWidget *configWidget( const QString &type, QWidget *parent = 0 );
92
98 void reloadConfig();
99
108 Resource *resource( const QString &type, const KConfigGroup &group );
109
116 Resource *resource( const QString &type );
117
122 QStringList typeNames() const;
123
127 QString typeName( const QString &type ) const;
128
132 QString typeDescription( const QString &type ) const;
133
134 protected:
135 Factory( const QString &resourceFamily );
136
137 private:
138 class Private;
139 Private *const d;
140};
141
142}
143#endif
KRES::ConfigWidget
An abstract base class for deriving resource configuration dialogs.
Definition: configwidget.h:48
KRES::Factory
A class for loading resource plugins.
Definition: factory.h:74
KRES::Resource
This class provides a resource which is managed in a general way.
Definition: resource.h:76
configwidget.h
This file is part of the KDE resource framework and defines the ConfigWidget abstract base class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kresources

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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