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 "ksycoca.h"
21
#include "ksycocadict.h"
22
#include "kresourcelist.h"
23
24
#include <kglobal.h>
25
#include <kstandarddirs.h>
26
#include <kmessageboxwrapper.h>
27
#include <kdebug.h>
28
#include <klocale.h>
29
#include <assert.h>
30
31
KBuildProtocolInfoFactory::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
40
TQStringList
KBuildProtocolInfoFactory::resourceTypes
()
41
{
42
return
TQStringList() <<
"services"
;
43
}
44
45
KBuildProtocolInfoFactory::~KBuildProtocolInfoFactory()
46
{
47
delete
m_resourceList;
48
}
49
50
KProtocolInfo *
51
KBuildProtocolInfoFactory::createEntry
(
const
TQString& file,
const
char
* )
52
{
53
return
new
KProtocolInfo(file);
54
}
55
56
void
57
KBuildProtocolInfoFactory::addEntry
( KSycocaEntry *newEntry,
const
char
*resource)
58
{
59
KSycocaFactory::addEntry
(newEntry, resource);
60
}
61
kded
Skip menu "kded"
Main Page
Alphabetical List
Class List
File List
Class Members
Related Pages
kded
Skip menu "kded"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver