forked from GNOME/gnome-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gcal-source-dialog.h
68 lines (53 loc) · 2.32 KB
/
gcal-source-dialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* gcal-source-manager.h
*
* Copyright (C) 2015 Georges Basile Stavracas Neto <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GCAL_SOURCE_DIALOG_H
#define GCAL_SOURCE_DIALOG_H
#include <glib-object.h>
#include "gcal-application.h"
#include "gcal-manager.h"
#include <libecal/libecal.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define GCAL_RESPONSE_REMOVE_SOURCE 2
#define GCAL_TYPE_SOURCE_DIALOG (gcal_source_dialog_get_type())
G_DECLARE_FINAL_TYPE (GcalSourceDialog, gcal_source_dialog, GCAL, SOURCE_DIALOG, GtkDialog)
/**
* GcalSourceDialogMode:
* @GCAL_SOURCE_DIALOG_MODE_CREATE: creating a new calendar
* @GCAL_SOURCE_DIALOG_MODE_CREATE_WEB: creating a new web-based calendar
* @GCAL_SOURCE_DIALOG_MODE_EDIT: editing an existing calendar
* @GCAL_SOURCE_DIALOG_MODE_NORMAL: showing the list of calendars and online accounts
*
* The current action of the #GcalSourceDialog
*/
typedef enum
{
GCAL_SOURCE_DIALOG_MODE_CREATE,
GCAL_SOURCE_DIALOG_MODE_CREATE_WEB,
GCAL_SOURCE_DIALOG_MODE_EDIT,
GCAL_SOURCE_DIALOG_MODE_NORMAL
} GcalSourceDialogMode;
GtkWidget* gcal_source_dialog_new (void);
void gcal_source_dialog_set_manager (GcalSourceDialog *dialog,
GcalManager *manager);
void gcal_source_dialog_set_mode (GcalSourceDialog *dialog,
GcalSourceDialogMode mode);
void gcal_source_dialog_set_source (GcalSourceDialog *dialog,
ESource *source);
G_END_DECLS
#endif /* GCAL_SOURCE_DIALOG_H */