Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/kmymoneyplugin.h
Show All 35 Lines | |||||
36 | // ---------------------------------------------------------------------------- | 36 | // ---------------------------------------------------------------------------- | ||
37 | // Project Includes | 37 | // Project Includes | ||
38 | 38 | | |||
39 | #include "mymoneykeyvaluecontainer.h" | 39 | #include "mymoneykeyvaluecontainer.h" | ||
40 | 40 | | |||
41 | class MyMoneyStorageMgr; | 41 | class MyMoneyStorageMgr; | ||
42 | class MyMoneyAccount; | 42 | class MyMoneyAccount; | ||
43 | class KMyMoneySettings; | 43 | class KMyMoneySettings; | ||
44 | class IMyMoneyOperationsFormat; | ||||
44 | 45 | | |||
45 | namespace KMyMoneyPlugin { class AppInterface; } | 46 | namespace KMyMoneyPlugin { class AppInterface; } | ||
46 | namespace KMyMoneyPlugin { class ImportInterface; } | 47 | namespace KMyMoneyPlugin { class ImportInterface; } | ||
47 | namespace KMyMoneyPlugin { class StatementInterface; } | 48 | namespace KMyMoneyPlugin { class StatementInterface; } | ||
48 | namespace KMyMoneyPlugin { class ViewInterface; } | 49 | namespace KMyMoneyPlugin { class ViewInterface; } | ||
49 | 50 | | |||
50 | /** | 51 | /** | ||
51 | * @defgroup KMyMoneyPlugin | 52 | * @defgroup KMyMoneyPlugin | ||
▲ Show 20 Lines • Show All 247 Lines • ▼ Show 20 Line(s) | 288 | public: | |||
299 | /** | 300 | /** | ||
300 | * @brief Saves storage into file | 301 | * @brief Saves storage into file | ||
301 | * @param url URL of the file | 302 | * @param url URL of the file | ||
302 | * @return true if successfully saved | 303 | * @return true if successfully saved | ||
303 | */ | 304 | */ | ||
304 | virtual bool save(const QUrl &url) = 0; | 305 | virtual bool save(const QUrl &url) = 0; | ||
305 | 306 | | |||
306 | /** | 307 | /** | ||
308 | * @brief Returns storage reader | ||||
309 | * @return storage reader | ||||
310 | */ | ||||
311 | virtual IMyMoneyOperationsFormat* reader(){ return nullptr; } | ||||
312 | | ||||
313 | /** | ||||
307 | * @brief Storage identifier | 314 | * @brief Storage identifier | ||
308 | * @return Storage identifier | 315 | * @return Storage identifier | ||
309 | */ | 316 | */ | ||
310 | virtual QString formatName() const = 0; | 317 | virtual QString formatName() const = 0; | ||
318 | | ||||
319 | virtual QString fileExtension() const = 0; | ||||
311 | }; | 320 | }; | ||
312 | 321 | | |||
313 | 322 | | |||
314 | } // end of namespace | 323 | } // end of namespace | ||
315 | 324 | | |||
316 | Q_DECLARE_INTERFACE(KMyMoneyPlugin::OnlinePlugin, "org.kmymoney.plugin.onlineplugin") | 325 | Q_DECLARE_INTERFACE(KMyMoneyPlugin::OnlinePlugin, "org.kmymoney.plugin.onlineplugin") | ||
317 | Q_DECLARE_INTERFACE(KMyMoneyPlugin::ImporterPlugin, "org.kmymoney.plugin.importerplugin") | 326 | Q_DECLARE_INTERFACE(KMyMoneyPlugin::ImporterPlugin, "org.kmymoney.plugin.importerplugin") | ||
318 | Q_DECLARE_INTERFACE(KMyMoneyPlugin::StoragePlugin, "org.kmymoney.plugin.storageplugin") | 327 | Q_DECLARE_INTERFACE(KMyMoneyPlugin::StoragePlugin, "org.kmymoney.plugin.storageplugin") | ||
319 | 328 | | |||
320 | 329 | | |||
321 | /** @} */ | 330 | /** @} */ | ||
322 | 331 | | |||
323 | #endif | 332 | #endif |