00001 00002 #ifndef OSQL_MANAGER_H 00003 #define OSQL_MANAGER_H 00004 00005 #include <qobject.h> 00006 #include <qstringlist.h> 00007 00008 #include "osqlbackend.h" 00009 00010 00011 namespace Opie { 00012 namespace DB { 00020 class OSQLDriver; 00021 class OSQLManager : public QObject { 00022 Q_OBJECT 00023 public: 00027 OSQLManager(); 00028 00032 OSQLBackEnd::ValueList queryBackEnd(); 00033 00037 OSQLDriver* load( const QString& name ); 00038 00042 OSQLDriver* load( const OSQLBackEnd& ); 00043 00047 OSQLDriver *standard(); 00048 00054 void registerPath( const QString& path ); 00055 00059 bool unregisterPath( const QString& path ); 00060 private: 00061 OSQLBackEnd::ValueList builtIn()const; 00062 OSQLBackEnd::ValueList m_list; 00063 QStringList m_path; 00064 class Private; 00065 Private *d; 00066 }; 00067 } 00068 } 00069 00070 #endif
1.4.2