Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/thumbcreator.h
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | |||||
99 | { | 99 | { | ||
100 | public: | 100 | public: | ||
101 | /** | 101 | /** | ||
102 | * Flags to provide hints to the user of this plugin. | 102 | * Flags to provide hints to the user of this plugin. | ||
103 | * @see flags() | 103 | * @see flags() | ||
104 | */ | 104 | */ | ||
105 | enum Flags { | 105 | enum Flags { | ||
106 | None = 0, /**< No hints. */ | 106 | None = 0, /**< No hints. */ | ||
107 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(5, 32) | ||||
107 | DrawFrame = 1, /**< \deprecated since 5.32. Used to paint a frame around the preview, but applications take care of that nowadays. */ | 108 | DrawFrame = 1, /**< \deprecated since 5.32. Used to paint a frame around the preview, but applications take care of that nowadays. */ | ||
109 | #endif | ||||
108 | BlendIcon = 2 /**< The mimetype icon should be blended over the preview. */ | 110 | BlendIcon = 2 /**< The mimetype icon should be blended over the preview. */ | ||
109 | }; | 111 | }; | ||
110 | 112 | | |||
111 | /** | 113 | /** | ||
112 | * Destructor. | 114 | * Destructor. | ||
113 | */ | 115 | */ | ||
114 | virtual ~ThumbCreator(); | 116 | virtual ~ThumbCreator(); | ||
115 | 117 | | |||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
163 | * Write the updated configuration. | 165 | * Write the updated configuration. | ||
164 | * | 166 | * | ||
165 | * @param configurationWidget An object returned by | 167 | * @param configurationWidget An object returned by | ||
166 | * createConfigurationWidget(). | 168 | * createConfigurationWidget(). | ||
167 | */ | 169 | */ | ||
168 | virtual void writeConfiguration(const QWidget *configurationWidget); | 170 | virtual void writeConfiguration(const QWidget *configurationWidget); | ||
169 | }; | 171 | }; | ||
170 | 172 | | |||
173 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
171 | /** | 174 | /** | ||
172 | * @class ThumbCreatorV2 thumbcreator.h <KIO/ThumbCreator> | 175 | * @class ThumbCreatorV2 thumbcreator.h <KIO/ThumbCreator> | ||
173 | * @since 4.7 | 176 | * @since 4.7 | ||
174 | * @deprecated since 5.0, use ThumbCreator | 177 | * @deprecated since 5.0, use ThumbCreator | ||
175 | */ | 178 | */ | ||
176 | class KIOWIDGETS_DEPRECATED_EXPORT ThumbCreatorV2 : public ThumbCreator | 179 | class KIOWIDGETS_DEPRECATED_VERSION(5, 0, "Use ThumbCreator") | ||
180 | KIOWIDGETS_EXPORT ThumbCreatorV2 : public ThumbCreator | ||||
177 | { | 181 | { | ||
178 | public: | 182 | public: | ||
179 | virtual ~ThumbCreatorV2(); | 183 | virtual ~ThumbCreatorV2(); | ||
180 | }; | 184 | }; | ||
185 | #endif | ||||
181 | 186 | | |||
182 | // KF6 TODO: rename this to something less generic | 187 | // KF6 TODO: rename this to something less generic | ||
183 | typedef ThumbCreator *(*newCreator)(); | 188 | typedef ThumbCreator *(*newCreator)(); | ||
184 | 189 | | |||
185 | #endif | 190 | #endif |