dbuspresencemanager.cpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (C) 2004-2017 Savoir-faire Linux Inc.
  3. *
  4. * Author: Philippe Proulx <philippe.proulx@savoirfairelinux.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. */
  20. #include "dbuspresencemanager.h"
  21. #include "presencemanager_interface.h"
  22. DBusPresenceManager::DBusPresenceManager(DBus::Connection& connection)
  23. : DBus::ObjectAdaptor(connection, "/cx/ring/Ring/PresenceManager")
  24. {}
  25. void
  26. DBusPresenceManager::publish(const std::string& accountID, const bool& status, const std::string& note)
  27. {
  28. DRing::publish(accountID, status, note);
  29. }
  30. void
  31. DBusPresenceManager::answerServerRequest(const std::string& uri, const bool& flag)
  32. {
  33. DRing::answerServerRequest(uri, flag);
  34. }
  35. void
  36. DBusPresenceManager::subscribeBuddy(const std::string& accountID, const std::string& uri, const bool& flag)
  37. {
  38. DRing::subscribeBuddy(accountID, uri, flag);
  39. }
  40. auto
  41. DBusPresenceManager::getSubscriptions(const std::string& accountID) -> decltype(DRing::getSubscriptions(accountID))
  42. {
  43. return DRing::getSubscriptions(accountID);
  44. }
  45. void
  46. DBusPresenceManager::setSubscriptions(const std::string& accountID, const std::vector<std::string>& uris)
  47. {
  48. DRing::setSubscriptions(accountID, uris);
  49. }