1
// This file is part of QtUbuntu, a set of Qt components for Ubuntu.
2
// Copyright © 2013 Canonical Ltd.
4
// This program is free software: you can redistribute it and/or modify it under
5
// the terms of the GNU Lesser General Public License version 3, as published by
6
// the Free Software Foundation.
8
// This program is distributed in the hope that it will be useful, but WITHOUT
9
// ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10
// SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
// Lesser General Public License for more details.
13
// You should have received a copy of the GNU Lesser General Public License
14
// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
#ifndef QUBUNTUINTEGRATION_H
17
#define QUBUNTUINTEGRATION_H
19
#include "base/integration.h"
21
#include <ubuntu/application/instance.h>
22
#include <ubuntu/application/ui/session.h>
24
class QUbuntuInputAdaptorFactory;
27
class QUbuntuIntegration : public QUbuntuBaseIntegration {
29
QUbuntuIntegration(QUbuntuInputAdaptorFactory* input_factory);
30
~QUbuntuIntegration();
32
// QPlatformIntegration methods.
33
QPlatformWindow* createPlatformWindow(QWindow* window) const;
34
QPlatformWindow* createPlatformWindow(QWindow* window);
35
QPlatformInputContext* inputContext() const { return inputContext_; }
36
QPlatformClipboard* clipboard() const { return clipboard_; }
37
QUbuntuScreen* screen() const { return screen_; }
42
QUbuntuScreen* screen_;
44
QPlatformInputContext* inputContext_;
45
QPlatformClipboard* clipboard_;
48
UApplicationOptions* options_;
49
UApplicationDescription* desc_;
50
UApplicationInstance* instance_;
51
UAUiSessionProperties* props_;
52
UAUiSession* session_;
55
#endif // QUBUNTUINTEGRATION_H