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

tdeutils

tdecmoduleinfo.h

00001 /*
00002   Copyright (c) 1999 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
00003   Copyright (c) 2000 Matthias Elter <elter@kde.org>
00004   Copyright (c) 2003 Daniel Molkentin <molkentin@kde.org>
00005   Copyright (c) 2003 Matthias Kretz <kretz@kde.org>
00006 
00007   This file is part of the KDE project
00008 
00009   This library is free software; you can redistribute it and/or
00010   modify it under the terms of the GNU Library General Public
00011   License version 2, as published by the Free Software Foundation.
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 */
00023 
00024 #ifndef TDECMODULEINFO_H
00025 #define TDECMODULEINFO_H
00026 
00027 #include <kservice.h>
00028 
00029 class TQPixmap;
00030 class TQString;
00031 class TQStringList;
00032 
00049 class TDEUTILS_EXPORT TDECModuleInfo
00050 {
00051 
00052 public:
00053 
00061   TDECModuleInfo(const TQString& desktopFile);
00062 
00070   TDECModuleInfo( KService::Ptr moduleInfo );
00071 
00072 
00078   TDECModuleInfo( const TDECModuleInfo &rhs );
00079 
00085   TDECModuleInfo();
00086 
00090   TDECModuleInfo &operator=( const TDECModuleInfo &rhs );
00091 
00098   bool operator==( const TDECModuleInfo &rhs ) const;
00099 
00103   bool operator!=( const TDECModuleInfo &rhs ) const;
00104 
00108   ~TDECModuleInfo();
00109 
00113   TQString fileName() const { return _fileName; }
00114 
00118   const TQStringList &keywords() const { return _keywords; }
00119 
00126   TQString factoryName() const;
00127 
00131   TQString moduleName() const { return _name; }
00132   // changed from name() to avoid ambiguity with TQObject::name() on multiple inheritance
00133 
00137   KService::Ptr service() const { return _service; }
00138 
00142   TQString comment() const { return _comment; }
00143 
00147   TQString icon() const { return _icon; }
00148 
00152   TQString docPath() const;
00153 
00157   TQString library() const { return _lib; }
00158 
00162   TQString handle() const;
00163 
00168   int weight() const;
00169 
00173   bool needsRootPrivileges() const;
00174 
00179   bool isHiddenByDefault() const KDE_DEPRECATED;
00180 
00181 
00187   bool needsTest() const;
00188 
00189 
00190 protected:
00191 
00196   void setKeywords(const TQStringList &keyword) { _keywords = keyword; }
00197 
00202   void setName(const TQString &name) { _name = name; }
00203 
00208   void setComment(const TQString &comment) { _comment = comment; }
00209 
00214   void setIcon(const TQString &icon) { _icon = icon; }
00215 
00220   void setLibrary(const TQString &lib) { _lib = lib; }
00221 
00226   void setHandle(const TQString &handle) { _handle = handle; }
00227 
00234   void setWeight(int weight) { _weight = weight; }
00235 
00236 
00242   void setNeedsTest( bool val );
00243 
00249   void setNeedsRootPrivileges(bool needsRootPrivileges)
00250   { _needsRootPrivileges = needsRootPrivileges; }
00251 
00255   void setIsHiddenByDefault(bool isHiddenByDefault)
00256   { _isHiddenByDefault = isHiddenByDefault; }
00257 
00262   void setDocPath(const TQString &p) { _doc = p; }
00263 
00268   void loadAll();
00269 
00270 private:
00271 
00275   void init(KService::Ptr s);
00276 
00277 private:
00278 
00279   // KDE4 These needs to be moved to TDECModuleInfoPrivate
00280   TQStringList _keywords;
00281   TQString     _name, _icon, _lib, _handle, _fileName, _doc, _comment;
00282   bool        _needsRootPrivileges : 1;
00283   bool        _isHiddenByDefault : 1;
00284   bool        _allLoaded : 1;
00285   int         _weight;
00286 
00287   KService::Ptr _service;
00288 
00289   class TDECModuleInfoPrivate;
00290   TDECModuleInfoPrivate *d;
00291 
00292 };
00293 
00294 #endif // TDECMODULEINFO_H
00295 
00296 // vim: ts=2 sw=2 et

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.