1/* This file is part of the KDE project
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#ifndef KDED_KBUILD_PROTOCOL_INFO_FACTORY_H
20#define KDED_KBUILD_PROTOCOL_INFO_FACTORY_H
21
22#include <kprotocolinfofactory.h>
23#include <assert.h>
24#include <QtCore/QStringList>
25
26/**
27 * Protocol Info factory for building ksycoca
28 * @internal
29 */
30class KBuildProtocolInfoFactory : public KProtocolInfoFactory
31{
32public:
33 /**
34 * Create factory
35 */
36 KBuildProtocolInfoFactory();
37
38 virtual ~KBuildProtocolInfoFactory();
39
40 /**
41 * Create new entry.
42 */
43 virtual KProtocolInfo* createEntry(const QString &, const char *) const;
44
45 virtual KProtocolInfo* createEntry(int) const { assert(0); return 0L; }
46
47 /**
48 * Returns all resource types for this service factory
49 */
50 static QStringList resourceTypes();
51};
52
53#endif
54