summaryrefslogtreecommitdiff
authordrw <drw>2004-12-21 21:03:07 (UTC)
committer drw <drw>2004-12-21 21:03:07 (UTC)
commitff17ee5fdc96acdc533ce46fcefbd1a7624516b7 (patch) (side-by-side diff)
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 @@
#include "osqlmanager.h"
#include "osqlbackendmanager.h"
#include "osqlitedriver.h"
-
+#include <stdlib.h>
namespace Opie {
namespace DB {
OSQLManager::OSQLManager() {
}
OSQLBackEnd::ValueList OSQLManager::queryBackEnd() {
m_list.clear();
QString opie = QString::fromLatin1( getenv("OPIEDIR") );
if ( !m_path.contains(opie) && !opie.isEmpty() )
m_path << opie;
OSQLBackEndManager mng( m_path );
m_list = mng.scan();
m_list += builtIn();
return m_list;
}
/*
* loading dso's is currently not enabled due problems with QLibrary
* beeing in libqpe and not libqte
*/
OSQLDriver* OSQLManager::load( const QString& name ) {
OSQLDriver* driver = 0l;
if ( name == "SQLite" ) {
driver = new Opie::DB::Internal::OSQLiteDriver;
}
return driver;
}
/*
* same as above
*/
OSQLDriver* OSQLManager::load( const OSQLBackEnd& end) {
OSQLDriver *driver = 0l;
if ( end.library() == "builtin" &&
end.name() == "SQLite" )
driver = new Opie::DB::Internal::OSQLiteDriver;
return driver;
}
/*
* let's find the a default with the highes preference
*/
OSQLDriver* OSQLManager::standard() {
OSQLDriver* driver =0l;