1
/* * This file is part of Maliit framework *
3
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: maliit-discuss@lists.maliit.org
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License version 2.1 as published by the Free Software Foundation
11
* and appearing in the file LICENSE.LGPL included in the packaging
15
#include "mimstandaloneserverlogic.h"
17
#include "mimpluginsproxywidget.h"
19
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
20
#include "quickviewsurfacegroup.h"
21
#include <QGuiApplication>
23
#include "windowedsurfacegroup.h"
28
MImStandaloneServerLogic::MImStandaloneServerLogic() :
29
MImAbstractServerLogic(0),
30
mProxyWidget(new MImPluginsProxyWidget()),
31
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
32
mSurfaceGroupFactory(QGuiApplication::platformName() == "wayland"
33
? static_cast<Maliit::Server::AbstractSurfaceGroupFactory *>(new Maliit::Server::WindowedSurfaceGroupFactory)
34
: static_cast<Maliit::Server::AbstractSurfaceGroupFactory *>(new Maliit::Server::QuickViewSurfaceGroupFactory))
36
mSurfaceGroupFactory(new Maliit::Server::WindowedSurfaceGroupFactory)
41
MImStandaloneServerLogic::~MImStandaloneServerLogic()
46
void MImStandaloneServerLogic::inputPassthrough(const QRegion ®ion)
54
QSharedPointer<Maliit::Server::AbstractSurfaceGroupFactory> MImStandaloneServerLogic::surfaceGroupFactory() const
56
return mSurfaceGroupFactory;
59
void MImStandaloneServerLogic::pluginLoaded()
63
void MImStandaloneServerLogic::appOrientationAboutToChange(int toAngle)
68
void MImStandaloneServerLogic::appOrientationChangeFinished(int toAngle)
73
void MImStandaloneServerLogic::applicationFocusChanged(WId newRemoteWinId)
75
Q_UNUSED(newRemoteWinId);