Changeset View
Changeset View
Standalone View
Standalone View
src/KDbTransactionData.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 37 | public: | |||
---|---|---|---|---|---|
52 | bool isActive() const; | 52 | bool isActive() const; | ||
53 | 53 | | |||
54 | //! Sets "active" flag of this data | 54 | //! Sets "active" flag of this data | ||
55 | void setActive(bool set); | 55 | void setActive(bool set); | ||
56 | 56 | | |||
57 | //! @return connection for this data | 57 | //! @return connection for this data | ||
58 | KDbConnection *connection(); | 58 | KDbConnection *connection(); | ||
59 | 59 | | |||
60 | //! @overload | ||||
61 | //! @since 3.1 | ||||
62 | const KDbConnection *connection() const; | ||||
63 | | ||||
60 | #ifdef KDB_TRANSACTIONS_DEBUG | 64 | #ifdef KDB_TRANSACTIONS_DEBUG | ||
61 | //! Helper for debugging, returns value of global transaction data reference counter | 65 | //! Helper for debugging, returns value of global transaction data reference counter | ||
62 | static int globalCount(); | 66 | static int globalCount(); | ||
63 | #endif | 67 | #endif | ||
64 | 68 | | |||
65 | private: | 69 | private: | ||
66 | Q_DISABLE_COPY(KDbTransactionData) | 70 | Q_DISABLE_COPY(KDbTransactionData) | ||
67 | class Private; | 71 | class Private; | ||
68 | Private * const d; | 72 | Private * const d; | ||
69 | }; | 73 | }; | ||
70 | 74 | | |||
71 | #endif | 75 | #endif |