1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* e-source-selector-dialog.h
4 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
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.
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.
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.
21 * Author: Rodrigo Moya <rodrigo@novell.com>
24 #if !defined (__LIBEDATASERVERUI_H_INSIDE__) && !defined (LIBEDATASERVERUI_COMPILATION)
25 #error "Only <libedataserverui/libedataserverui.h> should be included directly."
28 #ifndef E_SOURCE_SELECTOR_DIALOG_H
29 #define E_SOURCE_SELECTOR_DIALOG_H
32 #include <libedataserverui/e-source-selector.h>
34 /* Standard GObject macros */
35 #define E_TYPE_SOURCE_SELECTOR_DIALOG \
36 (e_source_selector_dialog_get_type ())
37 #define E_SOURCE_SELECTOR_DIALOG(obj) \
38 (G_TYPE_CHECK_INSTANCE_CAST \
39 ((obj), E_TYPE_SOURCE_SELECTOR_DIALOG, ESourceSelectorDialog))
40 #define E_SOURCE_SELECTOR_DIALOG_CLASS(cls) \
41 (G_TYPE_CHECK_CLASS_CAST \
42 ((cls), E_TYPE_SOURCE_SELECTOR_DIALOG, ESourceSelectorDialogClass))
43 #define E_IS_SOURCE_SELECTOR_DIALOG(obj) \
44 (G_TYPE_CHECK_INSTANCE_TYPE \
45 ((obj), E_TYPE_SOURCE_SELECTOR_DIALOG))
46 #define E_IS_SOURCE_SELECTOR_DIALOG_CLASS(cls) \
47 (G_TYPE_CHECK_CLASS_TYPE \
48 ((cls), E_TYPE_SOURCE_SELECTOR_DIALOG))
49 #define E_SOURCE_SELECTOR_DIALOG_GET_CLASS(obj) \
50 (G_TYPE_INSTANCE_GET_CLASS \
51 ((obj), E_TYPE_SOURCE_SELECTOR_DIALOG, ESourceSelectorDialogClass))
55 typedef struct _ESourceSelectorDialog ESourceSelectorDialog;
56 typedef struct _ESourceSelectorDialogClass ESourceSelectorDialogClass;
57 typedef struct _ESourceSelectorDialogPrivate ESourceSelectorDialogPrivate;
59 struct _ESourceSelectorDialog {
61 ESourceSelectorDialogPrivate *priv;
64 struct _ESourceSelectorDialogClass {
65 GtkDialogClass parent_class;
68 GType e_source_selector_dialog_get_type (void);
69 GtkWidget * e_source_selector_dialog_new (GtkWindow *parent,
70 ESourceRegistry *registry,
71 const gchar *extension_name);
73 e_source_selector_dialog_get_registry
74 (ESourceSelectorDialog *dialog);
75 const gchar * e_source_selector_dialog_get_extension_name
76 (ESourceSelectorDialog *dialog);
78 e_source_selector_dialog_get_selector
79 (ESourceSelectorDialog *dialog);
80 ESource * e_source_selector_dialog_peek_primary_selection
81 (ESourceSelectorDialog *dialog);
85 #endif /* E_SOURCE_SELECTOR_DIALOG_H */