Changeset View
Changeset View
Standalone View
Standalone View
resources/google-groupware/googlesettingsdialog.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright (C) 2013 Daniel Vrátil <dvratil@redhat.com> | ||||
3 | 2020 Igor Poboiko <igor.poboiko@gmail.com> | ||||
4 | | ||||
5 | This program is free software: you can redistribute it and/or modify | ||||
6 | it under the terms of the GNU General Public License as published by | ||||
7 | the Free Software Foundation, either version 3 of the License, or | ||||
8 | (at your option) any later version. | ||||
9 | | ||||
10 | This program is distributed in the hope that it will be useful, | ||||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
13 | GNU General Public License for more details. | ||||
14 | | ||||
15 | You should have received a copy of the GNU General Public License | ||||
16 | along with this program. If not, see <https://www.gnu.org/licenses/>. | ||||
17 | */ | ||||
18 | | ||||
19 | #ifndef GOOGLESETTINGSDIALOG_H | ||||
20 | #define GOOGLESETTINGSDIALOG_H | ||||
21 | | ||||
22 | #include <QDialog> | ||||
23 | #include <KGAPI/Types> | ||||
24 | | ||||
25 | namespace Ui { | ||||
26 | class GoogleSettingsDialog; | ||||
27 | } | ||||
28 | namespace KGAPI2 { | ||||
29 | class Job; | ||||
30 | } | ||||
31 | class GoogleResource; | ||||
32 | class GoogleSettings; | ||||
33 | | ||||
34 | class GoogleSettingsDialog : public QDialog | ||||
35 | { | ||||
36 | Q_OBJECT | ||||
37 | public: | ||||
38 | explicit GoogleSettingsDialog(GoogleResource *resource, GoogleSettings *settings, WId wId); | ||||
39 | ~GoogleSettingsDialog(); | ||||
40 | protected: | ||||
41 | bool handleError(KGAPI2::Job *job); | ||||
42 | void accountChanged(); | ||||
43 | private: | ||||
44 | GoogleResource *m_resource; | ||||
45 | GoogleSettings *m_settings; | ||||
46 | Ui::GoogleSettingsDialog *m_ui = nullptr; | ||||
47 | KGAPI2::AccountPtr m_account; | ||||
48 | private Q_SLOTS: | ||||
49 | void slotConfigure(); | ||||
50 | void slotAuthJobFinished(KGAPI2::Job *job); | ||||
51 | void slotSaveSettings(); | ||||
52 | void slotReloadCalendars(); | ||||
53 | void slotReloadTaskLists(); | ||||
54 | }; | ||||
55 | | ||||
56 | #endif // GOOGLESETTINGSDIALOG_H |