~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to src/windowedsurface.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* * This file is part of Maliit framework *
2
 
 *
3
 
 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4
 
 * All rights reserved.
5
 
 *
6
 
 * Contact: maliit-discuss@lists.maliit.org
7
 
 *
8
 
 * Copyright (C) 2012 One Laptop per Child Association
9
 
 *
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
14
 
 * of this file.
15
 
 */
16
 
 
17
 
#ifndef MALIIT_PLUGINS_WINDOWEDSURFACE_H
18
 
#define MALIIT_PLUGINS_WINDOWEDSURFACE_H
19
 
 
20
 
#include <QWeakPointer>
21
 
 
22
 
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
23
 
#include <QWindow>
24
 
#else
25
 
#include <QWidget> // For WId
26
 
#endif
27
 
 
28
 
#include <vector>
29
 
 
30
 
#include <maliit/plugins/abstractsurfacefactory.h>
31
 
 
32
 
namespace Maliit {
33
 
namespace Server {
34
 
 
35
 
class WindowedSurfaceFactoryPrivate;
36
 
class WindowedSurface;
37
 
 
38
 
class WindowedSurfaceFactory : public Maliit::Plugins::AbstractSurfaceFactory
39
 
{
40
 
    Q_OBJECT
41
 
    Q_DECLARE_PRIVATE(WindowedSurfaceFactory)
42
 
 
43
 
public:
44
 
    WindowedSurfaceFactory();
45
 
    virtual ~WindowedSurfaceFactory();
46
 
 
47
 
    QSize screenSize() const;
48
 
 
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);
52
 
 
53
 
    void activate();
54
 
    void deactivate();
55
 
 
56
 
    void applicationFocusChanged(WId winId);
57
 
 
58
 
    void updateInputMethodArea();
59
 
 
60
 
#ifdef HAVE_WAYLAND
61
 
    void *getInputPanelSurface(QWindow *window);
62
 
#endif
63
 
 
64
 
Q_SIGNALS:
65
 
    void inputMethodAreaChanged(const QRegion &region);
66
 
    void surfaceWidgetCreated(QWidget *widget, int options);
67
 
 
68
 
private:
69
 
    QScopedPointer<WindowedSurfaceFactoryPrivate> d_ptr;
70
 
};
71
 
 
72
 
} // namespace Server
73
 
} // namespace Maliit
74
 
 
75
 
#endif // MALIIT_SERVER_DEFAULTSURFACE_H