kexi
simplecommandlineapp.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KEXIDB_SIMPLECMDLINEAPP_H
00021 #define KEXIDB_SIMPLECMDLINEAPP_H
00022
00023 #include <kexidb/connection.h>
00024 #include <kexidb/driver.h>
00025
00026 #include <kaboutdata.h>
00027
00028 struct KCmdLineOptions;
00029
00030 namespace KexiDB
00031 {
00033
00046 class KEXI_DB_EXPORT SimpleCommandLineApp : public KexiDB::Object
00047 {
00048 public:
00049 SimpleCommandLineApp(
00050 int argc, char** argv, KCmdLineOptions *options, const char *programName,
00051 const char *version, const char *shortDescription=0,
00052 int licenseType=KAboutData::License_Unknown,
00053 const char *copyrightStatement=0, const char *text=0,
00054 const char *homePageAddress=0, const char *bugsEmailAddress="submit@bugs.kde.org");
00055
00056 ~SimpleCommandLineApp();
00057
00059 KInstance* instance() const;
00060
00066 bool openDatabase(const QString& databaseName);
00067
00071 bool closeDatabase();
00072
00074 KexiDB::ConnectionData* connectionData() const;
00075
00078 KexiDB::Connection* connection() const;
00079
00080 protected:
00081 class Private;
00082 Private * const d;
00083 };
00084 }
00085
00086 #endif
|