[evolution-data-server/meego-eds] Add ConnMan integration and offline/online detection+support.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/meego-eds] Add ConnMan integration and offline/online detection+support.
- Date: Wed, 29 Jun 2011 21:29:18 +0000 (UTC)
commit 3c998bad81e1808a7a78f7607a058277f8ecf515
Author: Srinivasa Ragavan <srini linux intel com>
Date: Thu Jun 30 00:28:42 2011 +0300
Add ConnMan integration and offline/online detection+support.
mail/daemon/Makefile.am | 2 +-
mail/daemon/e-mail-connection-connman.c | 5 ++---
mail/daemon/main.c | 4 +++-
3 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/mail/daemon/Makefile.am b/mail/daemon/Makefile.am
index 605d1e3..08707bc 100644
--- a/mail/daemon/Makefile.am
+++ b/mail/daemon/Makefile.am
@@ -3,7 +3,7 @@ factorydir = $(libexecdir)
factory_PROGRAMS = e-mail-factory
e_mail_factory_SOURCES = main.c \
e-mail-connection-connman.c \
- e-mail-connection-connman.H \
+ e-mail-connection-connman.h \
e-mail-local.c \
e-mail-local.h \
e-mail-store.c \
diff --git a/mail/daemon/e-mail-connection-connman.c b/mail/daemon/e-mail-connection-connman.c
index 3cc82e4..d80ce54 100644
--- a/mail/daemon/e-mail-connection-connman.c
+++ b/mail/daemon/e-mail-connection-connman.c
@@ -1,4 +1,4 @@
-/* e-mail-connection-connman.c */
+/* Based on Evolution's connman plugin */
#include "e-mail-connection-connman.h"
#include <gio/gio.h>
@@ -25,7 +25,6 @@ static void
manager_set_state (EMailConnectionConnMan *manager, const gchar *state)
{
/* EMailConnectionConnManPrivate *priv = GET_PRIVATE(manager); */
-
camel_session_set_network_available (session, !g_strcmp0 (state, "online"));
camel_session_set_online (session, !g_strcmp0 (state, "online"));
}
@@ -198,7 +197,7 @@ e_mail_connection_connman_class_init (EMailConnectionConnManClass *klass)
object_class->set_property = e_mail_connection_connman_set_property;
object_class->dispose = e_mail_connection_connman_dispose;
object_class->finalize = e_mail_connection_connman_finalize;
-object_class->constructed = e_mail_connection_connman_constructed;
+ object_class->constructed = e_mail_connection_connman_constructed;
}
diff --git a/mail/daemon/main.c b/mail/daemon/main.c
index 12a72c0..c4f0b39 100644
--- a/mail/daemon/main.c
+++ b/mail/daemon/main.c
@@ -35,6 +35,7 @@
#include "mail-ops.h"
#include "e-dbus-manager.h"
#include "mail-send-recv.h"
+#include "e-mail-connection-connman.h"
#include "utils.h"
@@ -99,8 +100,9 @@ start_mail_engine ()
g_free(data_dir);
+ e_mail_connection_connman_new();
mail_autoreceive_init (session);
-
+
/* In regular intervals, sync to server. We donno how & when the daemon will die */
g_timeout_add_seconds (
mail_config_get_sync_timeout (),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]