blob: 28451b65eeba6c6cc8d5d9af4de0337d8ef3673e (
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
81
82
83
|
#ifndef OSQL_BACKEND_H
#define OSQL_BACKEND_H
#include <qcstring.h>
#include <qstring.h>
#include <qvaluelist.h>
namespace Opie {
namespace DB {
/**
* OSQLBackEnd represents an available backend
* to the Opie Database Service
* It's used to easily extend OSQL services by
* 3rd party plugins.
* It's used to show
*/
class OSQLBackEnd /*: public QShared */ {
public:
typedef QValueList<OSQLBackEnd> ValueList;
/**
* A basic c'tor
* @param name the user visible name of the service
* @param vendor the vendor of the service
* @param license the license of the service
* @param library what is the name of lib if builtin it's builtin
*/
OSQLBackEnd( const QString& name = QString::null,
const QString& vendor = QString::null,
const QString& license = QString::null,
const QCString& library = QCString() );
OSQLBackEnd( const OSQLBackEnd& );
OSQLBackEnd &operator=( const OSQLBackEnd& );
bool operator==(const OSQLBackEnd& );
~OSQLBackEnd();
/** @return the name */
QString name()const;
/** @return the vendor */
QString vendor()const;
/** @return the license */
QString license()const;
/** @return the name of the library */
QCString library() const;
bool isDefault()const;
int preference()const;
/** @param name the name to set */
void setName( const QString& name );
/** @param vendor the vendor to set */
void setVendor( const QString& vendor );
/** @param license the license applied */
void setLicense( const QString& license );
/** @param the lib to set */
void setLibrary( const QCString& lib );
void setDefault( bool );
void setPreference( int );
private:
QString m_name;
QString m_vendor;
QString m_license;
QCString m_lib;
bool m_default :1;
int m_pref;
class Private;
Private *d;
};
}
}
#endif
|