~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to servers/exchange/storage/e-folder.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
 
/* e-folder.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 version 2 of the GNU Lesser General Public
8
 
 * License as published by the Free Software Foundation.
9
 
 *
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.
14
 
 *
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.
19
 
 *
20
 
 * Author: Ettore Perazzoli
21
 
 */
22
 
 
23
 
#ifndef _E_FOLDER_H_
24
 
#define _E_FOLDER_H_
25
 
 
26
 
#include <glib-object.h>
27
 
#include <gtk/gtk.h>
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
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))
37
 
 
38
 
typedef struct EFolder        EFolder;
39
 
typedef struct EFolderPrivate EFolderPrivate;
40
 
typedef struct EFolderClass   EFolderClass;
41
 
 
42
 
struct EFolder {
43
 
        GObject parent;
44
 
 
45
 
        EFolderPrivate *priv;
46
 
};
47
 
 
48
 
struct EFolderClass {
49
 
        GObjectClass parent_class;
50
 
 
51
 
        /* Methods.  */
52
 
        gboolean (* accept_drop) (EFolder *folder,
53
 
                                  GdkDragContext *context,
54
 
                                  const gchar *target_type,
55
 
                                  GtkSelectionData *selection_data);
56
 
 
57
 
        /* Signals.  */
58
 
        void (* changed) (EFolder *folder);
59
 
        void (* name_changed) (EFolder *folder);
60
 
};
61
 
 
62
 
GType    e_folder_get_type   (void);
63
 
void     e_folder_construct  (EFolder    *folder,
64
 
                              const gchar *name,
65
 
                              const gchar *type,
66
 
                              const gchar *description);
67
 
EFolder *e_folder_new        (const gchar *name,
68
 
                              const gchar *type,
69
 
                              const gchar *description);
70
 
 
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);
82
 
 
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);
94
 
 
95
 
gboolean e_folder_accept_drop        (EFolder *folder, GdkDragContext *context,
96
 
                                      const gchar *target_type,
97
 
                                      GtkSelectionData *selection_data);
98
 
G_END_DECLS
99
 
 
100
 
#endif /* _E_FOLDER_H_ */