Changeset View
Changeset View
Standalone View
Standalone View
core/BaseData.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 46 | public: | |||
---|---|---|---|---|---|
68 | * Sets the MenuItem which the Singleton will return. | 68 | * Sets the MenuItem which the Singleton will return. | ||
69 | * For internal use only. | 69 | * For internal use only. | ||
70 | * | 70 | * | ||
71 | * @param item A pointer to the MenuItem object | 71 | * @param item A pointer to the MenuItem object | ||
72 | */ | 72 | */ | ||
73 | void setMenuItem( MenuItem * item ); | 73 | void setMenuItem( MenuItem * item ); | ||
74 | 74 | | |||
75 | /** | 75 | /** | ||
76 | * Provides the shared MenuItem that corresponds to a KCM which should be used as startup page. | ||||
77 | * | ||||
78 | * @returns the shared MenuItem. It may be nullptr. | ||||
79 | */ | ||||
80 | MenuItem * homeItem(); | ||||
81 | | ||||
82 | /** | ||||
83 | * Sets the homescreen MenuItem which the Singleton will return. | ||||
84 | * For internal use only. | ||||
85 | * | ||||
86 | * @param item A pointer to the MenuItem object | ||||
87 | */ | ||||
88 | void setHomeItem( MenuItem * item ); | ||||
89 | | ||||
90 | /** | ||||
76 | * Returns the configuration group by the name provided in the current applications configuration file. | 91 | * Returns the configuration group by the name provided in the current applications configuration file. | ||
77 | * | 92 | * | ||
78 | * @param pluginName the name of the group that is required. | 93 | * @param pluginName the name of the group that is required. | ||
79 | * @returns The configuration group that is required. | 94 | * @returns The configuration group that is required. | ||
80 | */ | 95 | */ | ||
81 | KConfigGroup configGroup( const QString& pluginName ); | 96 | KConfigGroup configGroup( const QString& pluginName ); | ||
82 | 97 | | |||
83 | private: | 98 | private: | ||
84 | MenuItem * rootMenu; | 99 | MenuItem * rootMenu; | ||
100 | MenuItem * m_homeItem; | ||||
85 | }; | 101 | }; | ||
86 | 102 | | |||
87 | #endif | 103 | #endif | ||
88 | 104 | |