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

« back to all changes in this revision

Viewing changes to src/windowedsurfacefactory_p.h

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2013-01-31 13:26:48 UTC
  • Revision ID: package-import@ubuntu.com-20130131132648-w1u9d2279tppxcft
Tags: upstream-0.94.1
ImportĀ upstreamĀ versionĀ 0.94.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of Maliit framework *
 
3
 *
 
4
 * Copyright (C) 2012 Intel Corporation and/or its subsidiary(-ies).
 
5
 * All rights reserved.
 
6
 *
 
7
 * Contact: maliit-discuss@lists.maliit.org
 
8
 *
 
9
 * This library is free software; you can redistribute it and/or
 
10
 * modify it under the terms of the GNU Lesser General Public
 
11
 * License version 2.1 as published by the Free Software Foundation
 
12
 * and appearing in the file LICENSE.LGPL included in the packaging
 
13
 * of this file.
 
14
 */
 
15
 
 
16
#ifndef MALIIT_SERVER_WINDOWED_SURFACE_FACTORY_P_H
 
17
#define MALIIT_SERVER_WINDOWED_SURFACE_FACTORY_P_H
 
18
 
 
19
#include <QObject>
 
20
#include <QWeakPointer>
 
21
 
 
22
#include <vector>
 
23
 
 
24
#ifdef HAVE_WAYLAND
 
25
#include <wayland-client.h>
 
26
#include "wayland-desktop-shell-client-protocol.h"
 
27
#endif
 
28
 
 
29
namespace Maliit {
 
30
namespace Server {
 
31
 
 
32
class WindowedSurface;
 
33
class WindowedSurfaceFactory;
 
34
 
 
35
class WindowedSurfaceFactoryPrivate : public QObject
 
36
{
 
37
    Q_OBJECT
 
38
    Q_DECLARE_PUBLIC(WindowedSurfaceFactory)
 
39
 
 
40
public:
 
41
    WindowedSurfaceFactoryPrivate(WindowedSurfaceFactory *factory);
 
42
 
 
43
#ifdef HAVE_WAYLAND
 
44
    void handleRegistryGlobal(uint32_t name,
 
45
                              const char *interface,
 
46
                              uint32_t version);
 
47
    void handleRegistryGlobalRemove(uint32_t name);
 
48
    void handleOutputGeometry(int32_t x,
 
49
                              int32_t y,
 
50
                              int32_t physical_width,
 
51
                              int32_t physical_height,
 
52
                              int32_t subpixel,
 
53
                              const char *make,
 
54
                              const char *model,
 
55
                              int32_t transform);
 
56
    void handleOutputMode(uint32_t flags,
 
57
                          int32_t width,
 
58
                          int32_t height,
 
59
                          int32_t refresh);
 
60
#endif
 
61
 
 
62
    Q_SLOT void screenResized(int screen);
 
63
 
 
64
    WindowedSurfaceFactory *q_ptr;
 
65
    std::vector<QWeakPointer<WindowedSurface> > surfaces;
 
66
    bool active;
 
67
#ifdef HAVE_WAYLAND
 
68
    struct wl_registry *registry;
 
69
    struct wl_output *output;
 
70
    struct input_panel *panel;
 
71
    bool output_configured;
 
72
#endif
 
73
};
 
74
 
 
75
} // namespace Server
 
76
} // namespace Maliit
 
77
 
 
78
#endif // MALIIT_SERVER_WINDOWED_SURFACE_FACTORY_P_H