Changeset View
Changeset View
Standalone View
Standalone View
src/sycoca/ksycoca.h
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 55 | public: | |||
---|---|---|---|---|---|
105 | * | 105 | * | ||
106 | * Since 5.15, the filename includes language and a sha1 of the directories | 106 | * Since 5.15, the filename includes language and a sha1 of the directories | ||
107 | * in GenericDataLocation, i.e. the directories with the desktop files. | 107 | * in GenericDataLocation, i.e. the directories with the desktop files. | ||
108 | * This allows to have one database per setup, when using different install prefixes | 108 | * This allows to have one database per setup, when using different install prefixes | ||
109 | * or when switching languages. | 109 | * or when switching languages. | ||
110 | */ | 110 | */ | ||
111 | static QString absoluteFilePath(DatabaseType type = LocalDatabase); | 111 | static QString absoluteFilePath(DatabaseType type = LocalDatabase); | ||
112 | 112 | | |||
113 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 15) | ||||
113 | /** | 114 | /** | ||
114 | * @internal - returns language stored inside database | 115 | * @internal - returns language stored inside database | ||
115 | */ | 116 | */ | ||
116 | KSERVICE_DEPRECATED QString language(); // KF6: remove | 117 | KSERVICE_DEPRECATED_VERSION(5, 15, "No longer use.") | ||
118 | QString language(); // KF6: remove | ||||
117 | 119 | | |||
118 | /** | 120 | /** | ||
119 | * @internal - returns timestamp of database | 121 | * @internal - returns timestamp of database | ||
120 | * | 122 | * | ||
121 | * The database contains all changes made _before_ this time and | 123 | * The database contains all changes made _before_ this time and | ||
122 | * _might_ contain changes made after that. | 124 | * _might_ contain changes made after that. | ||
123 | */ | 125 | */ | ||
124 | KSERVICE_DEPRECATED quint32 timeStamp(); // KF6: remove | 126 | KSERVICE_DEPRECATED_VERSION(5, 15, "No longer use.") | ||
127 | quint32 timeStamp(); // KF6: remove | ||||
125 | 128 | | |||
126 | /** | 129 | /** | ||
127 | * @internal - returns update signature of database | 130 | * @internal - returns update signature of database | ||
128 | * | 131 | * | ||
129 | * Signature that keeps track of changes to | 132 | * Signature that keeps track of changes to | ||
130 | * $KDEDIR/share/services/update_ksycoca | 133 | * $KDEDIR/share/services/update_ksycoca | ||
131 | * | 134 | * | ||
132 | * Touching this file causes the database to be recreated | 135 | * Touching this file causes the database to be recreated | ||
133 | * from scratch. | 136 | * from scratch. | ||
134 | */ | 137 | */ | ||
135 | KSERVICE_DEPRECATED quint32 updateSignature(); // KF6: remove | 138 | KSERVICE_DEPRECATED_VERSION(5, 15, "No longer use.") | ||
139 | quint32 updateSignature(); // KF6: remove | ||||
140 | #endif | ||||
136 | 141 | | |||
137 | /** | 142 | /** | ||
138 | * @internal - returns all directories with information | 143 | * @internal - returns all directories with information | ||
139 | * stored inside sycoca. | 144 | * stored inside sycoca. | ||
140 | */ | 145 | */ | ||
141 | QStringList allResourceDirs(); // KF6: make it private | 146 | QStringList allResourceDirs(); // KF6: make it private | ||
142 | 147 | | |||
143 | /** | 148 | /** | ||
144 | * @internal - add a factory | 149 | * @internal - add a factory | ||
145 | */ | 150 | */ | ||
146 | void addFactory(KSycocaFactory *); // KF6: make it private | 151 | void addFactory(KSycocaFactory *); // KF6: make it private | ||
147 | 152 | | |||
148 | /** | 153 | /** | ||
149 | * @internal | 154 | * @internal | ||
150 | * @return true if building (i.e. if a KBuildSycoca); | 155 | * @return true if building (i.e. if a KBuildSycoca); | ||
151 | */ | 156 | */ | ||
152 | virtual bool isBuilding(); | 157 | virtual bool isBuilding(); | ||
153 | 158 | | |||
159 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 15) | ||||
154 | /** | 160 | /** | ||
155 | * @internal - disables launching of kbuildsycoca | 161 | * @internal - disables launching of kbuildsycoca | ||
156 | * @deprecated since 5.15, it only outputs a warning | 162 | * @deprecated since 5.15, it only outputs a warning | ||
157 | */ | 163 | */ | ||
158 | KSERVICE_DEPRECATED static void disableAutoRebuild(); // KF6: remove | 164 | KSERVICE_DEPRECATED_VERSION(5, 15, "Feature no longer exists.") | ||
165 | static void disableAutoRebuild(); // KF6: remove | ||||
166 | #endif | ||||
159 | 167 | | |||
168 | #if KSERVICE_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
160 | /** | 169 | /** | ||
161 | * When you receive a "databaseChanged" signal, you can query here if | 170 | * When you receive a "databaseChanged" signal, you can query here if | ||
162 | * a change has occurred in a specific resource type. | 171 | * a change has occurred in a specific resource type. | ||
163 | * @see KStandardDirs for the various resource types. | 172 | * @see KStandardDirs for the various resource types. | ||
164 | * | 173 | * | ||
165 | * This method is meant to be called from the GUI thread only. | 174 | * This method is meant to be called from the GUI thread only. | ||
166 | * @deprecated use the signal databaseChanged(QStringList) instead. | 175 | * @deprecated use the signal databaseChanged(QStringList) instead. | ||
167 | */ | 176 | */ | ||
168 | #ifndef KSERVICE_NO_DEPRECATED | 177 | KSERVICE_DEPRECATED_VERSION(5, 0, "Use signal KSycoca::databaseChanged(QStringList)") | ||
169 | static KSERVICE_DEPRECATED bool isChanged(const char *type); | 178 | static bool isChanged(const char *type); | ||
170 | #endif | 179 | #endif | ||
171 | 180 | | |||
172 | /** | 181 | /** | ||
173 | * A read error occurs. | 182 | * A read error occurs. | ||
174 | * @internal | 183 | * @internal | ||
175 | */ | 184 | */ | ||
176 | static void flagError(); | 185 | static void flagError(); | ||
177 | 186 | | |||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |