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.
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.
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/>
18
* Vivek Jain <jvivek@novell.com>
20
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
24
#ifndef __SHARE_FOLDER_H__
25
#define __SHARE_FOLDER_H__
28
#include <camel/camel.h>
29
#include <e-gw-connection.h>
30
#include <libedataserverui/e-name-selector.h>
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))
40
typedef struct _ShareFolder ShareFolder;
41
typedef struct _ShareFolderClass ShareFolderClass;
44
GtkVBox parent_object;
50
/* Default Behavior */
51
GtkTreeView *user_list;
53
GtkButton *add_button;
56
GtkButton *notification;
59
GtkRadioButton *shared;
60
GtkRadioButton *not_shared;
61
GtkWidget *scrolled_window;
63
GtkCellRenderer *cell;
64
GtkTreeViewColumn *column;
70
EGwContainer *gcontainer;
81
GList *container_list;
83
ENameSelector *name_selector;
87
struct _ShareFolderClass {
88
GtkVBoxClass parent_class;
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);
100
#endif /* __SHARE_FOLDER_H__ */