Changeset View
Changeset View
Standalone View
Standalone View
src/core/udsentry.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | |||||
303 | UDS_EXTRA = 100 | UDS_STRING, | 303 | UDS_EXTRA = 100 | UDS_STRING, | ||
304 | /// Extra data (used only if you specified Columns/ColumnsTypes) | 304 | /// Extra data (used only if you specified Columns/ColumnsTypes) | ||
305 | /// NB: you cannot repeat this entry; use UDS_EXTRA + i | 305 | /// NB: you cannot repeat this entry; use UDS_EXTRA + i | ||
306 | /// until UDS_EXTRA_END. | 306 | /// until UDS_EXTRA_END. | ||
307 | UDS_EXTRA_END = 140 | UDS_STRING | 307 | UDS_EXTRA_END = 140 | UDS_STRING | ||
308 | }; | 308 | }; | ||
309 | 309 | | |||
310 | private: | 310 | private: | ||
311 | friend class UDSEntryPrivate; | | |||
312 | friend void ::debugUDSEntry(QDebug stream, const KIO::UDSEntry &entry); | | |||
313 | QSharedDataPointer<UDSEntryPrivate> d; | 311 | QSharedDataPointer<UDSEntryPrivate> d; | ||
312 | | ||||
313 | public: | ||||
314 | /** | ||||
315 | * Replace or insert field with string value | ||||
316 | * @param field numeric field id | ||||
317 | * @param value to set | ||||
318 | * @since 5.47 | ||||
319 | */ | ||||
dfaure: heh, nice syntax ;-) | |||||
This syntax must be kept in the case of the QDebug << operator, otherwise clang++ doesn't compile. jtamate: This syntax must be kept in the case of the QDebug << operator, otherwise clang++ doesn't… | |||||
320 | void replace(uint field, const QString &value); | ||||
dfaure: @since 5.47 | |||||
321 | | ||||
322 | /** | ||||
323 | * Replace or insert field with numeric value | ||||
324 | * @param field numeric field id | ||||
325 | * @param l value to set | ||||
326 | * @since 5.47 | ||||
327 | */ | ||||
@since 5.47 Should these be called just replace() like QMultiMap::replace also means "replace or insert" ? dfaure: @since 5.47
Should these be called just replace() like QMultiMap::replace also means "replace… | |||||
328 | void replace(uint field, long long l); | ||||
329 | | ||||
330 | /** | ||||
331 | * Serialize into QDataStream | ||||
332 | * @param s the QDataStream to sereialize into | ||||
333 | * @since 5.47 | ||||
I see you're using this internally, is it needed in the public API? I'd just make it internal. dfaure: I see you're using this internally, is it needed in the public API? I'd just make it internal. | |||||
334 | */ | ||||
335 | void save (QDataStream &s) const; | ||||
336 | | ||||
337 | /** | ||||
338 | * De-serialize from QDataStream | ||||
339 | * @param s the QDataStrem to de-serialize from | ||||
340 | * @since 5.47 | ||||
341 | */ | ||||
342 | void load (QDataStream &s); | ||||
343 | | ||||
344 | /** | ||||
345 | * Write debug info into stream | ||||
346 | * @since 5.47 | ||||
347 | */ | ||||
348 | void debugUDSEntry(QDebug &stream) const; | ||||
314 | }; | 349 | }; | ||
315 | 350 | | |||
316 | } | 351 | } | ||
317 | 352 | | |||
318 | Q_DECLARE_TYPEINFO(KIO::UDSEntry, Q_MOVABLE_TYPE); | 353 | Q_DECLARE_TYPEINFO(KIO::UDSEntry, Q_MOVABLE_TYPE); | ||
319 | 354 | | |||
320 | namespace KIO | 355 | namespace KIO | ||
321 | { | 356 | { | ||
Show All 32 Lines |
heh, nice syntax ;-)