aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-folder.h
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>2000-01-09 13:21:37 +0800
committerArturo Espinosa <unammx@src.gnome.org>2000-01-09 13:21:37 +0800
commit89db309e06bda8777c005857ebccd6a34ac95739 (patch)
tree72193c5d553291fd91db2bfef4dcd338606c36de /shell/e-folder.h
parent25606cbf7d12360f4a8bca7a4631ce7613894597 (diff)
downloadgsoc2013-evolution-89db309e06bda8777c005857ebccd6a34ac95739.tar
gsoc2013-evolution-89db309e06bda8777c005857ebccd6a34ac95739.tar.gz
gsoc2013-evolution-89db309e06bda8777c005857ebccd6a34ac95739.tar.bz2
gsoc2013-evolution-89db309e06bda8777c005857ebccd6a34ac95739.tar.lz
gsoc2013-evolution-89db309e06bda8777c005857ebccd6a34ac95739.tar.xz
gsoc2013-evolution-89db309e06bda8777c005857ebccd6a34ac95739.tar.zst
gsoc2013-evolution-89db309e06bda8777c005857ebccd6a34ac95739.zip
More work. Before the shortcut changes -mig
svn path=/trunk/; revision=1545
Diffstat (limited to 'shell/e-folder.h')
-rw-r--r--shell/e-folder.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/shell/e-folder.h b/shell/e-folder.h
new file mode 100644
index 0000000000..d41a02e6ce
--- /dev/null
+++ b/shell/e-folder.h
@@ -0,0 +1,74 @@
+#ifndef _E_FOLDER_H_
+#define _E_FOLDER_H_
+
+#include <gtk/gtkobject.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+#define E_FOLDER_TYPE (e_folder_get_type ())
+#define E_FOLDER(o) (GTK_CHECK_CAST ((o), E_FOLDER_TYPE, EFolder))
+#define E_FOLDER_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_FOLDER_TYPE, EFolderClass))
+#define E_IS_FOLDER(o) (GTK_CHECK_TYPE ((o), E_FOLDER_TYPE))
+#define E_IS_FOLDER_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_FOLDER_TYPE))
+
+typedef enum {
+ E_FOLDER_DND_AS_FORWARD,
+ E_FOLDER_DND_AS_MOVE_COPY
+} EFolderDragDropAction;
+
+typedef struct {
+ GtkObject parent_object;
+
+ /*
+ * General properties
+ */
+ char *uri; /* Location */
+ char *name; /* Short name */
+ char *desc; /* Full description */
+ char *home_page; /* Home page for this folder */
+
+ /*
+ * Administration properties
+ */
+ char *view_name; /* View name */
+} EFolder;
+
+typedef struct {
+ GtkObjectClass parent_class;
+
+ /*
+ * Virtual methods
+ */
+ /* eg: "Folder containing mail items */
+ const char *(*get_type_name) (EFolder *efolder);
+
+ /*
+ * Signals
+ */
+ void (*view_changed) (EFolder *efolder);
+} EFolderClass;
+
+GtkType e_folder_get_type (void);
+void e_folder_construct (EFolder *efolder,
+ const char *uri, const char *name,
+ const char *desc, const char *home_page,
+ const char *view_name);
+
+void e_folder_set_uri (EFolder *efolder, const char *uri);
+const char *e_folder_get_uri (EFolder *efolder);
+
+void e_folder_set_description (EFolder *efolder, const char *desc);
+const char *e_folder_get_description (EFolder *efolder);
+
+void e_folder_set_home_page (EFolder *efolder, const char *desc);
+const char *e_folder_get_home_page (EFolder *efolder);
+
+const char *e_folder_get_name (EFolder *efolder);
+void e_folder_set_name (EFolder *efolder, const char *name);
+
+const char *e_folder_get_view_name (EFolder *efolder);
+void e_folder_set_view_name (EFolder *efolder, const char *view_name);
+
+const char *e_folder_get_type_name (EFolder *efolder);
+
+#endif /* _E_FOLDER_H_ */
+