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

tdeutils

  • tdeutils
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 TDEConfigGroup;
30 
42 class TDEUTILS_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, TDEConfig * config = 0, const TQString & group = TQString::null );
124 
131  static KPluginInfo::List fromFiles( const TQStringList & files, TDEConfig * config = 0, const TQString & group = TQString::null );
132 
138  static KPluginInfo::List fromKPartsInstanceName( const TQString &, TDEConfig * 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( TDEConfig * config, const TQString & group );
276 
281  TDEConfig * config() const;
282 
287  const TQString & configgroup() const;
288 
295  virtual void save( TDEConfigGroup * config = 0 );
296 
303  virtual void load( TDEConfigGroup * 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 #endif // KPLUGININFO_H
TDEConfig
KPluginInfo
Information about a plugin.
Definition: kplugininfo.h:42
TDEConfigGroup

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