root/trunk/src/tmut-account-editor.h

Revision 90 (checked in by pvanhoof, 4 months ago)
        • The From of transport-accounts
Line 
1 #ifndef TMUT_ACCOUNT_EDITOR_H
2 #define TMUT_ACCOUNT_EDITOR_H
3
4 /* TMut
5  * Copyright (C) 2006-2007 Philip Van Hoof <pvanhoof@gnome.org>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with self library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22
23 #include <glib.h>
24 #include <gtk/gtk.h>
25 #include <glib-object.h>
26 #include <tny-shared.h>
27
28 #include <tny-account.h>
29
30 G_BEGIN_DECLS
31
32 #define TMUT_TYPE_ACCOUNT_EDITOR             (tmut_account_editor_get_type ())
33 #define TMUT_ACCOUNT_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TMUT_TYPE_ACCOUNT_EDITOR, TMutAccountEditor))
34 #define TMUT_ACCOUNT_EDITOR_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), TMUT_TYPE_ACCOUNT_EDITOR, TMutAccountEditorClass))
35 #define TMUT_IS_ACCOUNT_EDITOR(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TMUT_TYPE_ACCOUNT_EDITOR))
36 #define TMUT_IS_ACCOUNT_EDITOR_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TMUT_TYPE_ACCOUNT_EDITOR))
37 #define TMUT_ACCOUNT_EDITOR_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), TMUT_TYPE_ACCOUNT_EDITOR, TMutAccountEditorClass))
38
39 typedef struct _TMutAccountEditor TMutAccountEditor;
40 typedef struct _TMutAccountEditorClass TMutAccountEditorClass;
41
42 struct _TMutAccountEditor
43 {
44         GtkVBox parent;
45 };
46
47 struct _TMutAccountEditorClass
48 {
49         GtkVBoxClass parent_class;
50
51         /* Signals */
52         void (*ok_clicked) (TMutAccountEditor *self);
53 };
54
55 GType tmut_account_editor_get_type (void);
56 TMutAccountEditor* tmut_account_editor_new (TnyAccount *account);
57
58
59 gboolean tmut_account_editor_get_enabled (TMutAccountEditor *self);
60 const gchar* tmut_account_editor_get_name (TMutAccountEditor *self);
61 const gchar* tmut_account_editor_get_hostname (TMutAccountEditor *self);
62 const gchar* tmut_account_editor_get_proto (TMutAccountEditor *self);
63 const gchar* tmut_account_editor_get_account_type (TMutAccountEditor *self);
64 const gchar* tmut_account_editor_get_user (TMutAccountEditor *self);
65 const gchar* tmut_account_editor_get_from (TMutAccountEditor *self);
66 gchar** tmut_account_editor_get_options (TMutAccountEditor *self);
67 TnyAccount *tmut_account_editor_get_account (TMutAccountEditor *self);
68
69
70 G_END_DECLS
71
72 #endif
Note: See TracBrowser for help on using the browser.