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

tderesources

  • tderesources
factory.h
1 /*
2  This file is part of libtderesources.
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 TDERESOURCES_FACTORY_H
25 #define TDERESOURCES_FACTORY_H
26 
27 #include <tqdict.h>
28 #include <tqstring.h>
29 
30 #include <tdeconfig.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 TDERESOURCES_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 TDEConfig *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
Definition: configdialog.h:31
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

tderesources

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

tderesources

Skip menu "tderesources"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tderesources by doxygen 1.8.8
This website is maintained by Timothy Pearson.