summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqlbackend.cpp
Side-by-side diff
Diffstat (limited to 'libopie2/opiedb/osqlbackend.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiedb/osqlbackend.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libopie2/opiedb/osqlbackend.cpp b/libopie2/opiedb/osqlbackend.cpp
index 6e5159f..aede7c1 100644
--- a/libopie2/opiedb/osqlbackend.cpp
+++ b/libopie2/opiedb/osqlbackend.cpp
@@ -1,28 +1,29 @@
#include "osqlbackend.h"
-using namespace Opie::DB;
+namespace Opie {
+namespace DB {
OSQLBackEnd::OSQLBackEnd( const QString& name,
const QString& vendor,
const QString& license,
const QCString& lib )
: m_name( name), m_vendor( vendor), m_license( license ), m_lib( lib )
{
m_default = false;
m_pref = -1;
}
OSQLBackEnd::OSQLBackEnd( const OSQLBackEnd& back ) {
(*this) = back;
}
OSQLBackEnd::~OSQLBackEnd() {
}
bool OSQLBackEnd::operator==( const OSQLBackEnd& other ) {
if ( m_pref != other.m_pref ) return false;
if ( m_default != other.m_default ) return false;
if ( m_name != other.m_name ) return false;
if ( m_vendor != other.m_vendor ) return false;
if ( m_license != other.m_license ) return false;
if ( m_lib != other.m_lib ) return false;
@@ -52,24 +53,28 @@ QCString OSQLBackEnd::library() const {
bool OSQLBackEnd::isDefault()const {
return m_default;
}
int OSQLBackEnd::preference()const {
return m_pref;
}
void OSQLBackEnd::setName( const QString& name ) {
m_name = name;
}
void OSQLBackEnd::setVendor( const QString& vendor ) {
m_vendor = vendor;
}
void OSQLBackEnd::setLicense( const QString & license ) {
m_license = license;
}
void OSQLBackEnd::setLibrary( const QCString& lib ) {
m_lib = lib;
}
void OSQLBackEnd::setDefault( bool def) {
m_default = def;
}
void OSQLBackEnd::setPreference( int pref ) {
m_pref = pref;
}
+
+
+}
+} \ No newline at end of file