2
* This file is part of Maliit framework *
4
* Copyright (C) 2012 Intel Corporation and/or its subsidiary(-ies).
7
* Contact: maliit-discuss@lists.maliit.org
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
16
#ifndef MALIIT_SERVER_WINDOWED_SURFACE_FACTORY_P_H
17
#define MALIIT_SERVER_WINDOWED_SURFACE_FACTORY_P_H
20
#include <QWeakPointer>
25
#include <wayland-client.h>
26
#include "wayland-desktop-shell-client-protocol.h"
32
class WindowedSurface;
33
class WindowedSurfaceFactory;
35
class WindowedSurfaceFactoryPrivate : public QObject
38
Q_DECLARE_PUBLIC(WindowedSurfaceFactory)
41
WindowedSurfaceFactoryPrivate(WindowedSurfaceFactory *factory);
44
void handleRegistryGlobal(uint32_t name,
45
const char *interface,
47
void handleRegistryGlobalRemove(uint32_t name);
48
void handleOutputGeometry(int32_t x,
50
int32_t physical_width,
51
int32_t physical_height,
56
void handleOutputMode(uint32_t flags,
62
Q_SLOT void screenResized(int screen);
64
WindowedSurfaceFactory *q_ptr;
65
std::vector<QWeakPointer<WindowedSurface> > surfaces;
68
struct wl_registry *registry;
69
struct wl_output *output;
70
struct input_panel *panel;
71
bool output_configured;
78
#endif // MALIIT_SERVER_WINDOWED_SURFACE_FACTORY_P_H