Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kequitypriceupdateconfdlg.h
- This file was added.
1 | /******************************************************************************* | ||||
---|---|---|---|---|---|
2 | * kequitypriceupdateconfdlg.cpp | ||||
3 | * ------------------ | ||||
4 | * begin : Sun May 21 2017 | ||||
5 | * copyright : (C) 2017 by Łukasz Wojnilowicz | ||||
6 | * email : lukasz.wojnilowicz@gmail.com | ||||
7 | ********************************************************************************/ | ||||
8 | | ||||
9 | /******************************************************************************* | ||||
10 | * * | ||||
11 | * This program is free software; you can redistribute it and/or modify * | ||||
12 | * it under the terms of the GNU General Public License as published by * | ||||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||||
14 | * (at your option) any later version. * | ||||
15 | * * | ||||
16 | ********************************************************************************/ | ||||
17 | | ||||
18 | #ifndef KEQUITYPRICEUPDATECONFDLG_H | ||||
19 | #define KEQUITYPRICEUPDATECONFDLG_H | ||||
20 | | ||||
21 | #include "ui_kequitypriceupdateconfdlg.h" | ||||
22 | | ||||
23 | enum updatingPricePolicyE : int {eUpdateAllPrices = 0, eUpdateMissingPrices, eUpdateDownloadedPrices, eUpdateSameSourcePrices, eAsk, eUpdatingPricePolicyEnd}; | ||||
24 | | ||||
25 | namespace Ui | ||||
26 | { | ||||
27 | class EquityPriceUpdateConfDlg; | ||||
28 | } | ||||
29 | | ||||
30 | class EquityPriceUpdateConfDlg : public QDialog | ||||
31 | { | ||||
32 | Q_OBJECT | ||||
33 | | ||||
34 | public: | ||||
35 | explicit EquityPriceUpdateConfDlg(const updatingPricePolicyE policy); | ||||
36 | ~EquityPriceUpdateConfDlg(); | ||||
37 | | ||||
38 | Ui::EquityPriceUpdateConfDlg* ui; | ||||
39 | | ||||
40 | updatingPricePolicyE policy(); | ||||
41 | private: | ||||
42 | void updatingPricePolicyChanged(const updatingPricePolicyE policy, bool toggled); | ||||
43 | | ||||
44 | updatingPricePolicyE m_updatingPricePolicy; | ||||
45 | private slots: | ||||
46 | void updateAllToggled(bool toggled); | ||||
47 | void updateMissingToggled(bool toggled); | ||||
48 | void updateDownloadedToggled(bool toggled); | ||||
49 | void updateSameSourceToggled(bool toggled); | ||||
50 | void askToggled(bool toggled); | ||||
51 | }; | ||||
52 | | ||||
53 | #endif // KEQUITYPRICEUPDATECONFDLG_H |