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

kutils

  • kutils
kplugininfo.h
1 /* This file is part of the KDE project
2  Copyright (C) 2003 Matthias Kretz <kretz@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 
18 */
19 
20 #ifndef KPLUGININFO_H
21 #define KPLUGININFO_H
22 
23 #include <tqstring.h>
24 #include <tqmap.h>
25 #include <tqstringlist.h>
26 #include <tqvaluelist.h>
27 #include <kservice.h>
28 
29 class KConfigGroup;
30 
42 class KUTILS_EXPORT KPluginInfo
43 {
44  public:
45  typedef TQValueList<KPluginInfo*> List;
46 
80  KPluginInfo( const TQString & filename, const char* resource = 0 );
81 
108  KPluginInfo( const KService::Ptr service );
109 
110 //X /**
111 //X * Create an empty hidden plugin.
112 //X * @internal
113 //X */
114 //X KPluginInfo();
115 
116  virtual ~KPluginInfo();
117 
123  static KPluginInfo::List fromServices( const KService::List & services, KConfig * config = 0, const TQString & group = TQString::null );
124 
131  static KPluginInfo::List fromFiles( const TQStringList & files, KConfig * config = 0, const TQString & group = TQString::null );
132 
138  static KPluginInfo::List fromKPartsInstanceName( const TQString &, KConfig * config = 0, const TQString & group = TQString::null );
139 
143  bool isHidden() const;
144 
153  virtual void setPluginEnabled( bool enabled );
154 
163  virtual bool isPluginEnabled() const;
164 
170  bool isPluginEnabledByDefault() const;
171 
179  TQVariant property( const TQString & key ) const;
180 
188  TQVariant operator[]( const TQString & key ) const;
189 
193  const TQString & name() const;
194 
198  const TQString & comment() const;
199 
203  const TQString & icon() const;
204 
208  const TQString & specfile() const;
209 
213  const TQString & author() const;
214 
218  const TQString & email() const;
219 
223  const TQString & category() const;
224 
229  const TQString & pluginName() const;
230 
234  const TQString & version() const;
235 
239  const TQString & website() const;
240 
241 
245  const TQString & license() const;
246 
251  const TQStringList & dependencies() const;
252 
262  KService::Ptr service() const;
263 
268  const TQValueList<KService::Ptr> & kcmServices() const;
269 
275  void setConfig( KConfig * config, const TQString & group );
276 
281  KConfig * config() const;
282 
287  const TQString & configgroup() const;
288 
295  virtual void save( KConfigGroup * config = 0 );
296 
303  virtual void load( KConfigGroup * config = 0 );
304 
308  virtual void defaults();
309 
310  private:
311  KPluginInfo( const KPluginInfo & );
312  const KPluginInfo & operator=( const KPluginInfo & );
313 
314  class KPluginInfoPrivate;
315  KPluginInfoPrivate * d;
316 };
317 
318 // vim: sw=4 sts=4 et tw=80
319 #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.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |