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

kded

  • kded
kbuildprotocolinfofactory.cpp
1/* This file is part of the KDE libraries
2 * Copyright (C) 2000 Waldo Bastian <bastian@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#include "kbuildprotocolinfofactory.h"
20#include "tdesycoca.h"
21#include "tdesycocadict.h"
22#include "kresourcelist.h"
23
24#include <tdeglobal.h>
25#include <tdestandarddirs.h>
26#include <kmessageboxwrapper.h>
27#include <kdebug.h>
28#include <tdelocale.h>
29#include <assert.h>
30
31KBuildProtocolInfoFactory::KBuildProtocolInfoFactory() :
32 KProtocolInfoFactory()
33{
34 m_resourceList = new KSycocaResourceList();
35 m_resourceList->add( "services", "*.protocol" );
36}
37
38// return all service types for this factory
39// i.e. first arguments to m_resourceList->add() above
40TQStringList KBuildProtocolInfoFactory::resourceTypes()
41{
42 return TQStringList() << "services";
43}
44
45KBuildProtocolInfoFactory::~KBuildProtocolInfoFactory()
46{
47 delete m_resourceList;
48}
49
50KProtocolInfo *
51KBuildProtocolInfoFactory::createEntry( const TQString& file, const char * )
52{
53 return new KProtocolInfo(file);
54}
55
56void
57KBuildProtocolInfoFactory::addEntry( KSycocaEntry *newEntry, const char *resource)
58{
59 KSycocaFactory::addEntry(newEntry, resource);
60}
61
KBuildProtocolInfoFactory::KBuildProtocolInfoFactory
KBuildProtocolInfoFactory()
Create factory.
Definition: kbuildprotocolinfofactory.cpp:31
KBuildProtocolInfoFactory::resourceTypes
static TQStringList resourceTypes()
Returns all resource types for this service factory.
Definition: kbuildprotocolinfofactory.cpp:40
KBuildProtocolInfoFactory::createEntry
virtual KProtocolInfo * createEntry(const TQString &, const char *)
Create new entry.
Definition: kbuildprotocolinfofactory.cpp:51
KBuildProtocolInfoFactory::addEntry
virtual void addEntry(KSycocaEntry *newEntry, const char *resource)
Add a new entry.
Definition: kbuildprotocolinfofactory.cpp:57

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.