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

tderesources

factory.h

00001 /*
00002     This file is part of libtderesources.
00003 
00004     Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
00005     Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
00006     Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Library General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Library General Public License for more details.
00017 
00018     You should have received a copy of the GNU Library General Public License
00019     along with this library; see the file COPYING.LIB.  If not, write to
00020     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021     Boston, MA 02110-1301, USA.
00022 */
00023 
00024 #ifndef TDERESOURCES_FACTORY_H
00025 #define TDERESOURCES_FACTORY_H
00026 
00027 #include <tqdict.h>
00028 #include <tqstring.h>
00029 
00030 #include <tdeconfig.h>
00031 #include <klibloader.h>
00032 #include <ktrader.h>
00033 
00034 #include "resource.h"
00035 #include "configwidget.h"
00036 
00037 namespace KRES {
00038 
00062 class TDERESOURCES_EXPORT Factory
00063 {
00064   public:
00065 
00069     static Factory *self( const TQString& resourceFamily );
00070 
00071     ~Factory();
00072 
00080     ConfigWidget *configWidget( const TQString& type, TQWidget *parent = 0 );
00081 
00090     Resource *resource( const TQString& type, const TDEConfig *config );
00091 
00095     TQStringList typeNames() const;
00096 
00100     TQString typeName( const TQString &type ) const;
00101 
00105     TQString typeDescription( const TQString &type ) const;
00106 
00107   protected:
00108     Factory( const TQString& resourceFamily );
00109 
00110   private:
00111     static TQDict<Factory> *mSelves;
00112 
00113     TQString mResourceFamily;
00114     TQMap<TQString, KService::Ptr> mTypeMap;
00115 };
00116 
00117 }
00118 #endif

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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tderesources by doxygen 1.7.1
This website is maintained by Timothy Pearson.