| 1 | /* |
| 2 | * This file is part of libOnlineAccounts |
| 3 | * |
| 4 | * Copyright (C) 2016 Canonical Ltd. |
| 5 | * |
| 6 | * Contact: Alberto Mardegan <[email protected]> |
| 7 | * |
| 8 | * This program is free software: you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU Lesser General Public License version 3, as |
| 10 | * published by the Free Software Foundation. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranties of |
| 14 | * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 15 | * PURPOSE. See the GNU Lesser General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public License |
| 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include "service.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/service.h`/ |
| 22 | |
| 23 | #include <QVariantMap> |
| 24 | #include <LomiriOnlineAccountsDaemon/dbus_constants.h>cxx . . $ `<file>/online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h`/ |
| 25 | |
| 26 | using namespace OnlineAccounts; |
| 27 | |
| 28 | Servicecxx . . $ OnlineAccounts/Service#::ServiceDatacxx . . $ OnlineAccounts/Service#ServiceData#::ServiceDatacxx . . $ OnlineAccounts/Service#ServiceData#ServiceData(3e95df3e31f2cce8).(const QVariantMapcxx . . $ QVariantMap# &map): |
| 29 | m_idcxx . . $ OnlineAccounts/Service#ServiceData#m_id.(map.valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_INFO_KEY_SERVICE_IDcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:32:9`!).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()), |
| 30 | m_displayNamecxx . . $ OnlineAccounts/Service#ServiceData#m_displayName.(map.valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_INFO_KEY_DISPLAY_NAMEcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:31:9`!).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()), |
| 31 | m_iconSourcecxx . . $ OnlineAccounts/Service#ServiceData#m_iconSource.(map.valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_INFO_KEY_ICON_SOURCEcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:46:9`!).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()) |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | Servicecxx . . $ OnlineAccounts/Service#::Servicecxx . . $ OnlineAccounts/Service#Service(49f6e7a06ebc5aa8).(): |
| 36 | dcxx . . $ OnlineAccounts/Service#d.(new ServiceDatacxx . . $ OnlineAccounts/Service#ServiceData#(QVariantMapcxx . . $ QMap#QMap(ced63f7c635d850d).())) |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | Servicecxx . . $ OnlineAccounts/Service#::Servicecxx . . $ OnlineAccounts/Service#Service(3e95df3e31f2cce8).(const QVariantMapcxx . . $ QVariantMap# &map): |
| 41 | dcxx . . $ OnlineAccounts/Service#d.(new ServiceDatacxx . . $ OnlineAccounts/Service#ServiceData#(map)) |
| 42 | { |
| 43 | } |
| 44 | |
| 45 | #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! < QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(5, 5, 0) |
| 46 | QVariantMap Service::toMap() const |
| 47 | { |
| 48 | return QVariantMap { |
| 49 | { "serviceId", id() }, |
| 50 | { "displayName", displayName() }, |
| 51 | { "iconSource", iconSource() }, |
| 52 | }; |
| 53 | } |
| 54 | #endif |