From 8ac2acc5c6a9decd8a395baf1de87ff246cea2e6 Mon Sep 17 00:00:00 2001
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Date: Tue, 6 May 2008 09:35:31 -0400
Subject: [PATCH] Correction of dbus method sendRegister

---
 sflphone-gtk/src/dbus.c | 2 +-
 sflphone-gtk/src/dbus.h | 2 +-
 src/managerimpl.cpp     | 2 +-
 src/managerimpl.h       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sflphone-gtk/src/dbus.c b/sflphone-gtk/src/dbus.c
index 33e9063a75..fcc40fa928 100644
--- a/sflphone-gtk/src/dbus.c
+++ b/sflphone-gtk/src/dbus.c
@@ -458,7 +458,7 @@ dbus_account_details(gchar * accountID)
 }
 
 void
-dbus_send_register ( gchar* accountID , int expire)
+dbus_send_register ( gchar* accountID , const guint expire)
 {
   GError *error = NULL;
   org_sflphone_SFLphone_ConfigurationManager_send_register ( configurationManagerProxy, accountID, expire ,&error);
diff --git a/sflphone-gtk/src/dbus.h b/sflphone-gtk/src/dbus.h
index aa414876c2..d902bd17eb 100644
--- a/sflphone-gtk/src/dbus.h
+++ b/sflphone-gtk/src/dbus.h
@@ -111,7 +111,7 @@ void dbus_set_account_details(account_t *a);
  *		 0 for unregistration request
  *		 1 for registration request
  */
-void dbus_send_register( gchar* accountID , int expire );
+void dbus_send_register( gchar* accountID , const guint expire );
 
 /**
  * ConfigurationManager - Add an account to the list
diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp
index 5882c7ae41..29a641ff5f 100644
--- a/src/managerimpl.cpp
+++ b/src/managerimpl.cpp
@@ -1877,7 +1877,7 @@ ManagerImpl::setAccountDetails( const ::DBus::String& accountID,
 }
 
 void
-ManagerImpl::sendRegister( const ::DBus::String& accountID , bool expire )
+ManagerImpl::sendRegister( const ::DBus::String& accountID , const DBus::Int32& expire )
 {
   // Update the active field
   setConfig( accountID, CONFIG_ACCOUNT_ENABLE, expire );
diff --git a/src/managerimpl.h b/src/managerimpl.h
index c26a62fe89..5fa813b906 100644
--- a/src/managerimpl.h
+++ b/src/managerimpl.h
@@ -292,7 +292,7 @@ class ManagerImpl {
      *		 0 for unregistration request
      *		 1 for registration request
      */
-    void sendRegister( const ::DBus::String& accountId , bool expire );
+    void sendRegister( const ::DBus::String& accountId , const DBus::Int32& expire );
 
     bool getZeroconf(const std::string& sequenceId);
     bool attachZeroconfEvents(const std::string& sequenceId, Pattern::Observer& observer);
-- 
GitLab