blob: 87154216ef8b5774e0d4d7c1f3ccbe7d934a9cfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/*
Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001-2004
*/
#ifndef KMFKMFPROTOCOLLIBRARY_H
#define KMFKMFPROTOCOLLIBRARY_H
#include <tqobject.h>
#include <tqvaluelist.h>
#include <tqstring.h>
#include <tquuid.h>
#include <kurl.h>
namespace KMF {
class KMFError;
class KMFProtocol;
class KMFProtocolCategory;
/**
@author Christian Hubinger <chubinger@irrsinnig.org>
*/
class KMFProtocolLibrary : public TQObject {
TQ_OBJECT
/** Static Stuff **/
public:
static KMFProtocolLibrary* instance();
private:
static KMFProtocolLibrary* m_instance;
/** End Static stuff **/
public:
~KMFProtocolLibrary();
public:
// TQPtrList<KMFProtocol>* protocolLibrary();
KMFError* saveProtocolLibrary();
void forceProtocolLibraryReload();
void loadProtocolDefinitionsFromURL( const KURL&, KMFError* err );
TQValueList<KMFProtocolCategory*>& protocolCategories();
TQValueList<KMFProtocol*>& allProtocols();
KMFProtocolCategory* findCategory( const TQUuid& uuid );
KMFProtocol* findProtocolByName( const TQString& name );
KMFProtocol* findProtocolByUuid( const TQUuid& uuid );
KMFProtocol* findEquivalentProtocol( KMFProtocol* compare );
private:
TQValueList< KMFProtocolCategory* > m_protocolCategories;
TQValueList< KMFProtocol* > m_protocols;
private:
KMFProtocolLibrary( TQObject* parent, const char* name );
KMFProtocolLibrary();
bool m_libraryLoaded;
};
}
#endif
|