~benoitg/akonadigoogle/master

« back to all changes in this revision

Viewing changes to calendar/settingsdialog.h

  • Committer: Dan Vrátil
  • Date: 2012-04-29 19:24:42 UTC
  • Revision ID: git-v1:efb32159c283168cc2ab1a39e6fa3c8a30fbc941
Move the Akonadi Resources to kdepim-runtime

The resources have been moved to kdepim-runtime, this repo now only contains
the LibKGoogle library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    Akonadi Google - Calendar Resource
3
 
    Copyright (C) 2011  Dan Vratil <dan@progdan.cz>
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 <http://www.gnu.org/licenses/>.
17
 
*/
18
 
 
19
 
 
20
 
#ifndef SETTINGSDIALOG_H
21
 
#define SETTINGSDIALOG_H
22
 
 
23
 
#include <KDE/KDialog>
24
 
#include <KDE/KJob>
25
 
#include <KDE/Akonadi/ResourceBase>
26
 
 
27
 
#include <libkgoogle/common.h>
28
 
 
29
 
namespace Ui
30
 
{
31
 
class SettingsDialog;
32
 
}
33
 
 
34
 
namespace KGoogle
35
 
{
36
 
class Reply;
37
 
class AccessManager;
38
 
 
39
 
namespace Objects
40
 
{
41
 
class Calendar;
42
 
class TaskList;
43
 
}
44
 
}
45
 
 
46
 
class QListWidgetItem;
47
 
 
48
 
using namespace KGoogle;
49
 
 
50
 
class SettingsDialog : public KDialog
51
 
{
52
 
    Q_OBJECT
53
 
  public:
54
 
    SettingsDialog(WId windowId, QWidget *parent = 0);
55
 
    ~SettingsDialog();
56
 
 
57
 
  private Q_SLOTS:
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();
70
 
 
71
 
    void gam_objectsListReceived(KGoogle::Reply *reply);
72
 
    void gam_objectCreated(KGoogle::Reply *reply);
73
 
    void gam_objectModified(KGoogle::Reply *reply);
74
 
 
75
 
    void addCalendar(KGoogle::Objects::Calendar *calendar);
76
 
    void editCalendar(KGoogle::Objects::Calendar *calendar);
77
 
 
78
 
    void addTaskList(KGoogle::Objects::TaskList *taskList);
79
 
    void editTaskList(KGoogle::Objects::TaskList *taskList);
80
 
 
81
 
    void saveSettings();
82
 
 
83
 
    void error (KGoogle::Error code, const QString &msg);
84
 
 
85
 
  private:
86
 
    Ui::SettingsDialog *m_ui;
87
 
    WId m_windowId;
88
 
    AccessManager *m_gam;
89
 
 
90
 
 
91
 
};
92
 
 
93
 
#endif // SETTINGSDIALOG_H