Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/interfaces/kmmappinterface.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 38 | { | |||
---|---|---|---|---|---|
43 | class KMMAppInterface : public AppInterface | 43 | class KMMAppInterface : public AppInterface | ||
44 | { | 44 | { | ||
45 | Q_OBJECT | 45 | Q_OBJECT | ||
46 | 46 | | |||
47 | public: | 47 | public: | ||
48 | explicit KMMAppInterface(KMyMoneyApp* app, QObject* parent, const char* name = 0); | 48 | explicit KMMAppInterface(KMyMoneyApp* app, QObject* parent, const char* name = 0); | ||
49 | ~KMMAppInterface() override = default; | 49 | ~KMMAppInterface() override = default; | ||
50 | 50 | | |||
51 | /** | ||||
52 | * Makes sure that a MyMoneyFile is open and has been created successfully. | ||||
53 | * | ||||
54 | * @return Whether the file is open and initialised | ||||
55 | */ | ||||
56 | bool fileOpen() override; | ||||
57 | | ||||
58 | bool isDatabase() override; | ||||
51 | QUrl filenameURL() const override; | 59 | QUrl filenameURL() const override; | ||
52 | QUrl lastOpenedURL() override; | 60 | QUrl lastOpenedURL() override; | ||
53 | void writeLastUsedFile(const QString& fileName) override; | 61 | void writeLastUsedFile(const QString& fileName) override; | ||
54 | void slotFileOpenRecent(const QUrl &url) override; | 62 | void slotFileOpenRecent(const QUrl &url) override; | ||
55 | void addToRecentFiles(const QUrl& url) override; | 63 | void addToRecentFiles(const QUrl& url) override; | ||
56 | void updateCaption(bool skipActions = false) override; | 64 | void updateCaption(bool skipActions = false) override; | ||
57 | QTimer* autosaveTimer() override; | 65 | QTimer* autosaveTimer() override; | ||
58 | 66 | | |||
59 | private: | 67 | private: | ||
60 | KMyMoneyApp* m_app; | 68 | KMyMoneyApp* m_app; | ||
61 | }; | 69 | }; | ||
62 | 70 | | |||
63 | } | 71 | } | ||
64 | 72 | | |||
65 | #endif | 73 | #endif |