summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqlmanager.h
Unidiff
Diffstat (limited to 'libopie2/opiedb/osqlmanager.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiedb/osqlmanager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqlmanager.h b/libopie2/opiedb/osqlmanager.h
index 5323b14..ca73c64 100644
--- a/libopie2/opiedb/osqlmanager.h
+++ b/libopie2/opiedb/osqlmanager.h
@@ -1,34 +1,36 @@
1 1
2#ifndef OSQL_MANAGER_H 2#ifndef OSQL_MANAGER_H
3#define OSQL_MANAGER_H 3#define OSQL_MANAGER_H
4 4
5#include <qobject.h> 5#include <qobject.h>
6#include <qstringlist.h> 6#include <qstringlist.h>
7 7
8#include "osqlbackend.h" 8#include "osqlbackend.h"
9 9
10 10
11namespace Opie {
12namespace DB {
11/** 13/**
12 * OSQLManager is responsible for loading 14 * OSQLManager is responsible for loading
13 * and unloading, querying different OSQL 15 * and unloading, querying different OSQL
14 * services 16 * services
15 * Load a OSQLDriver and delete it yourself 17 * Load a OSQLDriver and delete it yourself
16 * 18 *
17 */ 19 */
18class OSQLDriver; 20class OSQLDriver;
19class OSQLManager : public QObject { 21class OSQLManager : public QObject {
20 Q_OBJECT 22 Q_OBJECT
21public: 23public:
22 /** 24 /**
23 * Empty c'tor 25 * Empty c'tor
24 */ 26 */
25 OSQLManager(); 27 OSQLManager();
26 28
27 /** 29 /**
28 * Query the Manager for different backends 30 * Query the Manager for different backends
29 */ 31 */
30 OSQLBackEnd::ValueList queryBackEnd(); 32 OSQLBackEnd::ValueList queryBackEnd();
31 33
32 /** 34 /**
33 * Load a backend with it's name from param name 35 * Load a backend with it's name from param name
34 */ 36 */
@@ -38,27 +40,31 @@ public:
38 * Load a OSQLDevice from const reference of OSQLBackEnd 40 * Load a OSQLDevice from const reference of OSQLBackEnd
39 */ 41 */
40 OSQLDriver* load( const OSQLBackEnd& ); 42 OSQLDriver* load( const OSQLBackEnd& );
41 43
42 /** 44 /**
43 * loads the Opie standard backend 45 * loads the Opie standard backend
44 */ 46 */
45 OSQLDriver *standard(); 47 OSQLDriver *standard();
46 48
47 /** 49 /**
48 * register path to the search path list 50 * register path to the search path list
49 * When querying for services we scan all the 51 * When querying for services we scan all the
50 * registered path for backends 52 * registered path for backends
51 */ 53 */
52 void registerPath( const QString& path ); 54 void registerPath( const QString& path );
53 55
54 /** 56 /**
55 * unregisterPath from the search path list 57 * unregisterPath from the search path list
56 */ 58 */
57 bool unregisterPath( const QString& path ); 59 bool unregisterPath( const QString& path );
58private: 60private:
59 OSQLBackEnd::ValueList builtIn()const; 61 OSQLBackEnd::ValueList builtIn()const;
60 OSQLBackEnd::ValueList m_list; 62 OSQLBackEnd::ValueList m_list;
61 QStringList m_path; 63 QStringList m_path;
64 class Private;
65 Private *d;
62}; 66};
67}
68}
63 69
64#endif 70#endif