kresources
factory.h
Go to the documentation of this file.
00001 /* 00002 This file is part of libkresources. 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 */ 00033 #ifndef KRESOURCES_FACTORY_H 00034 #define KRESOURCES_FACTORY_H 00035 00036 #include <QtCore/QMap> 00037 #include <QtCore/QString> 00038 00039 #include <kconfig.h> 00040 #include <kservice.h> 00041 00042 #include "resource.h" 00043 #include "configwidget.h" 00044 00045 namespace KRES { 00046 00073 class KRESOURCES_EXPORT_DEPRECATED Factory 00074 { 00075 public: 00076 00080 static Factory *self( const QString &resourceFamily ); 00081 00082 ~Factory(); 00083 00091 ConfigWidget *configWidget( const QString &type, QWidget *parent = 0 ); 00092 00098 void reloadConfig(); 00099 00108 Resource *resource( const QString &type, const KConfigGroup &group ); 00109 00116 Resource *resource( const QString &type ); 00117 00122 QStringList typeNames() const; 00123 00127 QString typeName( const QString &type ) const; 00128 00132 QString typeDescription( const QString &type ) const; 00133 00134 protected: 00135 Factory( const QString &resourceFamily ); 00136 00137 private: 00138 class Private; 00139 Private *const d; 00140 }; 00141 00142 } 00143 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:25:07 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:25:07 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.