| 1 | /* |
| 2 | * Copyright (C) 2013 Canonical Ltd. |
| 3 | * |
| 4 | * Contact: Alberto Mardegan <[email protected]> |
| 5 | * |
| 6 | * This file is part of lomiri-online-accounts-ui |
| 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 "window-watcher.h"cxx . . $ `<file>/tests/online-accounts-ui/tst_signonui_request/window-watcher.h`/ |
| 22 | |
| 23 | #include <QDebug> |
| 24 | #include <QWindow> |
| 25 | #include <QVariant> |
| 26 | |
| 27 | #define TRANSIENT_PARENTcxx . . $ `tests/online-accounts-ui/mock/qwindow.cpp:27:9`! "transientParent" |
| 28 | #define WIN_IDcxx . . $ `tests/online-accounts-ui/mock/qwindow.cpp:28:9`! "winId" |
| 29 | |
| 30 | WindowWatchercxx . . $ WindowWatcher# *WindowWatchercxx . . $ WindowWatcher#::m_instancecxx . . $ WindowWatcher#m_instance. = 0; |
| 31 | |
| 32 | QWindowcxx . . $ QWindow#::QWindowcxx . . $ QWindow#QWindow(35681b993d9a3c79).(QWindowcxx . . $ QWindow# *parent): |
| 33 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), |
| 34 | QSurfacecxx . . $ QSurface#(QSurfacecxx . . $ QSurface#::Windowcxx . . $ QSurface#Window.) |
| 35 | { |
| 36 | qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:240:11`!; |
| 37 | } |
| 38 | |
| 39 | QWindowcxx . . $ QWindow#::~cxx . . $ QWindow#`~QWindow`(ced63f7c635d850d).QWindowcxx . . $ QWindow#() |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | void QWindowcxx . . $ QWindow#::showcxx . . $ QWindow#show(49f6e7a06ebc5aa8).() |
| 44 | { |
| 45 | WindowWatchercxx . . $ WindowWatcher#::instancecxx . . $ WindowWatcher#instance(67e9f289a7ed84bf).()->emitWindowShowncxx . . $ WindowWatcher#emitWindowShown(35681b993d9a3c79).(this); |
| 46 | } |
| 47 | |
| 48 | void QWindowcxx . . $ QWindow#::setTransientParentcxx . . $ QWindow#setTransientParent(35681b993d9a3c79).(QWindowcxx . . $ QWindow# *parent) |
| 49 | { |
| 50 | setPropertycxx . . $ QObject#setProperty(395943cdf6cf5058).(TRANSIENT_PARENTcxx . . $ `tests/online-accounts-ui/mock/qwindow.cpp:27:9`!, QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(28ec88ac519b76da).<QObjectcxx . . $ QObject#*>(parent)); |
| 51 | } |
| 52 | |
| 53 | QWindowcxx . . $ QWindow# *QWindowcxx . . $ QWindow#::fromWinIdcxx . . $ QWindow#fromWinId(698df145cbabc72).(WIdcxx . . $ WId# winId) |
| 54 | { |
| 55 | QWindowcxx . . $ QWindow# *window = new QWindowcxx . . $ QWindow#QWindow(484cbc3bdb260bbf).; |
| 56 | window->setPropertycxx . . $ QObject#setProperty(395943cdf6cf5058).(WIN_IDcxx . . $ `tests/online-accounts-ui/mock/qwindow.cpp:28:9`!, winIdcxx . . $ QVariant#QVariant(891dc3055356b409).); |
| 57 | return window; |
| 58 | } |