summaryrefslogtreecommitdiff
path: root/libopie2/opiedb
Unidiff
Diffstat (limited to 'libopie2/opiedb') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiedb/opiedb.pro8
-rw-r--r--libopie2/opiedb/osqlmanager.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/libopie2/opiedb/opiedb.pro b/libopie2/opiedb/opiedb.pro
index 401646a..3612f0e 100644
--- a/libopie2/opiedb/opiedb.pro
+++ b/libopie2/opiedb/opiedb.pro
@@ -1,32 +1,38 @@
1TEMPLATE = lib 1TEMPLATE = lib
2CONFIG += qt warn_on debug 2CONFIG += qt warn_on debug
3DESTDIR = $(OPIEDIR)/lib 3DESTDIR = $(OPIEDIR)/lib
4HEADERS = osqlbackend.h \ 4HEADERS = osqlbackend.h \
5 osqldriver.h \ 5 osqldriver.h \
6 osqlerror.h \ 6 osqlerror.h \
7 osqlmanager.h \ 7 osqlmanager.h \
8 osqlquery.h \ 8 osqlquery.h \
9 osqlresult.h \ 9 osqlresult.h \
10 osqltable.h \ 10 osqltable.h \
11 osqlbackendmanager.h \ 11 osqlbackendmanager.h \
12 osqlitedriver.h 12 osqlitedriver.h
13SOURCES = osqlbackend.cpp \ 13SOURCES = osqlbackend.cpp \
14 osqldriver.cpp \ 14 osqldriver.cpp \
15 osqlerror.cpp \ 15 osqlerror.cpp \
16 osqlmanager.cpp \ 16 osqlmanager.cpp \
17 osqlquery.cpp \ 17 osqlquery.cpp \
18 osqlresult.cpp \ 18 osqlresult.cpp \
19 osqltable.cpp \ 19 osqltable.cpp \
20 osqlbackendmanager.cpp \ 20 osqlbackendmanager.cpp \
21 osqlitedriver.cpp 21 osqlitedriver.cpp
22INTERFACES = 22INTERFACES =
23TARGET = opiedb2 23TARGET = opiedb2
24VERSION = 1.8.1 24VERSION = 1.8.1
25INCLUDEPATH += $(OPIEDIR)/include 25INCLUDEPATH += $(OPIEDIR)/include
26DEPENDPATH += $(OPIEDIR)/include 26DEPENDPATH += $(OPIEDIR)/include
27 27
28MOC_DIR = moc 28MOC_DIR = moc
29OBJECTS_DIR = obj 29OBJECTS_DIR = obj
30 30
31include ( $(OPIEDIR)/include.pro ) 31!contains( platform, x11 ) {
32 include ( $(OPIEDIR)/include.pro )
33}
34
35contains( platform, x11 ) {
36 LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
37}
32 38
diff --git a/libopie2/opiedb/osqlmanager.h b/libopie2/opiedb/osqlmanager.h
index b3d8d69..5323b14 100644
--- a/libopie2/opiedb/osqlmanager.h
+++ b/libopie2/opiedb/osqlmanager.h
@@ -1,62 +1,64 @@
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 7
7#include "osqlbackend.h" 8#include "osqlbackend.h"
8 9
10
9/** 11/**
10 * OSQLManager is responsible for loading 12 * OSQLManager is responsible for loading
11 * and unloading, querying different OSQL 13 * and unloading, querying different OSQL
12 * services 14 * services
13 * Load a OSQLDriver and delete it yourself 15 * Load a OSQLDriver and delete it yourself
14 * 16 *
15 */ 17 */
16class OSQLDriver; 18class OSQLDriver;
17class OSQLManager : public QObject { 19class OSQLManager : public QObject {
18 Q_OBJECT 20 Q_OBJECT
19public: 21public:
20 /** 22 /**
21 * Empty c'tor 23 * Empty c'tor
22 */ 24 */
23 OSQLManager(); 25 OSQLManager();
24 26
25 /** 27 /**
26 * Query the Manager for different backends 28 * Query the Manager for different backends
27 */ 29 */
28 OSQLBackEnd::ValueList queryBackEnd(); 30 OSQLBackEnd::ValueList queryBackEnd();
29 31
30 /** 32 /**
31 * Load a backend with it's name from param name 33 * Load a backend with it's name from param name
32 */ 34 */
33 OSQLDriver* load( const QString& name ); 35 OSQLDriver* load( const QString& name );
34 36
35 /** 37 /**
36 * Load a OSQLDevice from const reference of OSQLBackEnd 38 * Load a OSQLDevice from const reference of OSQLBackEnd
37 */ 39 */
38 OSQLDriver* load( const OSQLBackEnd& ); 40 OSQLDriver* load( const OSQLBackEnd& );
39 41
40 /** 42 /**
41 * loads the Opie standard backend 43 * loads the Opie standard backend
42 */ 44 */
43 OSQLDriver *standard(); 45 OSQLDriver *standard();
44 46
45 /** 47 /**
46 * register path to the search path list 48 * register path to the search path list
47 * When querying for services we scan all the 49 * When querying for services we scan all the
48 * registered path for backends 50 * registered path for backends
49 */ 51 */
50 void registerPath( const QString& path ); 52 void registerPath( const QString& path );
51 53
52 /** 54 /**
53 * unregisterPath from the search path list 55 * unregisterPath from the search path list
54 */ 56 */
55 bool unregisterPath( const QString& path ); 57 bool unregisterPath( const QString& path );
56private: 58private:
57 OSQLBackEnd::ValueList builtIn()const; 59 OSQLBackEnd::ValueList builtIn()const;
58 OSQLBackEnd::ValueList m_list; 60 OSQLBackEnd::ValueList m_list;
59 QStringList m_path; 61 QStringList m_path;
60}; 62};
61 63
62#endif 64#endif