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

tdeutils

kplugininfo.h

00001 /*  This file is part of the KDE project
00002     Copyright (C) 2003 Matthias Kretz <kretz@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License version 2 as published by the Free Software Foundation.
00007 
00008     This library is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011     Library General Public License for more details.
00012 
00013     You should have received a copy of the GNU Library General Public License
00014     along with this library; see the file COPYING.LIB.  If not, write to
00015     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016     Boston, MA 02110-1301, USA.
00017 
00018 */
00019 
00020 #ifndef KPLUGININFO_H
00021 #define KPLUGININFO_H
00022 
00023 #include <tqstring.h>
00024 #include <tqmap.h>
00025 #include <tqstringlist.h>
00026 #include <tqvaluelist.h>
00027 #include <kservice.h>
00028 
00029 class TDEConfigGroup;
00030 
00042 class TDEUTILS_EXPORT KPluginInfo
00043 {
00044     public:
00045         typedef TQValueList<KPluginInfo*> List;
00046 
00080         KPluginInfo( const TQString & filename, const char* resource = 0 );
00081 
00108         KPluginInfo( const KService::Ptr service );
00109 
00110 //X         /**
00111 //X          * Create an empty hidden plugin.
00112 //X          * @internal
00113 //X          */
00114 //X         KPluginInfo();
00115 
00116         virtual ~KPluginInfo();
00117 
00123         static KPluginInfo::List fromServices( const KService::List & services, TDEConfig * config = 0, const TQString & group = TQString::null );
00124 
00131         static KPluginInfo::List fromFiles( const TQStringList & files, TDEConfig * config = 0, const TQString & group = TQString::null );
00132 
00138         static KPluginInfo::List fromKPartsInstanceName( const TQString &, TDEConfig * config = 0, const TQString & group = TQString::null );
00139 
00143         bool isHidden() const;
00144 
00153         virtual void setPluginEnabled( bool enabled );
00154 
00163         virtual bool isPluginEnabled() const;
00164 
00170         bool isPluginEnabledByDefault() const;
00171 
00179         TQVariant property( const TQString & key ) const;
00180 
00188         TQVariant operator[]( const TQString & key ) const;
00189 
00193         const TQString & name() const;
00194 
00198         const TQString & comment() const;
00199 
00203         const TQString & icon() const;
00204 
00208         const TQString & specfile() const;
00209 
00213         const TQString & author() const;
00214 
00218         const TQString & email() const;
00219 
00223         const TQString & category() const;
00224 
00229         const TQString & pluginName() const;
00230 
00234         const TQString & version() const;
00235 
00239         const TQString & website() const;
00240 
00241 
00245         const TQString & license() const;
00246 
00251         const TQStringList & dependencies() const;
00252 
00262         KService::Ptr service() const;
00263 
00268         const TQValueList<KService::Ptr> & kcmServices() const;
00269 
00275         void setConfig( TDEConfig * config, const TQString & group );
00276 
00281         TDEConfig * config() const;
00282 
00287         const TQString & configgroup() const;
00288 
00295         virtual void save( TDEConfigGroup * config = 0 );
00296 
00303         virtual void load( TDEConfigGroup * config = 0 );
00304 
00308         virtual void defaults();
00309 
00310     private:
00311         KPluginInfo( const KPluginInfo & );
00312         const KPluginInfo & operator=( const KPluginInfo & );
00313 
00314         class KPluginInfoPrivate;
00315         KPluginInfoPrivate * d;
00316 };
00317 
00318 // vim: sw=4 sts=4 et tw=80
00319 #endif // KPLUGININFO_H

tdeutils

Skip menu "tdeutils"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeutils

Skip menu "tdeutils"
  • 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 tdeutils by doxygen 1.6.3
This website is maintained by Timothy Pearson.