2
Akonadi Google - Calendar Resource
3
Copyright (C) 2011 Dan Vratil <dan@progdan.cz>
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.
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.
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/>.
20
#ifndef SETTINGSDIALOG_H
21
#define SETTINGSDIALOG_H
23
#include <KDE/KDialog>
25
#include <KDE/Akonadi/ResourceBase>
27
#include <libkgoogle/common.h>
46
class QListWidgetItem;
48
using namespace KGoogle;
50
class SettingsDialog : public KDialog
54
SettingsDialog(WId windowId, QWidget *parent = 0);
58
void reloadAccounts();
59
void addAccountClicked();
60
void removeAccountClicked();
61
void accountChanged();
62
void addCalendarClicked();
63
void editCalendarClicked();
64
void removeCalendarClicked();
65
void reloadCalendarsClicked();
66
void addTaskListClicked();
67
void editTaskListClicked();
68
void removeTaskListClicked();
69
void reloadTaskListsClicked();
71
void gam_objectsListReceived(KGoogle::Reply *reply);
72
void gam_objectCreated(KGoogle::Reply *reply);
73
void gam_objectModified(KGoogle::Reply *reply);
75
void addCalendar(KGoogle::Objects::Calendar *calendar);
76
void editCalendar(KGoogle::Objects::Calendar *calendar);
78
void addTaskList(KGoogle::Objects::TaskList *taskList);
79
void editTaskList(KGoogle::Objects::TaskList *taskList);
83
void error (KGoogle::Error code, const QString &msg);
86
Ui::SettingsDialog *m_ui;
93
#endif // SETTINGSDIALOG_H