~ubuntu-branches/ubuntu/trusty/qtubuntu/trusty

« back to all changes in this revision

Viewing changes to src/platforms/ubuntu/ubuntucommon/integration.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Gerry Boland, Robert Carr, Ricardo Mendoza, Ubuntu daily release
  • Date: 2013-08-14 06:06:46 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20130814060646-4gpyxhl3hl7tqbpj
Tags: 0.52+13.10.20130814.1-0ubuntu1
[ Gerry Boland ]
* Add support for building mirserver and mirclient backends to the
  QPA.

[ Robert Carr ]
* Add support for building mirserver and mirclient backends to the
  QPA.

[ Ricardo Mendoza ]
* Add support for building mirserver and mirclient backends to the
  QPA.

[ Ubuntu daily release ]
* Automatic snapshot from revision 165

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This file is part of QtUbuntu, a set of Qt components for Ubuntu.
 
2
// Copyright © 2013 Canonical Ltd.
 
3
//
 
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.
 
7
//
 
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.
 
12
//
 
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/>.
 
15
 
 
16
#ifndef QUBUNTUINTEGRATION_H
 
17
#define QUBUNTUINTEGRATION_H
 
18
 
 
19
#include "base/integration.h"
 
20
#include "screen.h"
 
21
#include <ubuntu/application/instance.h>
 
22
#include <ubuntu/application/ui/session.h>
 
23
 
 
24
class QUbuntuInputAdaptorFactory;
 
25
class QUbuntuInput;
 
26
 
 
27
class QUbuntuIntegration : public QUbuntuBaseIntegration {
 
28
 public:
 
29
  QUbuntuIntegration(QUbuntuInputAdaptorFactory* input_factory);
 
30
  ~QUbuntuIntegration();
 
31
 
 
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_; }
 
38
 
 
39
 private:
 
40
  int argc_;
 
41
  char** argv_;
 
42
  QUbuntuScreen* screen_;
 
43
  QUbuntuInput* input_;
 
44
  QPlatformInputContext* inputContext_;
 
45
  QPlatformClipboard* clipboard_;
 
46
  bool isShell_;
 
47
 
 
48
  UApplicationOptions* options_;
 
49
  UApplicationDescription* desc_;
 
50
  UApplicationInstance* instance_;
 
51
  UAUiSessionProperties* props_;
 
52
  UAUiSession* session_;
 
53
};
 
54
 
 
55
#endif  // QUBUNTUINTEGRATION_H