summaryrefslogtreecommitdiff
authordrw <drw>2004-12-21 21:03:07 (UTC)
committer drw <drw>2004-12-21 21:03:07 (UTC)
commitff17ee5fdc96acdc533ce46fcefbd1a7624516b7 (patch) (unidiff)
tree09350c70b0fdcc70e8ed1e0967e770071ae2d846
parent06bacf46e8060a6d9e9b58553e0264628464d136 (diff)
downloadopie-ff17ee5fdc96acdc533ce46fcefbd1a7624516b7.zip
opie-ff17ee5fdc96acdc533ce46fcefbd1a7624516b7.tar.gz
opie-ff17ee5fdc96acdc533ce46fcefbd1a7624516b7.tar.bz2
Fix compile
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiedb/osqlmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiedb/osqlmanager.cpp b/libopie2/opiedb/osqlmanager.cpp
index c472f6b..276b800 100644
--- a/libopie2/opiedb/osqlmanager.cpp
+++ b/libopie2/opiedb/osqlmanager.cpp
@@ -1,53 +1,53 @@
1#include "osqlmanager.h" 1#include "osqlmanager.h"
2#include "osqlbackendmanager.h" 2#include "osqlbackendmanager.h"
3#include "osqlitedriver.h" 3#include "osqlitedriver.h"
4 4
5 5#include <stdlib.h>
6 6
7namespace Opie { 7namespace Opie {
8namespace DB { 8namespace DB {
9 9
10OSQLManager::OSQLManager() { 10OSQLManager::OSQLManager() {
11} 11}
12OSQLBackEnd::ValueList OSQLManager::queryBackEnd() { 12OSQLBackEnd::ValueList OSQLManager::queryBackEnd() {
13 m_list.clear(); 13 m_list.clear();
14 QString opie = QString::fromLatin1( getenv("OPIEDIR") ); 14 QString opie = QString::fromLatin1( getenv("OPIEDIR") );
15 15
16 if ( !m_path.contains(opie) && !opie.isEmpty() ) 16 if ( !m_path.contains(opie) && !opie.isEmpty() )
17 m_path << opie; 17 m_path << opie;
18 18
19 19
20 OSQLBackEndManager mng( m_path ); 20 OSQLBackEndManager mng( m_path );
21 m_list = mng.scan(); 21 m_list = mng.scan();
22 m_list += builtIn(); 22 m_list += builtIn();
23 23
24 return m_list; 24 return m_list;
25} 25}
26/* 26/*
27 * loading dso's is currently not enabled due problems with QLibrary 27 * loading dso's is currently not enabled due problems with QLibrary
28 * beeing in libqpe and not libqte 28 * beeing in libqpe and not libqte
29 */ 29 */
30OSQLDriver* OSQLManager::load( const QString& name ) { 30OSQLDriver* OSQLManager::load( const QString& name ) {
31 OSQLDriver* driver = 0l; 31 OSQLDriver* driver = 0l;
32 32
33 if ( name == "SQLite" ) { 33 if ( name == "SQLite" ) {
34 driver = new Opie::DB::Internal::OSQLiteDriver; 34 driver = new Opie::DB::Internal::OSQLiteDriver;
35 } 35 }
36 return driver; 36 return driver;
37} 37}
38/* 38/*
39 * same as above 39 * same as above
40 */ 40 */
41OSQLDriver* OSQLManager::load( const OSQLBackEnd& end) { 41OSQLDriver* OSQLManager::load( const OSQLBackEnd& end) {
42 OSQLDriver *driver = 0l; 42 OSQLDriver *driver = 0l;
43 if ( end.library() == "builtin" && 43 if ( end.library() == "builtin" &&
44 end.name() == "SQLite" ) 44 end.name() == "SQLite" )
45 driver = new Opie::DB::Internal::OSQLiteDriver; 45 driver = new Opie::DB::Internal::OSQLiteDriver;
46 46
47 return driver; 47 return driver;
48} 48}
49/* 49/*
50 * let's find the a default with the highes preference 50 * let's find the a default with the highes preference
51 */ 51 */
52OSQLDriver* OSQLManager::standard() { 52OSQLDriver* OSQLManager::standard() {
53 OSQLDriver* driver =0l; 53 OSQLDriver* driver =0l;