~ubuntu-branches/ubuntu/precise/evolution/precise

« back to all changes in this revision

Viewing changes to plugins/groupwise-features/share-folder.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-06-24 00:27:53 UTC
  • mfrom: (1.1.80 upstream)
  • Revision ID: james.westby@ubuntu.com-20110624002753-2vh1vjavlya7r103
Tags: 3.1.2-0ubuntu1
* New upstream release 3.1.2.
* debian/control: adjust Build-Depends to match new upstream requirements for
  the new release.
* debian/control: update evolution and evolution-dev Depends to require the
  right versions of e-d-s (>= 3.1, << 3.2), and drop libunique-3.0-dev.
* debian/control,
  debian/evolution.install: remove groupwise-features from the plugin list,
  it's now split out into a separate module.
* debian/patches/03_lpi.patch: refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *
3
 
 * This program is free software; you can redistribute it and/or
4
 
 * modify it under the terms of the GNU Lesser General Public
5
 
 * License as published by the Free Software Foundation; either
6
 
 * version 2 of the License, or (at your option) version 3.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
 
 * Lesser General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU Lesser General Public
14
 
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
15
 
 *
16
 
 *
17
 
 * Authors:
18
 
 *              Vivek Jain <jvivek@novell.com>
19
 
 *
20
 
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
21
 
 *
22
 
 */
23
 
 
24
 
#ifndef __SHARE_FOLDER_H__
25
 
#define __SHARE_FOLDER_H__
26
 
 
27
 
#include <gtk/gtk.h>
28
 
#include <camel/camel.h>
29
 
#include <e-gw-connection.h>
30
 
#include <libedataserverui/e-name-selector.h>
31
 
 
32
 
#define _SHARE_FOLDER_TYPE            (share_folder_get_type ())
33
 
#define SHARE_FOLDER(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), SHARE_FOLDER, ShareFolder))
34
 
#define SHARE_FOLDER_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST ((k), SHARE_FOLDER_TYPE, ShareFolder))
35
 
#define IS_SHARE_FOLDER(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), SHARE_FOLDER_TYPE))
36
 
#define IS_SHARE_FOLDER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SHARE_FOLDER_TYPE))
37
 
 
38
 
G_BEGIN_DECLS
39
 
 
40
 
typedef struct _ShareFolder ShareFolder;
41
 
typedef struct _ShareFolderClass ShareFolderClass;
42
 
 
43
 
struct _ShareFolder {
44
 
        GtkVBox parent_object;
45
 
 
46
 
        GtkBuilder *builder;
47
 
 
48
 
        /* General tab */
49
 
 
50
 
        /* Default Behavior */
51
 
        GtkTreeView *user_list;
52
 
        GtkTextView *message;
53
 
        GtkButton *add_button;
54
 
        GtkButton *remove;
55
 
        GtkButton *add_book;
56
 
        GtkButton *notification;
57
 
        GtkEntry *name;
58
 
        GtkEntry *subject;
59
 
        GtkRadioButton *shared;
60
 
        GtkRadioButton *not_shared;
61
 
        GtkWidget *scrolled_window;
62
 
        GtkListStore *model;
63
 
        GtkCellRenderer *cell;
64
 
        GtkTreeViewColumn *column;
65
 
        GtkVBox  *vbox;
66
 
        GtkVBox  *table;
67
 
        GtkWidget *window;
68
 
 
69
 
        GList *users_list;
70
 
        EGwContainer *gcontainer;
71
 
        gint users;
72
 
        gboolean byme;
73
 
        gboolean tome;
74
 
        gint flag_for_ok;
75
 
        gchar *email;
76
 
        gboolean is_shared;
77
 
        EGwConnection *cnc;
78
 
        gchar *container_id;
79
 
        const gchar *sub;
80
 
        gchar *mesg;
81
 
        GList *container_list;
82
 
        GtkTreeIter iter;
83
 
        ENameSelector *name_selector;
84
 
 
85
 
};
86
 
 
87
 
struct _ShareFolderClass {
88
 
        GtkVBoxClass parent_class;
89
 
 
90
 
};
91
 
 
92
 
GType share_folderget_type (void);
93
 
struct _ShareFolder * share_folder_new (EGwConnection *ccnc, gchar *id);
94
 
void share_folder (struct _ShareFolder *sf);
95
 
gchar * get_container_id (EGwConnection *cnc, const gchar *fname);
96
 
EGwConnection * get_cnc (CamelStore *store);
97
 
 
98
 
G_END_DECLS
99
 
 
100
 
#endif /* __SHARE_FOLDER_H__ */