Changeset View
Changeset View
Standalone View
Standalone View
src/KDbQuerySchema_p.h
Show All 16 Lines | |||||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef KDB_QUERYSCHEMA_P_H | 20 | #ifndef KDB_QUERYSCHEMA_P_H | ||
21 | #define KDB_QUERYSCHEMA_P_H | 21 | #define KDB_QUERYSCHEMA_P_H | ||
22 | 22 | | |||
23 | #include "KDbDriver.h" | 23 | #include "KDbDriver.h" | ||
24 | #include "KDbExpression.h" | 24 | #include "KDbExpression.h" | ||
25 | #include "KDbQueryColumnInfo.h" | ||||
25 | #include "KDbQuerySchema.h" | 26 | #include "KDbQuerySchema.h" | ||
26 | 27 | | |||
27 | #include <QBitArray> | 28 | #include <QBitArray> | ||
28 | #include <QWeakPointer> | 29 | #include <QWeakPointer> | ||
29 | 30 | | |||
30 | class KDbConnection; | 31 | class KDbConnection; | ||
31 | 32 | | |||
32 | //! @internal | 33 | class Q_DECL_HIDDEN KDbQueryColumnInfo::Private | ||
34 | { | ||||
35 | public: | ||||
36 | Private(KDbField *f, const QString& a, bool v, KDbQueryColumnInfo *foreign) | ||||
37 | : field(f) | ||||
38 | , alias(a) | ||||
39 | , visible(v) | ||||
40 | , indexForVisibleLookupValue(-1) | ||||
41 | , foreignColumn(foreign) | ||||
42 | { | ||||
43 | } | ||||
44 | | ||||
45 | KDbConnection *connection = nullptr; //!< Used to relate KDbQueryColumnInfo with query. @since 3.2 | ||||
46 | const KDbQuerySchema *querySchema = nullptr; //!< Used to relate KDbQueryColumnInfo with query. @since 3.2 | ||||
47 | KDbField *field; | ||||
48 | QString alias; | ||||
49 | | ||||
50 | //! @c true if this column is visible to the user (and its data is fetched by the engine) | ||||
51 | bool visible; | ||||
52 | | ||||
53 | /*! Index of column with visible lookup value within the 'fields expanded' vector. | ||||
54 | @see KDbQueryColumnInfo::indexForVisibleLookupValue() */ | ||||
55 | int indexForVisibleLookupValue; | ||||
56 | | ||||
57 | //! Non-nullptr if this column is a visible column for @a foreignColumn | ||||
58 | KDbQueryColumnInfo *foreignColumn; | ||||
59 | }; | ||||
60 | | ||||
33 | class KDbQuerySchemaPrivate | 61 | class KDbQuerySchemaPrivate | ||
34 | { | 62 | { | ||
35 | Q_DECLARE_TR_FUNCTIONS(KDbQuerySchema) | 63 | Q_DECLARE_TR_FUNCTIONS(KDbQuerySchema) | ||
36 | public: | 64 | public: | ||
37 | explicit KDbQuerySchemaPrivate(KDbQuerySchema* q, KDbQuerySchemaPrivate* copy = nullptr); | 65 | explicit KDbQuerySchemaPrivate(KDbQuerySchema* q, KDbQuerySchemaPrivate* copy = nullptr); | ||
38 | 66 | | |||
39 | ~KDbQuerySchemaPrivate(); | 67 | ~KDbQuerySchemaPrivate(); | ||
40 | 68 | | |||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |