Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/views/onlinejoboutbox/konlinejoboutboxview.h
- This file was moved from kmymoney/views/konlinejoboutbox.h.
Show All 10 Lines | |||||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | 13 | * GNU General Public License for more details. | ||
14 | * | 14 | * | ||
15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef KONLINEJOBOUTBOX_H | 19 | #ifndef KONLINEJOBOUTBOXVIEW_H | ||
20 | #define KONLINEJOBOUTBOX_H | 20 | #define KONLINEJOBOUTBOXVIEW_H | ||
21 | 21 | | |||
22 | #include "kmymoneyviewbase.h" | 22 | #include "kmymoneyviewbase.h" | ||
23 | 23 | | |||
24 | #include "onlinejob.h" | 24 | #include "onlinejob.h" | ||
25 | 25 | | |||
26 | class QModelIndex; | 26 | class QModelIndex; | ||
27 | 27 | | |||
28 | namespace KMyMoneyPlugin { class OnlinePlugin; } | 28 | namespace KMyMoneyPlugin { class OnlinePlugin; } | ||
29 | 29 | | |||
30 | class KOnlineJobOutboxPrivate; | 30 | class KOnlineJobOutboxViewPrivate; | ||
31 | class KOnlineJobOutbox : public KMyMoneyViewBase | 31 | class KOnlineJobOutboxView : public KMyMoneyViewBase | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | explicit KOnlineJobOutbox(QWidget *parent = 0); | 36 | explicit KOnlineJobOutboxView(QWidget *parent = 0); | ||
37 | ~KOnlineJobOutbox() override; | 37 | ~KOnlineJobOutboxView() override; | ||
38 | 38 | | |||
39 | void executeCustomAction(eView::Action action) override; | 39 | void executeCustomAction(eView::Action action) override; | ||
40 | 40 | | |||
41 | void updateActions(const MyMoneyObject& obj); | 41 | void updateActions(const MyMoneyObject& obj); | ||
42 | 42 | | |||
43 | QStringList selectedOnlineJobs() const; | 43 | QStringList selectedOnlineJobs() const; | ||
44 | 44 | | |||
45 | void setOnlinePlugins(QMap<QString, KMyMoneyPlugin::OnlinePlugin*>& plugins); | | |||
46 | | ||||
47 | public Q_SLOTS: | 45 | public Q_SLOTS: | ||
48 | void slotSelectByObject(const MyMoneyObject& obj, eView::Intent intent) override; | 46 | void slotSelectByObject(const MyMoneyObject& obj, eView::Intent intent) override; | ||
47 | void slotSelectByVariant(const QVariantList& variant, eView::Intent intent) override; | ||||
49 | 48 | | |||
50 | Q_SIGNALS: | 49 | Q_SIGNALS: | ||
51 | void sendJobs(QList<onlineJob>); | 50 | void sendJobs(QList<onlineJob>); | ||
52 | void editJob(QString); | 51 | void editJob(QString); | ||
53 | void newCreditTransfer(); | 52 | void newCreditTransfer(); | ||
54 | 53 | | |||
55 | protected: | 54 | protected: | ||
56 | void showEvent(QShowEvent* event) override; | 55 | void showEvent(QShowEvent* event) override; | ||
57 | void contextMenuEvent(QContextMenuEvent*) override; | 56 | void contextMenuEvent(QContextMenuEvent*) override; | ||
58 | 57 | | |||
59 | private: | 58 | private: | ||
60 | Q_DECLARE_PRIVATE(KOnlineJobOutbox) | 59 | Q_DECLARE_PRIVATE(KOnlineJobOutboxView) | ||
christiand: d-ptr has no advantages in a plugin. ABI compatibility in this sense is not needed. | |||||
wojnilowicz: It's not about ABI. It's about krazy2 and build time. | |||||
krazy2 does not count here. It might show false positives and has means to control them. Its purpose is to check for framework stuff, which might not be needed for all of KMyMoney. tbaumgart: krazy2 does not count here. It might show false positives and has means to control them. Its… | |||||
If krazy2 does not count, then maybe let's get rid of it. If it's a rule that it shows false positives then it's not helpful for us. wojnilowicz: If krazy2 does not count, then maybe let's get rid of it. If it's a rule that it shows false… | |||||
61 | 60 | | |||
62 | private Q_SLOTS: | 61 | private Q_SLOTS: | ||
63 | void updateNewCreditTransferButton(); | 62 | void updateNewCreditTransferButton(); | ||
64 | void updateButtonState() const; | 63 | void updateButtonState() const; | ||
65 | 64 | | |||
66 | void slotRemoveJob(); | 65 | void slotRemoveJob(); | ||
67 | 66 | | |||
68 | /** @brief If any job is selected, send it. Send all valid jobs otherwise. */ | 67 | /** @brief If any job is selected, send it. Send all valid jobs otherwise. */ | ||
Show All 12 Lines | |||||
81 | void slotOnlineJobSend(onlineJob job); | 80 | void slotOnlineJobSend(onlineJob job); | ||
82 | void slotOnlineJobSend(QList<onlineJob> jobs); | 81 | void slotOnlineJobSend(QList<onlineJob> jobs); | ||
83 | 82 | | |||
84 | void slotOnlineJobLog(); | 83 | void slotOnlineJobLog(); | ||
85 | void slotOnlineJobLog(const QStringList& onlineJobIds); | 84 | void slotOnlineJobLog(const QStringList& onlineJobIds); | ||
86 | void slotNewCreditTransfer(); | 85 | void slotNewCreditTransfer(); | ||
87 | }; | 86 | }; | ||
88 | 87 | | |||
89 | #endif // KONLINEJOBOUTBOX_H | 88 | #endif // KONLINEJOBOUTBOXVIEW_H |
d-ptr has no advantages in a plugin. ABI compatibility in this sense is not needed.