Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/scripting/kexidb/kexidbschema.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
56 | */ | 56 | */ | ||
57 | class KexiDBSchema : public QObject | 57 | class KexiDBSchema : public QObject | ||
58 | { | 58 | { | ||
59 | Q_OBJECT | 59 | Q_OBJECT | ||
60 | public: | 60 | public: | ||
61 | KexiDBSchema(QObject* parent, const QString& name, KDbObject* schema, KDbFieldList* fieldlist, bool owner); | 61 | KexiDBSchema(QObject* parent, const QString& name, KDbObject* schema, KDbFieldList* fieldlist, bool owner); | ||
62 | virtual ~KexiDBSchema(); | 62 | virtual ~KexiDBSchema(); | ||
63 | 63 | | |||
64 | public Q_SLOTS: | 64 | public: | ||
65 | 65 | | |||
66 | /** Returns the name of the schema. */ | 66 | /** Returns the name of the schema. */ | ||
67 | const QString name() const; | 67 | Q_INVOKABLE QString name() const; | ||
staniek: Do getters need to be slots? | |||||
68 | /** Set the name of the schema. */ | 68 | /** Set the name of the schema. */ | ||
69 | void setName(const QString& name); | 69 | Q_INVOKABLE void setName(const QString& name); | ||
70 | 70 | | |||
71 | /** Returns the caption of the schema. */ | 71 | /** Returns the caption of the schema. */ | ||
72 | const QString caption() const; | 72 | Q_INVOKABLE QString caption() const; | ||
73 | /** Set the caption of the schema. */ | 73 | /** Set the caption of the schema. */ | ||
74 | void setCaption(const QString& caption); | 74 | Q_INVOKABLE void setCaption(const QString& caption); | ||
75 | 75 | | |||
76 | /** Returns a description of the schema. */ | 76 | /** Returns a description of the schema. */ | ||
77 | const QString description() const; | 77 | Q_INVOKABLE QString description() const; | ||
78 | /** Set a description of the schema. */ | 78 | /** Set a description of the schema. */ | ||
79 | void setDescription(const QString& description); | 79 | Q_INVOKABLE void setDescription(const QString& description); | ||
80 | 80 | | |||
81 | /** Returns the \a KexiDBFieldList object this schema has. */ | 81 | /** Returns the \a KexiDBFieldList object this schema has. */ | ||
82 | QObject* fieldlist(); | 82 | Q_INVOKABLE QObject* fieldlist(); | ||
83 | 83 | | |||
84 | protected: | 84 | protected: | ||
85 | KDbObject* m_schema; | 85 | KDbObject* m_schema; | ||
86 | KDbFieldList* m_fieldlist; | 86 | KDbFieldList* m_fieldlist; | ||
87 | bool m_owner; | 87 | bool m_owner; | ||
88 | }; | 88 | }; | ||
89 | 89 | | |||
90 | /** | 90 | /** | ||
Show All 21 Lines | 111 | { | |||
112 | Q_OBJECT | 112 | Q_OBJECT | ||
113 | public: | 113 | public: | ||
114 | KexiDBQuerySchema(QObject* parent, KDbQuerySchema* queryschema, bool owner); | 114 | KexiDBQuerySchema(QObject* parent, KDbQuerySchema* queryschema, bool owner); | ||
115 | virtual ~KexiDBQuerySchema(); | 115 | virtual ~KexiDBQuerySchema(); | ||
116 | KDbQuerySchema* queryschema(); | 116 | KDbQuerySchema* queryschema(); | ||
117 | 117 | | |||
118 | private: | 118 | private: | ||
119 | /** Returns the SQL-statement of this query schema. */ | 119 | /** Returns the SQL-statement of this query schema. */ | ||
120 | const QString statement() const; | 120 | QString statement() const; | ||
121 | /** Set the SQL-statement of this query schema. */ | 121 | /** Set the SQL-statement of this query schema. */ | ||
122 | void setStatement(const QString& statement); | 122 | void setStatement(const QString& statement); | ||
123 | /** Set the where-expression. */ | 123 | /** Set the where-expression. */ | ||
124 | bool setWhereExpression(const QString& whereexpression); | 124 | bool setWhereExpression(const QString& whereexpression); | ||
125 | }; | 125 | }; | ||
126 | 126 | | |||
127 | } | 127 | } | ||
128 | 128 | | |||
129 | #endif | 129 | #endif |
Do getters need to be slots?