1
/* * This file is part of Maliit framework *
3
* Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: maliit-discuss@lists.maliit.org
8
* Copyright (C) 2012 One Laptop per Child Association
10
* This library is free software; you can redistribute it and/or
11
* modify it under the terms of the GNU Lesser General Public
12
* License version 2.1 as published by the Free Software Foundation
13
* and appearing in the file LICENSE.LGPL included in the packaging
17
#ifndef MALIIT_PLUGINS_WINDOWEDSURFACE_H
18
#define MALIIT_PLUGINS_WINDOWEDSURFACE_H
20
#include <QWeakPointer>
22
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
25
#include <QWidget> // For WId
30
#include <maliit/plugins/abstractsurfacefactory.h>
35
class WindowedSurfaceFactoryPrivate;
36
class WindowedSurface;
38
class WindowedSurfaceFactory : public Maliit::Plugins::AbstractSurfaceFactory
41
Q_DECLARE_PRIVATE(WindowedSurfaceFactory)
44
WindowedSurfaceFactory();
45
virtual ~WindowedSurfaceFactory();
47
QSize screenSize() const;
49
bool supported(Maliit::Plugins::AbstractSurface::Options options) const;
50
QSharedPointer<Maliit::Plugins::AbstractSurface> create(Maliit::Plugins::AbstractSurface::Options options,
51
const QSharedPointer<Maliit::Plugins::AbstractSurface> &parent);
56
void applicationFocusChanged(WId winId);
58
void updateInputMethodArea();
61
void *getInputPanelSurface(QWindow *window);
65
void inputMethodAreaChanged(const QRegion ®ion);
66
void surfaceWidgetCreated(QWidget *widget, int options);
69
QScopedPointer<WindowedSurfaceFactoryPrivate> d_ptr;
75
#endif // MALIIT_SERVER_DEFAULTSURFACE_H