-rw-r--r-- | libopie2/opiedb/osqlmanager.cpp | 2 |
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,37 +1,37 @@ | |||
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 | ||
7 | namespace Opie { | 7 | namespace Opie { |
8 | namespace DB { | 8 | namespace DB { |
9 | 9 | ||
10 | OSQLManager::OSQLManager() { | 10 | OSQLManager::OSQLManager() { |
11 | } | 11 | } |
12 | OSQLBackEnd::ValueList OSQLManager::queryBackEnd() { | 12 | OSQLBackEnd::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 | */ |
30 | OSQLDriver* OSQLManager::load( const QString& name ) { | 30 | OSQLDriver* 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 | } |