Assamese translation updated
[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) 1999-2008 Novell, Inc. (www.novell.com)
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 #if !defined (__LIBEDATASERVERUI_H_INSIDE__) && !defined (LIBEDATASERVERUI_COMPILATION)
25 #error "Only <libedataserverui/libedataserverui.h> should be included directly."
26 #endif
27
28 #ifndef E_SOURCE_SELECTOR_DIALOG_H
29 #define E_SOURCE_SELECTOR_DIALOG_H
30
31 #include <gtk/gtk.h>
32 #include <libedataserverui/e-source-selector.h>
33
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))
52
53 G_BEGIN_DECLS
54
55 typedef struct _ESourceSelectorDialog ESourceSelectorDialog;
56 typedef struct _ESourceSelectorDialogClass ESourceSelectorDialogClass;
57 typedef struct _ESourceSelectorDialogPrivate ESourceSelectorDialogPrivate;
58
59 struct _ESourceSelectorDialog {
60         GtkDialog parent;
61         ESourceSelectorDialogPrivate *priv;
62 };
63
64 struct _ESourceSelectorDialogClass {
65         GtkDialogClass parent_class;
66 };
67
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);
72 ESourceRegistry *
73                 e_source_selector_dialog_get_registry
74                                                 (ESourceSelectorDialog *dialog);
75 const gchar *   e_source_selector_dialog_get_extension_name
76                                                 (ESourceSelectorDialog *dialog);
77 ESourceSelector *
78                 e_source_selector_dialog_get_selector
79                                                 (ESourceSelectorDialog *dialog);
80 ESource *       e_source_selector_dialog_peek_primary_selection
81                                                 (ESourceSelectorDialog *dialog);
82
83 G_END_DECLS
84
85 #endif /* E_SOURCE_SELECTOR_DIALOG_H */