diff --git a/daemon/src/dbus/Makefile.am b/daemon/src/dbus/Makefile.am index 63e6ccbd011d6cd2507b4cf55b367baff6c0d813..f3af972f04edfa38bef84b8ef016173478b63378 100644 --- a/daemon/src/dbus/Makefile.am +++ b/daemon/src/dbus/Makefile.am @@ -50,7 +50,6 @@ $(service_DATA): $(service_in_files) Makefile EXTRA_DIST = README $(service_in_files) \ callmanager-introspec.xml \ configurationmanager-introspec.xml \ - contactmanager-introspec.xml \ instance-introspec.xml \ org.freedesktop.NetworkManager.xml diff --git a/daemon/src/dbus/contactmanager-introspec.xml b/daemon/src/dbus/contactmanager-introspec.xml deleted file mode 100644 index 89d39efb192ecd3fe0604f080a95ff58129368d1..0000000000000000000000000000000000000000 --- a/daemon/src/dbus/contactmanager-introspec.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" ?> -<node name="/org/sflphone/SFLphone"> - <interface name="org.sflphone.SFLphone.ContactManager"> - - <!-- Contacts related methods --> - - <!-- Called by the client to get all saved contacts --> - <method name="getContacts"> - <arg type="s" name="accountID" direction="in"/> - <arg type="a{ss}" name="details" direction="out"/> - </method> - - <!-- Called by the client to save all local contacts --> - <method name="setContacts"> - <arg type="s" name="accountID" direction="in"/> - <arg type="a{ss}" name="details" direction="in"/> - </method> - - <!-- /////////////////////// --> - - <!-- Presence related methods --> - - <!-- Called by the client to set its new presence status --> - <method name="setPresence"> - <arg type="s" name="accountID" direction="in"/> - <arg type="s" name="presence" direction="in"/> - <arg type="s" name="additionalInfo" direction="in"/> - </method> - - <!-- Called by the daemon when a contact presence changes --> - <method name="setContactPresence"> - <arg type="s" name="accountID" direction="in"/> - <arg type="s" name="presence" direction="in"/> - <arg type="s" name="additionalInfo" direction="in"/> - </method> - - </interface> -</node> diff --git a/daemon/src/dbus/contactmanager.cpp b/daemon/src/dbus/contactmanager.cpp deleted file mode 100644 index 1514db5a65116990d631e767540ad0164f185d23..0000000000000000000000000000000000000000 --- a/daemon/src/dbus/contactmanager.cpp +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010, 2011 Savoir-Faire Linux Inc. - * Author: Guillaume Carmel-Archambault <guillaume.carmel-archambault@savoirfairelinux.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Additional permission under GNU GPL version 3 section 7: - * - * If you modify this program, or any covered work, by linking or - * combining it with the OpenSSL project's OpenSSL library (or a - * modified version of that library), containing parts covered by the - * terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc. - * grants you additional permission to convey the resulting work. - * Corresponding Source for a non-source form of such a combination - * shall include the source code for the parts of OpenSSL used as well - * as that of the covered work. - */ - -#include <contactmanager.h> -#include "../manager.h" - -const char* ContactManager::SERVER_PATH = "/org/sflphone/SFLphone/ContactManager"; - -std::map< std::string, std::string > -ContactManager::getContacts (const std::string& accountID UNUSED) -{ - // TODO - std::map< std::string, std::string > ret; - return ret; -} - -void -ContactManager::setContacts (const std::string& accountID UNUSED, const std::map< std::string UNUSED, std::string >& details UNUSED) -{ - // TODO -} - -void -ContactManager::setPresence (const std::string& accountID UNUSED, const std::string& presence UNUSED, const std::string& additionalInfo UNUSED) -{ - // TODO -} - -void -ContactManager::setContactPresence (const std::string& accountID UNUSED, const std::string& presence UNUSED, const std::string& additionalInfo UNUSED) -{ - // TODO -} diff --git a/daemon/src/dbus/contactmanager.h b/daemon/src/dbus/contactmanager.h deleted file mode 100644 index 7b8ead34a28d369d664619ccdb7220eec3198841..0000000000000000000000000000000000000000 --- a/daemon/src/dbus/contactmanager.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010, 2011 Savoir-Faire Linux Inc. - * Author: Guillaume Carmel-Archambault <guillaume.carmel-archambault@savoirfairelinux.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Additional permission under GNU GPL version 3 section 7: - * - * If you modify this program, or any covered work, by linking or - * combining it with the OpenSSL project's OpenSSL library (or a - * modified version of that library), containing parts covered by the - * terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc. - * grants you additional permission to convey the resulting work. - * Corresponding Source for a non-source form of such a combination - * shall include the source code for the parts of OpenSSL used as well - * as that of the covered work. - */ - -#ifndef CONTACTMANAGER_H -#define CONTACTMANAGER_H - -#include "contactmanager-glue.h" -#include <dbus-c++/dbus.h> - - -class ContactManager - : public org::sflphone::SFLphone::ContactManager_adaptor, - public DBus::IntrospectableAdaptor, - public DBus::ObjectAdaptor -{ - public: - - ContactManager (DBus::Connection& connection); - static const char* SERVER_PATH; - - public: - std::map< std::string, std::string > getContacts (const std::string& accountID); - void setContacts (const std::string& accountID, const std::map< std::string, std::string >& details); - void setPresence (const std::string& accountID, const std::string& presence, const std::string& additionalInfo); - void setContactPresence (const std::string& accountID, const std::string& presence, const std::string& additionalInfo); - -}; - - -#endif//CONTACTMANAGER_H diff --git a/gnome/src/dbus/contactmanager-introspec.xml b/gnome/src/dbus/contactmanager-introspec.xml deleted file mode 100644 index 89d39efb192ecd3fe0604f080a95ff58129368d1..0000000000000000000000000000000000000000 --- a/gnome/src/dbus/contactmanager-introspec.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" ?> -<node name="/org/sflphone/SFLphone"> - <interface name="org.sflphone.SFLphone.ContactManager"> - - <!-- Contacts related methods --> - - <!-- Called by the client to get all saved contacts --> - <method name="getContacts"> - <arg type="s" name="accountID" direction="in"/> - <arg type="a{ss}" name="details" direction="out"/> - </method> - - <!-- Called by the client to save all local contacts --> - <method name="setContacts"> - <arg type="s" name="accountID" direction="in"/> - <arg type="a{ss}" name="details" direction="in"/> - </method> - - <!-- /////////////////////// --> - - <!-- Presence related methods --> - - <!-- Called by the client to set its new presence status --> - <method name="setPresence"> - <arg type="s" name="accountID" direction="in"/> - <arg type="s" name="presence" direction="in"/> - <arg type="s" name="additionalInfo" direction="in"/> - </method> - - <!-- Called by the daemon when a contact presence changes --> - <method name="setContactPresence"> - <arg type="s" name="accountID" direction="in"/> - <arg type="s" name="presence" direction="in"/> - <arg type="s" name="additionalInfo" direction="in"/> - </method> - - </interface> -</node>