diff options
author | James Thomas <james.thomas@codethink.co.uk> | 2015-04-17 15:09:48 +0000 |
---|---|---|
committer | James Thomas <james.thomas@codethink.co.uk> | 2015-04-17 16:51:07 +0100 |
commit | c53156a9b63d3a30d743ec59ddf5cb12a1357920 (patch) | |
tree | 2b68a35dba4e40a700d2265cd6ab10e822e4965b | |
parent | 5cbcc4c5bfed000c6a48b7892b5b166db1373261 (diff) | |
download | qtwayland-baserock/genivi-5.5.0-wip.tar.gz |
Add surfacebaserock/genivi-5.5.0-wip
-rw-r--r-- | src/client/qwaylandivisurface.cpp | 72 | ||||
-rw-r--r-- | src/client/qwaylandivisurface_p.h | 75 |
2 files changed, 147 insertions, 0 deletions
diff --git a/src/client/qwaylandivisurface.cpp b/src/client/qwaylandivisurface.cpp new file mode 100644 index 00000000..2ac647c7 --- /dev/null +++ b/src/client/qwaylandivisurface.cpp @@ -0,0 +1,72 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU General Public License version 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "qwaylandivisurface_p.h" + +#include "qwaylanddisplay_p.h" +#include "qwaylandwindow_p.h" +#include "qwaylandscreen_p.h" + +#include <QtCore/QDebug> + +QT_BEGIN_NAMESPACE + +QWaylandIviSurface::QWaylandIviSurface(struct ::ivi_surface *ivi_surface, QWaylandWindow *window) + : QtWayland::ivi_surface(ivi_surface) + , m_window(window) +{ +} + +QWaylandIviSurface::~QWaylandIviSurface() +{ + ivi_surface_destroy(object()); +} + +void QWaylandIviSurface::ivi_surface_visibility(int32_t visibility) +{ +} + +void QWaylandIviSurface::ivi_surface_warning(int32_t warning_code, const QString &warning_text) +{ +} + +QT_END_NAMESPACE + diff --git a/src/client/qwaylandivisurface_p.h b/src/client/qwaylandivisurface_p.h new file mode 100644 index 00000000..cf6c8abd --- /dev/null +++ b/src/client/qwaylandivisurface_p.h @@ -0,0 +1,75 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU General Public License version 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef QWAYLANDIVISURFACE_H +#define QWAYLANDIVISURFACE_H + +#include <QtCore/QSize> + +#include <wayland-client.h> + +#include <QtWaylandClient/private/qwayland-wayland.h> +#include <QtWaylandClient/private/qwaylandclientexport_p.h> +#include <QtWaylandClient/private/qwayland-ivi-application.h> + +QT_BEGIN_NAMESPACE + +class QWaylandWindow; +class QWindow; + +class Q_WAYLAND_CLIENT_EXPORT QWaylandIviSurface : public QtWayland::ivi_surface +{ +public: + QWaylandIviSurface(struct ::ivi_surface *ivi_surface, QWaylandWindow *window); + virtual ~QWaylandIviSurface(); + +private: + void ivi_surface_visibility(int32_t visibility); + void ivi_surface_warning(int32_t warning_code, const QString &warning_text); + + friend class QWaylandWindow; + QWaylandWindow *m_window; +}; + +QT_END_NAMESPACE + +#endif // QWAYLANDIVISURFACE_H + |