• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kresources
 

kresources

  • kresources
factory.h
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 */
23 
24 #ifndef KRESOURCES_FACTORY_H
25 #define KRESOURCES_FACTORY_H
26 
27 #include <tqdict.h>
28 #include <tqstring.h>
29 
30 #include <kconfig.h>
31 #include <klibloader.h>
32 #include <ktrader.h>
33 
34 #include "resource.h"
35 #include "configwidget.h"
36 
37 namespace KRES {
38 
62 class KRESOURCES_EXPORT Factory
63 {
64  public:
65 
69  static Factory *self( const TQString& resourceFamily );
70 
71  ~Factory();
72 
80  ConfigWidget *configWidget( const TQString& type, TQWidget *parent = 0 );
81 
90  Resource *resource( const TQString& type, const KConfig *config );
91 
95  TQStringList typeNames() const;
96 
100  TQString typeName( const TQString &type ) const;
101 
105  TQString typeDescription( const TQString &type ) const;
106 
107  protected:
108  Factory( const TQString& resourceFamily );
109 
110  private:
111  static TQDict<Factory> *mSelves;
112 
113  TQString mResourceFamily;
114  TQMap<TQString, KService::Ptr> mTypeMap;
115 };
116 
117 }
118 #endif
KRES::Resource
This class provides a resource which is managed in a general way.
Definition: resource.h:255
KRES::Factory
Class for loading resource plugins.
Definition: factory.h:62

kresources

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

kresources

Skip menu "kresources"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kresources by doxygen 1.8.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |