Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / libedataserverui / e-source-selector-dialog.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* e-source-selector-dialog.h
3  *
4  * Copyright (C) 2004  Novell, Inc.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * Author: Rodrigo Moya <rodrigo@novell.com>
22  */
23
24 #ifndef _E_SOURCE_SELECTOR_DIALOG_H_
25 #define _E_SOURCE_SELECTOR_DIALOG_H_
26
27 #include <gtk/gtkdialog.h>
28 #include "libedataserver/e-source-list.h"
29
30 G_BEGIN_DECLS
31
32 #define E_TYPE_SOURCE_SELECTOR_DIALOG           (e_source_selector_dialog_get_type ())
33 #define E_SOURCE_SELECTOR_DIALOG(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_SOURCE_SELECTOR_DIALOG, ESourceSelectorDialog))
34 #define E_SOURCE_SELECTOR_DIALOG_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_SOURCE_SELECTOR_DIALOG, ESourceSelectorDialogClass))
35 #define E_IS_SOURCE_SELECTOR_DIALOG(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_SOURCE_SELECTOR_DIALOG))
36 #define E_IS_SOURCE_SELECTOR_DIALOG_CLASS(klass)        (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_SOURCE_SELECTOR_DIALOG))
37
38
39 typedef struct _ESourceSelectorDialog        ESourceSelectorDialog;
40 typedef struct _ESourceSelectorDialogPrivate ESourceSelectorDialogPrivate;
41 typedef struct _ESourceSelectorDialogClass   ESourceSelectorDialogClass;
42
43 struct _ESourceSelectorDialog {
44         GtkDialog parent;
45         ESourceSelectorDialogPrivate *priv;
46 };
47
48 struct _ESourceSelectorDialogClass {
49         GtkDialogClass parent_class;
50 };
51
52 GType      e_source_selector_dialog_get_type (void);
53
54 GtkWidget *e_source_selector_dialog_new (GtkWindow *parent, ESourceList *source_list);
55 ESource   *e_source_selector_dialog_peek_primary_selection (ESourceSelectorDialog *dialog);
56
57 G_END_DECLS
58
59 #endif