Changeset View
Changeset View
Standalone View
Standalone View
src/writer.h
Show All 32 Lines | |||||
33 | class WriteData; | 33 | class WriteData; | ||
34 | class WriterCollection; | 34 | class WriterCollection; | ||
35 | 35 | | |||
36 | /** | 36 | /** | ||
37 | * \class Writer writer.h <KFileMetaData/Writer> | 37 | * \class Writer writer.h <KFileMetaData/Writer> | ||
38 | */ | 38 | */ | ||
39 | class KFILEMETADATA_EXPORT Writer | 39 | class KFILEMETADATA_EXPORT Writer | ||
40 | { | 40 | { | ||
41 | class WriterPrivate; | ||||
42 | | ||||
43 | enum WriterPluginOwnership { | ||||
44 | AutoDeletePlugin, | ||||
45 | DoNotDeletePlugin, | ||||
46 | }; | ||||
47 | | ||||
41 | public: | 48 | public: | ||
49 | Writer(Writer&&); | ||||
42 | virtual ~Writer(); | 50 | virtual ~Writer(); | ||
43 | 51 | | |||
44 | void write(const WriteData& data); | 52 | void write(const WriteData& data); | ||
45 | QStringList mimetypes() const; | 53 | QStringList mimetypes() const; | ||
46 | 54 | | |||
47 | private: | 55 | private: | ||
48 | Writer(); | 56 | Writer(); | ||
49 | Writer(const Writer&); | 57 | Writer(const Writer&); | ||
50 | 58 | | |||
51 | void operator =(const Writer&); | 59 | void operator =(const Writer&); | ||
52 | 60 | | |||
53 | class WriterPrivate; | 61 | void setAutoDeletePlugin(WriterPluginOwnership autoDelete); | ||
54 | WriterPrivate *d_ptr; | | |||
55 | Q_DECLARE_PRIVATE(Writer) | | |||
56 | 62 | | |||
63 | WriterPrivate *d; | ||||
apol: Why's this change? | |||||
This is only for cleanup and consistency with the corresponding extractor class. astippich: This is only for cleanup and consistency with the corresponding extractor class. | |||||
57 | friend class WriterCollection; | 64 | friend class WriterCollection; | ||
58 | }; | 65 | }; | ||
59 | } | 66 | } | ||
60 | 67 | | |||
61 | #endif // KFILEMETADTA_WRITER_H | 68 | #endif // KFILEMETADTA_WRITER_H |
Why's this change?