1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
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 version 2 of the GNU Lesser General Public
8
* License as published by the Free Software Foundation.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this program; if not, write to the
17
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
20
* Author: Ettore Perazzoli
26
#include <glib-object.h>
31
#define E_TYPE_FOLDER (e_folder_get_type ())
32
#define E_FOLDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_FOLDER, EFolder))
33
#define E_FOLDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_FOLDER, EFolderClass))
34
#define E_IS_FOLDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_FOLDER))
35
#define E_IS_FOLDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_FOLDER))
36
#define E_FOLDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), E_TYPE_FOLDER, EFolderClass))
38
typedef struct EFolder EFolder;
39
typedef struct EFolderPrivate EFolderPrivate;
40
typedef struct EFolderClass EFolderClass;
49
GObjectClass parent_class;
52
gboolean (* accept_drop) (EFolder *folder,
53
GdkDragContext *context,
54
const gchar *target_type,
55
GtkSelectionData *selection_data);
58
void (* changed) (EFolder *folder);
59
void (* name_changed) (EFolder *folder);
62
GType e_folder_get_type (void);
63
void e_folder_construct (EFolder *folder,
66
const gchar *description);
67
EFolder *e_folder_new (const gchar *name,
69
const gchar *description);
71
const gchar *e_folder_get_name (EFolder *folder);
72
const gchar *e_folder_get_type_string (EFolder *folder);
73
const gchar *e_folder_get_description (EFolder *folder);
74
const gchar *e_folder_get_physical_uri (EFolder *folder);
75
gint e_folder_get_unread_count (EFolder *folder);
76
gboolean e_folder_get_highlighted (EFolder *folder);
77
gboolean e_folder_get_is_stock (EFolder *folder);
78
gboolean e_folder_get_can_sync_offline (EFolder *folder);
79
gboolean e_folder_get_has_subfolders (EFolder *folder);
80
const gchar *e_folder_get_custom_icon_name (EFolder *folder);
81
gint e_folder_get_sorting_priority (EFolder *folder);
83
void e_folder_set_name (EFolder *folder, const gchar *name);
84
void e_folder_set_type_string (EFolder *folder, const gchar *type);
85
void e_folder_set_description (EFolder *folder, const gchar *description);
86
void e_folder_set_physical_uri (EFolder *folder, const gchar *physical_uri);
87
void e_folder_set_unread_count (EFolder *folder, gint unread_count);
88
void e_folder_set_child_highlight (EFolder *folder, gboolean highlighted);
89
void e_folder_set_is_stock (EFolder *folder, gboolean is_stock);
90
void e_folder_set_can_sync_offline (EFolder *folder, gboolean can_sync_offline);
91
void e_folder_set_has_subfolders (EFolder *folder, gboolean has_subfolders);
92
void e_folder_set_custom_icon (EFolder *folder, const gchar *icon_name);
93
void e_folder_set_sorting_priority (EFolder *folder, gint sorting_priority);
95
gboolean e_folder_accept_drop (EFolder *folder, GdkDragContext *context,
96
const gchar *target_type,
97
GtkSelectionData *selection_data);
100
#endif /* _E_FOLDER_H_ */