Debian Codegraph @

online-accounts-service/src/service.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2013 Canonical Ltd.
3 *
4 * Contact: Alberto Mardegan <[email protected]>
5 *
6 * This file is part of lomiri-online-accounts-service
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License version 3, as published
10 * 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 General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include <online-accounts-common/debug.h>cxx . . $ `<file>/online-accounts-common/debug.h`/
22 #include <online-accounts-common/globals.h>cxx . . $ `<file>/online-accounts-common/globals.h`/
23 #include "onlineaccountsuiadaptor.h"cxx . . $ `<file>/build/online-accounts-service/src/onlineaccountsuiadaptor.h`/
24 #include "request.h"cxx . . $ `<file>/online-accounts-service/src/request.h`/
25 #include "request-manager.h"cxx . . $ `<file>/online-accounts-service/src/request-manager.h`/
26 #include "service.h"cxx . . $ `<file>/online-accounts-service/src/service.h`/
27
28 using namespace OnlineAccountsUi;
29
30 Servicecxx . . $ OnlineAccountsUi/Service#::Servicecxx . . $ OnlineAccountsUi/Service#Service(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent):
31 QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent)
32 {
33 new OnlineAccountsUiAdaptorcxx . . $ OnlineAccountsUiAdaptor#(this);
34 }
35
36 Servicecxx . . $ OnlineAccountsUi/Service#::~cxx . . $ OnlineAccountsUi/Service#`~Service`(ced63f7c635d850d).Servicecxx . . $ OnlineAccountsUi/Service#()
37 {
38 }
39
40 QVariantMapcxx . . $ QVariantMap# Servicecxx . . $ OnlineAccountsUi/Service#::requestAccesscxx . . $ OnlineAccountsUi/Service#requestAccess(52377bf93f9fc760).(const QVariantMapcxx . . $ QVariantMap# &options)
41 {
42 DEBUGcxx . . $ `online-accounts-common/debug.h:42:13`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Got request:" <<cxx . . $ `operator<<`(d06749710cb27f7f). options;
43
44 /* The following line tells QtDBus not to generate a reply now */
45 setDelayedReplycxx . . $ QDBusContext#setDelayedReply(a85845bc2b7828e2).(true);
46
47 Requestcxx . . $ OnlineAccountsUi/Request# *request = new Requestcxx . . $ OnlineAccountsUi/Request#(connectioncxx . . $ QDBusContext#connection(c96d733cf6a2a750).(), messagecxx . . $ QDBusContext#message(c95203e4dc7b0001).(), options, this);
48 RequestManagercxx . . $ OnlineAccountsUi/RequestManager# *manager = RequestManagercxx . . $ OnlineAccountsUi/RequestManager#::instancecxx . . $ OnlineAccountsUi/RequestManager#instance(852f6a16edb34689).();
49 manager->enqueuecxx . . $ OnlineAccountsUi/RequestManager#enqueue(5accaa2ad66e8668).(request);
50
51 return QVariantMapcxx . . $ QMap#QMap(ced63f7c635d850d).();
52 }