Diffstat (limited to 'libopie2/opiedb/osqlbackend.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiedb/osqlbackend.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqlbackend.cpp b/libopie2/opiedb/osqlbackend.cpp index d6c39a9..6e5159f 100644 --- a/libopie2/opiedb/osqlbackend.cpp +++ b/libopie2/opiedb/osqlbackend.cpp | |||
@@ -1,51 +1,53 @@ | |||
1 | 1 | ||
2 | #include "osqlbackend.h" | 2 | #include "osqlbackend.h" |
3 | 3 | ||
4 | using namespace Opie::DB; | ||
5 | |||
4 | 6 | ||
5 | OSQLBackEnd::OSQLBackEnd( const QString& name, | 7 | OSQLBackEnd::OSQLBackEnd( const QString& name, |
6 | const QString& vendor, | 8 | const QString& vendor, |
7 | const QString& license, | 9 | const QString& license, |
8 | const QCString& lib ) | 10 | const QCString& lib ) |
9 | : m_name( name), m_vendor( vendor), m_license( license ), m_lib( lib ) | 11 | : m_name( name), m_vendor( vendor), m_license( license ), m_lib( lib ) |
10 | { | 12 | { |
11 | m_default = false; | 13 | m_default = false; |
12 | m_pref = -1; | 14 | m_pref = -1; |
13 | } | 15 | } |
14 | OSQLBackEnd::OSQLBackEnd( const OSQLBackEnd& back ) { | 16 | OSQLBackEnd::OSQLBackEnd( const OSQLBackEnd& back ) { |
15 | (*this) = back; | 17 | (*this) = back; |
16 | } | 18 | } |
17 | OSQLBackEnd::~OSQLBackEnd() { | 19 | OSQLBackEnd::~OSQLBackEnd() { |
18 | } | 20 | } |
19 | bool OSQLBackEnd::operator==( const OSQLBackEnd& other ) { | 21 | bool OSQLBackEnd::operator==( const OSQLBackEnd& other ) { |
20 | if ( m_pref != other.m_pref ) return false; | 22 | if ( m_pref != other.m_pref ) return false; |
21 | if ( m_default != other.m_default ) return false; | 23 | if ( m_default != other.m_default ) return false; |
22 | if ( m_name != other.m_name ) return false; | 24 | if ( m_name != other.m_name ) return false; |
23 | if ( m_vendor != other.m_vendor ) return false; | 25 | if ( m_vendor != other.m_vendor ) return false; |
24 | if ( m_license != other.m_license ) return false; | 26 | if ( m_license != other.m_license ) return false; |
25 | if ( m_lib != other.m_lib ) return false; | 27 | if ( m_lib != other.m_lib ) return false; |
26 | 28 | ||
27 | return true; | 29 | return true; |
28 | } | 30 | } |
29 | OSQLBackEnd &OSQLBackEnd::operator=(const OSQLBackEnd& back ) { | 31 | OSQLBackEnd &OSQLBackEnd::operator=(const OSQLBackEnd& back ) { |
30 | m_name = back.m_name; | 32 | m_name = back.m_name; |
31 | m_vendor = back.m_vendor; | 33 | m_vendor = back.m_vendor; |
32 | m_license = back.m_license; | 34 | m_license = back.m_license; |
33 | m_lib = back.m_lib; | 35 | m_lib = back.m_lib; |
34 | m_pref = back.m_pref; | 36 | m_pref = back.m_pref; |
35 | m_default = back.m_default; | 37 | m_default = back.m_default; |
36 | return *this; | 38 | return *this; |
37 | } | 39 | } |
38 | QString OSQLBackEnd::name() const { | 40 | QString OSQLBackEnd::name() const { |
39 | return m_name; | 41 | return m_name; |
40 | } | 42 | } |
41 | QString OSQLBackEnd::vendor() const { | 43 | QString OSQLBackEnd::vendor() const { |
42 | return m_vendor; | 44 | return m_vendor; |
43 | } | 45 | } |
44 | QString OSQLBackEnd::license() const { | 46 | QString OSQLBackEnd::license() const { |
45 | return m_license; | 47 | return m_license; |
46 | } | 48 | } |
47 | QCString OSQLBackEnd::library() const { | 49 | QCString OSQLBackEnd::library() const { |
48 | return m_lib; | 50 | return m_lib; |
49 | } | 51 | } |
50 | bool OSQLBackEnd::isDefault()const { | 52 | bool OSQLBackEnd::isDefault()const { |
51 | return m_default; | 53 | return m_default; |