/* * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) version 3. * * 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with the program; if not, see * * * Authors: * Jeffrey Stedfast * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * */ #ifndef E_MAIL_TAG_EDITOR_H #define E_MAIL_TAG_EDITOR_H #include #include /* Standard GObject macros */ #define E_TYPE_MAIL_TAG_EDITOR \ (e_mail_tag_editor_get_type ()) #define E_MAIL_TAG_EDITOR(obj) \ (G_TYPE_CHECK_INSTANCE_CAST \ ((obj), E_TYPE_MAIL_TAG_EDITOR, EMailTagEditor)) #define E_MAIL_TAG_EDITOR_CLASS(cls) \ (G_TYPE_CHECK_CLASS_CAST \ ((cls), E_TYPE_MAIL_TAG_EDITOR, EMailTagEditorClass)) #define E_IS_MAIL_TAG_EDITOR(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE \ ((obj), E_TYPE_MAIL_TAG_EDITOR)) #define E_IS_MAIL_TAG_EDITOR_CLASS(cls) \ (G_TYPE_CHECK_CLASS_TYPE \ ((cls), E_TYPE_MAIL_TAG_EDITOR)) #define E_MAIL_TAG_EDITOR_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS \ ((obj), E_TYPE_MAIL_TAG_EDITOR, EMailTagEditorClass)) G_BEGIN_DECLS typedef struct _EMailTagEditor EMailTagEditor; typedef struct _EMailTagEditorClass EMailTagEditorClass; typedef struct _EMailTagEditorPrivate EMailTagEditorPrivate; struct _EMailTagEditor { GtkDialog parent; EMailTagEditorPrivate *priv; }; struct _EMailTagEditorClass { GtkDialogClass parent_class; /* virtual methods */ CamelTag * (*get_tag_list) (EMailTagEditor *editor); void (*set_tag_list) (EMailTagEditor *editor, CamelTag *tags); }; GType e_mail_tag_editor_get_type (void); GtkWidget * e_mail_tag_editor_new (void); gboolean e_mail_tag_editor_get_completed (EMailTagEditor *editor); void e_mail_tag_editor_set_completed (EMailTagEditor *editor, gboolean completed); CamelTag * e_mail_tag_editor_get_tag_list (EMailTagEditor *editor); void e_mail_tag_editor_set_tag_list (EMailTagEditor *editor, CamelTag *tag_list); void e_mail_tag_editor_add_message (EMailTagEditor *editor, const gchar *from, const gchar *subject); G_END_DECLS #endif /* E_MAIL_TAG_EDITOR_H */