/* gcal-source-manager.h * * Copyright (C) 2015 Georges Basile Stavracas Neto * * 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 . */ #ifndef GCAL_SOURCE_DIALOG_H #define GCAL_SOURCE_DIALOG_H #include #include "gcal-manager.h" #include G_BEGIN_DECLS #define GCAL_TYPE_SOURCE_DIALOG (gcal_source_dialog_get_type()) G_DECLARE_FINAL_TYPE (GcalSourceDialog, gcal_source_dialog, GCAL, SOURCE_DIALOG, GtkDialog) struct _GcalSourceDialogClass { GtkDialogClass parent; }; typedef enum { GCAL_SOURCE_DIALOG_MODE_EDIT, GCAL_SOURCE_DIALOG_MODE_CREATE } GcalSourceDialogMode; GcalSourceDialog* 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); G_END_DECLS #endif /* GCAL_SOURCE_DIALOG_H */