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

kutils

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 KConfigGroup;
00030 
00042 class KUTILS_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, KConfig * config = 0, const TQString & group = TQString::null );
00124 
00131         static KPluginInfo::List fromFiles( const TQStringList & files, KConfig * config = 0, const TQString & group = TQString::null );
00132 
00138         static KPluginInfo::List fromKPartsInstanceName( const TQString &, KConfig * 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( KConfig * config, const TQString & group );
00276 
00281         KConfig * config() const;
00282 
00287         const TQString & configgroup() const;
00288 
00295         virtual void save( KConfigGroup * config = 0 );
00296 
00303         virtual void load( KConfigGroup * 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

kutils

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

kutils

Skip menu "kutils"
  • 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 kutils by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |