Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osqlbackend.h

Go to the documentation of this file.
00001 
00002 #ifndef OSQL_BACKEND_H
00003 #define OSQL_BACKEND_H
00004 
00005 #include <qcstring.h>
00006 #include <qstring.h>
00007 #include <qvaluelist.h>
00008 
00009 
00010 namespace Opie {
00011 namespace DB {
00019 class OSQLBackEnd  /*: public QShared */ {
00020 public:
00021     typedef QValueList<OSQLBackEnd> ValueList;
00029     OSQLBackEnd( const QString& name = QString::null,
00030                  const QString& vendor = QString::null,
00031                  const QString& license = QString::null,
00032                  const QCString& library = QCString() );
00033     OSQLBackEnd( const OSQLBackEnd& );
00034     OSQLBackEnd &operator=( const OSQLBackEnd& );
00035     bool operator==(const OSQLBackEnd& );
00036 
00037     ~OSQLBackEnd();
00038 
00040     QString name()const;
00041 
00043     QString vendor()const;
00044 
00046     QString license()const;
00047 
00049     QCString library() const;
00050 
00051     bool isDefault()const;
00052     int preference()const;
00053 
00055     void setName( const QString& name );
00056 
00058     void setVendor( const QString& vendor );
00059 
00061     void setLicense( const QString& license );
00062 
00064     void setLibrary( const QCString& lib );
00065 
00066     void setDefault( bool );
00067     void setPreference( int );
00068 
00069 private:
00070     QString m_name;
00071     QString m_vendor;
00072     QString m_license;
00073     QCString m_lib;
00074     bool m_default :1;
00075     int m_pref;
00076     class Private;
00077     Private *d;
00078 };
00079 
00080 }
00081 }
00082 
00083 #endif

Generated on Sat Nov 5 16:16:10 2005 for OPIE by  doxygen 1.4.2