summaryrefslogtreecommitdiff
path: root/libsql/osqlmanager.h
authorzecke <zecke>2002-08-27 20:17:50 (UTC)
committer zecke <zecke>2002-08-27 20:17:50 (UTC)
commit86352e32f449ecf00de254674b7dcac72bc34a14 (patch) (unidiff)
treeb5803b69ca00dceea1e2a76a5eee390f0748f27e /libsql/osqlmanager.h
parent1398b50ffc193bc9ab69ebe198aeda847c39516e (diff)
downloadopie-86352e32f449ecf00de254674b7dcac72bc34a14.zip
opie-86352e32f449ecf00de254674b7dcac72bc34a14.tar.gz
opie-86352e32f449ecf00de254674b7dcac72bc34a14.tar.bz2
Initial check in of the light wrapper library
around normal SQL The first driver implementation is a SQLite version
Diffstat (limited to 'libsql/osqlmanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libsql/osqlmanager.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/libsql/osqlmanager.h b/libsql/osqlmanager.h
new file mode 100644
index 0000000..b3d8d69
--- a/dev/null
+++ b/libsql/osqlmanager.h
@@ -0,0 +1,62 @@
1
2#ifndef OSQL_MANAGER_H
3#define OSQL_MANAGER_H
4
5#include <qobject.h>
6
7#include "osqlbackend.h"
8
9/**
10 * OSQLManager is responsible for loading
11 * and unloading, querying different OSQL
12 * services
13 * Load a OSQLDriver and delete it yourself
14 *
15 */
16class OSQLDriver;
17class OSQLManager : public QObject {
18 Q_OBJECT
19public:
20 /**
21 * Empty c'tor
22 */
23 OSQLManager();
24
25 /**
26 * Query the Manager for different backends
27 */
28 OSQLBackEnd::ValueList queryBackEnd();
29
30 /**
31 * Load a backend with it's name from param name
32 */
33 OSQLDriver* load( const QString& name );
34
35 /**
36 * Load a OSQLDevice from const reference of OSQLBackEnd
37 */
38 OSQLDriver* load( const OSQLBackEnd& );
39
40 /**
41 * loads the Opie standard backend
42 */
43 OSQLDriver *standard();
44
45 /**
46 * register path to the search path list
47 * When querying for services we scan all the
48 * registered path for backends
49 */
50 void registerPath( const QString& path );
51
52 /**
53 * unregisterPath from the search path list
54 */
55 bool unregisterPath( const QString& path );
56private:
57 OSQLBackEnd::ValueList builtIn()const;
58 OSQLBackEnd::ValueList m_list;
59 QStringList m_path;
60};
61
62#endif