Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/queries/kexiqueryview.h
Show All 39 Lines | 39 | protected: | |||
---|---|---|---|---|---|
40 | virtual tristate afterSwitchFrom(Kexi::ViewMode mode); | 40 | virtual tristate afterSwitchFrom(Kexi::ViewMode mode); | ||
41 | 41 | | |||
42 | virtual KDbObject* storeNewData(const KDbObject& object, | 42 | virtual KDbObject* storeNewData(const KDbObject& object, | ||
43 | KexiView::StoreNewDataOptions options, | 43 | KexiView::StoreNewDataOptions options, | ||
44 | bool *cancel); | 44 | bool *cancel); | ||
45 | 45 | | |||
46 | virtual tristate storeData(bool dontAsk = false); | 46 | virtual tristate storeData(bool dontAsk = false); | ||
47 | 47 | | |||
48 | /*! Executes query \a query, filling the table view with query results. | 48 | /** | ||
49 | \return true on success, false on failure and cancelled when user has | 49 | * Assigns query @a query to this view | ||
50 | cancelled execution (for example when she pressed the Cancel button | 50 | * | ||
51 | of the "Enter Query Parameter" input dialog. */ | 51 | * - executes it | ||
52 | tristate executeQuery(KDbQuerySchema *query); | 52 | * - fills the table view with results | ||
53 | * | ||||
54 | * @return @c true on success, @c false on failure and @c cancelled when user has cancelled | ||||
55 | * execution, for example when she pressed the Cancel button in the "Enter Query Parameter" | ||||
56 | * input dialog. | ||||
57 | * | ||||
58 | * In successful execution of the query of if @a query is @c nullptr previous query (if any) | ||||
59 | * is unassigned and data is removed. | ||||
60 | */ | ||||
61 | tristate setQuery(KDbQuerySchema *query); | ||||
62 | | ||||
63 | /** | ||||
64 | * @brief Query that was assigned to this view | ||||
65 | * | ||||
66 | * @note It is not owned. | ||||
67 | */ | ||||
68 | KDbQuerySchema *query(); | ||||
69 | | ||||
70 | friend class KexiQueryPartTempData; | ||||
53 | 71 | | |||
54 | class Private; | 72 | class Private; | ||
55 | Private * const d; | 73 | Private * const d; | ||
56 | }; | 74 | }; | ||
57 | 75 | | |||
58 | #endif | 76 | #endif | ||
59 | 77 | |