Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/scripting/kexidb/kexidbmodule.h
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #ifndef SCRIPTING_KEXIDBMODULE_H | 20 | #ifndef SCRIPTING_KEXIDBMODULE_H | ||
21 | #define SCRIPTING_KEXIDBMODULE_H | 21 | #define SCRIPTING_KEXIDBMODULE_H | ||
22 | 22 | | |||
23 | #include <QString> | 23 | #include <QString> | ||
24 | #include <QObject> | 24 | #include <QObject> | ||
25 | 25 | | |||
26 | #include <KDbDriverManager> | 26 | #include <KDbDriverManager> | ||
27 | #include <KDbConnection> | ||||
27 | 28 | | |||
28 | namespace Scripting | 29 | namespace Scripting | ||
29 | { | 30 | { | ||
30 | 31 | | |||
31 | // Forward declarations. | 32 | // Forward declarations. | ||
32 | class KexiDBDriver; | 33 | class KexiDBDriver; | ||
33 | class KexiDBConnectionData; | 34 | class KexiDBConnectionData; | ||
34 | class KexiDBField; | 35 | class KexiDBField; | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 50 | public Q_SLOTS: | |||
77 | /** Return a new \a KexiDBTableSchema object. */ | 78 | /** Return a new \a KexiDBTableSchema object. */ | ||
78 | QObject* tableSchema(const QString& tablename); | 79 | QObject* tableSchema(const QString& tablename); | ||
79 | 80 | | |||
80 | /** Return a new \a KexiDBQuerySchema object. */ | 81 | /** Return a new \a KexiDBQuerySchema object. */ | ||
81 | QObject* querySchema(); | 82 | QObject* querySchema(); | ||
82 | 83 | | |||
83 | private Q_SLOTS: | 84 | private Q_SLOTS: | ||
84 | //! Wraps a KDbConnection into a KexiDBConnection | 85 | //! Wraps a KDbConnection into a KexiDBConnection | ||
85 | QObject* connectionWrapper(QObject* connection); | 86 | QObject* connectionWrapper(KDbConnection* connection); | ||
86 | 87 | | |||
87 | private: | 88 | private: | ||
88 | KDbDriverManager m_drivermanager; | 89 | KDbDriverManager m_drivermanager; | ||
90 | | ||||
89 | }; | 91 | }; | ||
90 | 92 | | |||
91 | } | 93 | } | ||
92 | 94 | | |||
93 | #endif | 95 | #endif | ||
94 | 96 | |