summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqlbackend.cpp
blob: 5c374809cf28fdb492cef9090c817fb9adba1cc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80

#include "osqlbackend.h"

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;

    return true;
}
OSQLBackEnd &OSQLBackEnd::operator=(const OSQLBackEnd& back ) {
    m_name = back.m_name;
    m_vendor = back.m_vendor;
    m_license = back.m_license;
    m_lib = back.m_lib;
    m_pref = back.m_pref;
    m_default = back.m_default;
    return *this;
}
QString OSQLBackEnd::name() const {
    return m_name;
}
QString OSQLBackEnd::vendor() const {
    return m_vendor;
}
QString OSQLBackEnd::license() const {
    return m_license;
}
QCString OSQLBackEnd::library() const {
    return m_lib;
}
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;
}


}
}