summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqlbackend.h
Unidiff
Diffstat (limited to 'libopie2/opiedb/osqlbackend.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiedb/osqlbackend.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqlbackend.h b/libopie2/opiedb/osqlbackend.h
index ad879a4..28451b6 100644
--- a/libopie2/opiedb/osqlbackend.h
+++ b/libopie2/opiedb/osqlbackend.h
@@ -1,32 +1,35 @@
1 1
2#ifndef OSQL_BACKEND_H 2#ifndef OSQL_BACKEND_H
3#define OSQL_BACKEND_H 3#define OSQL_BACKEND_H
4 4
5#include <qcstring.h> 5#include <qcstring.h>
6#include <qstring.h> 6#include <qstring.h>
7#include <qvaluelist.h> 7#include <qvaluelist.h>
8 8
9
10namespace Opie {
11namespace DB {
9/** 12/**
10 * OSQLBackEnd represents an available backend 13 * OSQLBackEnd represents an available backend
11 * to the Opie Database Service 14 * to the Opie Database Service
12 * It's used to easily extend OSQL services by 15 * It's used to easily extend OSQL services by
13 * 3rd party plugins. 16 * 3rd party plugins.
14 * It's used to show 17 * It's used to show
15 */ 18 */
16class OSQLBackEnd /*: public QShared */ { 19class OSQLBackEnd /*: public QShared */ {
17public: 20public:
18 typedef QValueList<OSQLBackEnd> ValueList; 21 typedef QValueList<OSQLBackEnd> ValueList;
19 /** 22 /**
20 * A basic c'tor 23 * A basic c'tor
21 * @param name the user visible name of the service 24 * @param name the user visible name of the service
22 * @param vendor the vendor of the service 25 * @param vendor the vendor of the service
23 * @param license the license of the service 26 * @param license the license of the service
24 * @param library what is the name of lib if builtin it's builtin 27 * @param library what is the name of lib if builtin it's builtin
25 */ 28 */
26 OSQLBackEnd( const QString& name = QString::null, 29 OSQLBackEnd( const QString& name = QString::null,
27 const QString& vendor = QString::null, 30 const QString& vendor = QString::null,
28 const QString& license = QString::null, 31 const QString& license = QString::null,
29 const QCString& library = QCString() ); 32 const QCString& library = QCString() );
30 OSQLBackEnd( const OSQLBackEnd& ); 33 OSQLBackEnd( const OSQLBackEnd& );
31 OSQLBackEnd &operator=( const OSQLBackEnd& ); 34 OSQLBackEnd &operator=( const OSQLBackEnd& );
32 bool operator==(const OSQLBackEnd& ); 35 bool operator==(const OSQLBackEnd& );
@@ -49,27 +52,32 @@ public:
49 int preference()const; 52 int preference()const;
50 53
51 /** @param name the name to set */ 54 /** @param name the name to set */
52 void setName( const QString& name ); 55 void setName( const QString& name );
53 56
54 /** @param vendor the vendor to set */ 57 /** @param vendor the vendor to set */
55 void setVendor( const QString& vendor ); 58 void setVendor( const QString& vendor );
56 59
57 /** @param license the license applied */ 60 /** @param license the license applied */
58 void setLicense( const QString& license ); 61 void setLicense( const QString& license );
59 62
60 /** @param the lib to set */ 63 /** @param the lib to set */
61 void setLibrary( const QCString& lib ); 64 void setLibrary( const QCString& lib );
62 65
63 void setDefault( bool ); 66 void setDefault( bool );
64 void setPreference( int ); 67 void setPreference( int );
65 68
66private: 69private:
67 QString m_name; 70 QString m_name;
68 QString m_vendor; 71 QString m_vendor;
69 QString m_license; 72 QString m_license;
70 QCString m_lib; 73 QCString m_lib;
71 bool m_default :1; 74 bool m_default :1;
72 int m_pref; 75 int m_pref;
76 class Private;
77 Private *d;
73}; 78};
74 79
80}
81}
82
75#endif 83#endif