• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

  • tdeio
  • tdeio
kservicefactory.h
1 /* This file is part of the KDE project
2  Copyright (C) 1998, 1999 Torben Weis <weis@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 as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef __kservicefactory_h__
21 #define __kservicefactory_h__
22 
23 #include <tqstringlist.h>
24 
25 #include "kservice.h"
26 #include "tdesycocafactory.h"
27 #include <assert.h>
28 
29 class KSycoca;
30 class KSycocaDict;
31 
38 class TDEIO_EXPORT KServiceFactory : public KSycocaFactory
39 {
40  K_SYCOCAFACTORY( KST_KServiceFactory )
41 public:
45  KServiceFactory();
46  virtual ~KServiceFactory();
47 
51  virtual KSycocaEntry *createEntry(const TQString &, const char *)
52  { assert(0); return 0; }
53 
57  KService * findServiceByName( const TQString &_name );
58 
62  KService * findServiceByDesktopName( const TQString &_name );
63 
67  KService * findServiceByDesktopPath( const TQString &_name );
68 
72  KService * findServiceByMenuId( const TQString &_menuId );
73 
77  KService::List offers( int serviceTypeOffset );
78 
82  KService::List allServices();
83 
87  KService::List allInitServices();
88 
92  static KServiceFactory * self();
93 
94 protected:
95  virtual KService * createEntry(int offset);
96  int m_offerListOffset;
97  int m_initListOffset;
98  KSycocaDict *m_nameDict;
99  int m_nameDictOffset;
100  KSycocaDict *m_relNameDict;
101  int m_relNameDictOffset;
102  KSycocaDict *m_menuIdDict;
103  int m_menuIdDictOffset;
104 
105 private:
106  static KServiceFactory *_self;
107 protected:
108  virtual void virtual_hook( int id, void* data );
109 private:
110  class KServiceFactoryPrivate* d;
111 };
112 
113 #endif
KService
Represent a service, i.e.
Definition: kservice.h:48

tdeio/tdeio

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

tdeio/tdeio

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