aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary.h
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-07-01 06:59:34 +0800
committerIain Holmes <iain@src.gnome.org>2001-07-01 06:59:34 +0800
commit730ceece38016a382888d5a9958eca004f65acf0 (patch)
treee16a9a0feaa6ba76b7d74216095e48c64c4481f7 /my-evolution/e-summary.h
parentba225d83afd4d6b444553a79b3fa224d5a47e98b (diff)
downloadgsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.tar.gz
gsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.tar.zst
gsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.zip
Handle the online/offline stuff
svn path=/trunk/; revision=10639
Diffstat (limited to 'my-evolution/e-summary.h')
-rw-r--r--my-evolution/e-summary.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/my-evolution/e-summary.h b/my-evolution/e-summary.h
index 45d1905678..1ba2ee18b7 100644
--- a/my-evolution/e-summary.h
+++ b/my-evolution/e-summary.h
@@ -27,10 +27,36 @@
typedef struct _ESummaryPrivate ESummaryPrivate;
typedef struct _ESummaryClass ESummaryClass;
typedef struct _ESummaryPrefs ESummaryPrefs;
+typedef struct _ESummaryConnection ESummaryConnection;
+typedef struct _ESummaryConnectionData ESummaryConnectionData;
typedef void (* ESummaryProtocolListener) (ESummary *summary,
const char *uri,
void *closure);
+typedef int (* ESummaryConnectionCount) (ESummary *summary,
+ void *closure);
+typedef GList *(* ESummaryConnectionAdd) (ESummary *summary,
+ void *closure);
+typedef void (* ESummaryConnectionSetOnline) (ESummary *summary,
+ gboolean online,
+ void *closure);
+typedef void (*ESummaryOnlineCallback) (ESummary *summary,
+ void *closure);
+
+struct _ESummaryConnection {
+ ESummaryConnectionCount count;
+ ESummaryConnectionAdd add;
+ ESummaryConnectionSetOnline set_online;
+ ESummaryOnlineCallback callback;
+
+ void *closure;
+ void *callback_closure;
+};
+
+struct _ESummaryConnectionData {
+ char *hostname;
+ char *type;
+};
struct _ESummaryPrefs {
@@ -70,6 +96,7 @@ struct _ESummary {
GNOME_Evolution_ShellView shell_view_interface;
GtkWidget *prefs_window;
+ gboolean online;
};
struct _ESummaryClass {
@@ -92,4 +119,12 @@ void e_summary_add_protocol_listener (ESummary *summary,
ESummaryProtocolListener listener,
void *closure);
void e_summary_reconfigure (ESummary *summary);
+int e_summary_count_connections (ESummary *summary);
+GList *e_summary_add_connections (ESummary *summary);
+void e_summary_set_online (ESummary *summary,
+ gboolean online,
+ ESummaryOnlineCallback callback,
+ void *closure);
+void e_summary_add_online_connection (ESummary *summary,
+ ESummaryConnection *connection);
#endif