~osomon/oxide/override-touchUngrabEvent

« back to all changes in this revision

Viewing changes to qt/core/api/oxideqnewviewrequest.h

  • Committer: Chris Coulson
  • Date: 2016-01-13 18:16:11 UTC
  • Revision ID: chris.coulson@canonical.com-20160113181611-vo55lgwngvcj9u1h
Various clean-ups in soon-to-be-public headers. Also, we rename header files based on whether they're going to be public or not

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
// License along with this library; if not, write to the Free Software
16
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 
18
 
#ifndef OXIDE_Q_NEW_VIEW_REQUEST
19
 
#define OXIDE_Q_NEW_VIEW_REQUEST
20
 
 
21
 
#include <QObject>
22
 
#include <QRect>
23
 
#include <QRectF>
24
 
#include <QScopedPointer>
25
 
#include <QtGlobal>
 
18
#ifndef OXIDE_QTCORE_NEW_VIEW_REQUEST
 
19
#define OXIDE_QTCORE_NEW_VIEW_REQUEST
 
20
 
 
21
#include <QtCore/QObject>
 
22
#include <QtCore/QRect>
 
23
#include <QtCore/QRectF>
 
24
#include <QtCore/QScopedPointer>
 
25
#include <QtCore/QtGlobal>
 
26
 
 
27
#include <OxideQtCore/oxideqglobal.h>
 
28
 
 
29
#if defined(OXIDE_QTCORE_IMPLEMENTATION)
 
30
namespace oxide {
 
31
namespace qt {
 
32
class WebView;
 
33
}
 
34
}
 
35
#endif
26
36
 
27
37
class OxideQNewViewRequestPrivate;
28
38
 
29
 
class Q_DECL_EXPORT OxideQNewViewRequest Q_DECL_FINAL : public QObject {
 
39
class OXIDE_QTCORE_EXPORT OxideQNewViewRequest : public QObject {
30
40
  Q_OBJECT
31
41
 
32
42
  Q_PROPERTY(QRectF position READ positionF CONSTANT)
47
57
    DispositionNewWindow
48
58
  };
49
59
 
50
 
  Q_DECL_HIDDEN OxideQNewViewRequest(const QRect& position,
51
 
                                     Disposition disposition);
52
 
  ~OxideQNewViewRequest();
 
60
  ~OxideQNewViewRequest() Q_DECL_OVERRIDE;
53
61
 
54
62
  QRect position() const;
55
63
  QRectF positionF() const;
56
64
  Disposition disposition() const;
57
65
 
58
66
 private:
 
67
#if defined(OXIDE_QTCORE_IMPLEMENTATION)
 
68
  friend class oxide::qt::WebView;
 
69
#endif
 
70
  Q_DECL_HIDDEN OxideQNewViewRequest(const QRect& position,
 
71
                                     Disposition disposition);
 
72
 
59
73
  QScopedPointer<OxideQNewViewRequestPrivate> d_ptr;
60
74
};
61
75
 
62
 
#endif // OXIDE_Q_NEW_VIEW_REQUEST
 
76
#endif // OXIDE_QTCORE_NEW_VIEW_REQUEST