Debian Codegraph @

online-accounts-service/src/mir-helper-stub.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 2014 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 "mir-helper.h"cxx . . $ `<file>/online-accounts-service/src/mir-helper.h`/
23
24 using namespace OnlineAccountsUi;
25
26 namespace OnlineAccountsUicxx . . $ OnlineAccountsUi/ {
27
28 static MirHelpercxx . . $ OnlineAccountsUi/MirHelper# *m_instancecxx . . $ OnlineAccountsUi/m_instance. = 0;
29
30 } // namespace
31
32 PromptSessioncxx . . $ OnlineAccountsUi/PromptSession#::PromptSessioncxx . . $ OnlineAccountsUi/PromptSession#PromptSession(e34c59768f8f65aa).(PromptSessionPrivatecxx . . $ OnlineAccountsUi/PromptSessionPrivate# *priv):
33 d_ptrcxx . . $ OnlineAccountsUi/PromptSession#d_ptr.(priv)
34 {
35 }
36
37 PromptSessioncxx . . $ OnlineAccountsUi/PromptSession#::~cxx . . $ OnlineAccountsUi/PromptSession#`~PromptSession`(ced63f7c635d850d).PromptSessioncxx . . $ OnlineAccountsUi/PromptSession#()
38 {
39 }
40
41 QStringcxx . . $ QString# PromptSessioncxx . . $ OnlineAccountsUi/PromptSession#::requestSocketcxx . . $ OnlineAccountsUi/PromptSession#requestSocket(4365c3963150523e).()
42 {
43 #ifdef BUILDING_TESTS
44 return QStringcxx . . $ QString#::fromUtf8(qgetenvcxx . . $ qgetenv(531409eeffcde449).("TEST_MIR_HELPER_SOCKET"));
45 #else
46 return QStringcxx . . $ QString#QString(ced63f7c635d850d).();
47 #endif
48 }
49
50 MirHelpercxx . . $ OnlineAccountsUi/MirHelper#::MirHelpercxx . . $ OnlineAccountsUi/MirHelper#MirHelper(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent):
51 QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent),
52 d_ptrcxx . . $ OnlineAccountsUi/MirHelper#d_ptr.(0)
53 {
54 }
55
56 MirHelpercxx . . $ OnlineAccountsUi/MirHelper#::~cxx . . $ OnlineAccountsUi/MirHelper#`~MirHelper`(ced63f7c635d850d).MirHelpercxx . . $ OnlineAccountsUi/MirHelper#()
57 {
58 m_instancecxx . . $ OnlineAccountsUi/m_instance. = 0;
59 }
60
61 MirHelpercxx . . $ OnlineAccountsUi/MirHelper# *MirHelpercxx . . $ OnlineAccountsUi/MirHelper#::instancecxx . . $ OnlineAccountsUi/MirHelper#instance(c46adf06146a705d).()
62 {
63 if (!m_instancecxx . . $ OnlineAccountsUi/m_instance.) {
64 m_instancecxx . . $ OnlineAccountsUi/m_instance. = new MirHelpercxx . . $ OnlineAccountsUi/MirHelper#MirHelper(749de1b6ae65bddd).;
65 }
66 return m_instancecxx . . $ OnlineAccountsUi/m_instance.;
67 }
68
69 PromptSessionPcxx . . $ OnlineAccountsUi/PromptSessionP# MirHelpercxx . . $ OnlineAccountsUi/MirHelper#::createPromptSessioncxx . . $ OnlineAccountsUi/MirHelper#createPromptSession(cec82d479823c901).(pid_t initiatorPid)
70 {
71 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(initiatorPid);
72 #ifdef BUILDING_TESTS
73 return qgetenvcxx . . $ qgetenv(531409eeffcde449).("TEST_MIR_HELPER_FAIL_CREATE").isEmptycxx . . $ QByteArray#isEmpty(50ce9a9e25b4a850).() ?
74 PromptSessionP(new PromptSession(0)) : PromptSessionP();
75 #else
76 return PromptSessionPcxx . . $ QSharedPointer#QSharedPointer(ced63f7c635d850d).();
77 #endif
78 }