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

kded

  • kded
kbuildservicefactory.h
1/* This file is part of the KDE project
2 Copyright (C) 1999 David Faure <faure@kde.org>
3 1999 Waldo Bastian <bastian@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __k_build_service_factory_h__
22#define __k_build_service_factory_h__
23
24#include <tqptrdict.h>
25#include <tqstringlist.h>
26
27#include <kservicefactory.h>
28// We export the services to the service group factory!
29#include <kbuildservicegroupfactory.h>
30
35class KBuildServiceFactory : public KServiceFactory
36{
37public:
41 KBuildServiceFactory( KSycocaFactory *serviceTypeFactory,
42 KBuildServiceGroupFactory *serviceGroupFactory );
43
44 virtual ~KBuildServiceFactory();
45
46 KService *findServiceByName(const TQString &_name);
47
51 virtual KSycocaEntry * createEntry(const TQString &file, const char *resource);
52
53 virtual KService * createEntry( int ) { assert(0); return 0L; }
54
58 void addEntry(KSycocaEntry *newEntry, const char *resource);
59
63 virtual void save(TQDataStream &str);
64
71 virtual void saveHeader(TQDataStream &str);
72
76 static TQStringList resourceTypes();
77private:
78 void saveOfferList(TQDataStream &str);
79 void saveInitList(TQDataStream &str);
80
81 TQDict<KService> m_serviceDict;
82 TQPtrDict<KService> m_dupeDict;
83 KSycocaFactory *m_serviceTypeFactory;
84 KBuildServiceGroupFactory *m_serviceGroupFactory;
85};
86
87#endif
KBuildServiceFactory
Service factory for building tdesycoca.
Definition: kbuildservicefactory.h:36
KBuildServiceFactory::KBuildServiceFactory
KBuildServiceFactory(KSycocaFactory *serviceTypeFactory, KBuildServiceGroupFactory *serviceGroupFactory)
Create factory.
Definition: kbuildservicefactory.cpp:33
KBuildServiceFactory::save
virtual void save(TQDataStream &str)
Write out service specific index files.
Definition: kbuildservicefactory.cpp:112
KBuildServiceFactory::resourceTypes
static TQStringList resourceTypes()
Returns all resource types for this service factory.
Definition: kbuildservicefactory.cpp:50
KBuildServiceFactory::addEntry
void addEntry(KSycocaEntry *newEntry, const char *resource)
Add a new entry.
Definition: kbuildservicefactory.cpp:228
KBuildServiceFactory::saveHeader
virtual void saveHeader(TQDataStream &str)
Write out header information.
Definition: kbuildservicefactory.cpp:100
KBuildServiceFactory::createEntry
virtual KSycocaEntry * createEntry(const TQString &file, const char *resource)
Construct a KService from a config file.
Definition: kbuildservicefactory.cpp:67
KBuildServiceGroupFactory
Service group factory for building tdesycoca.
Definition: kbuildservicegroupfactory.h:31

kded

Skip menu "kded"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kded

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