~abreu-alexandre/oxide/add-ua-to-downloadrequested

« back to all changes in this revision

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

  • Committer: Chris Coulson
  • Date: 2014-09-01 13:49:18 UTC
  • mfrom: (694.1.23 ssl-status-api)
  • Revision ID: chris.coulson@canonical.com-20140901134918-3mqi09aln7uldf2l
Add WebView.securityStatus, WebView.blockedContent, WebView.setCanTemporarilyDisplayInsecureContent, WebView.setCanTemporarilyRunInsecureContent, SecurityStatus, CertificateError and SslCertificate API's. I'm still working on tests for these API's, but this shouldn't block webbrowser-app work

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
class OxideQGeolocationPermissionRequestPrivate;
27
27
class OxideQPermissionRequestPrivate;
 
28
class OxideQSimplePermissionRequestPrivate;
28
29
 
29
30
class Q_DECL_EXPORT OxideQPermissionRequest : public QObject {
30
31
  Q_OBJECT
31
32
 
32
 
  Q_PROPERTY(QUrl origin READ origin CONSTANT)
 
33
  Q_PROPERTY(QUrl url READ url CONSTANT)
33
34
  Q_PROPERTY(QUrl embedder READ embedder CONSTANT)
34
35
  Q_PROPERTY(bool isCancelled READ isCancelled NOTIFY cancelled)
35
36
 
39
40
 public:
40
41
  virtual ~OxideQPermissionRequest();
41
42
 
42
 
  QUrl origin() const;
 
43
  QUrl url() const;
43
44
  QUrl embedder() const;
44
45
 
45
46
  bool isCancelled() const;
48
49
  void cancelled();
49
50
 
50
51
 protected:
51
 
  Q_DECL_HIDDEN OxideQPermissionRequest(OxideQPermissionRequestPrivate& dd);
 
52
  OxideQPermissionRequest(OxideQPermissionRequestPrivate& dd);
52
53
 
53
54
  QScopedPointer<OxideQPermissionRequestPrivate> d_ptr;
54
55
};
55
56
 
56
 
class Q_DECL_EXPORT OxideQGeolocationPermissionRequest :
 
57
class Q_DECL_EXPORT OxideQSimplePermissionRequest :
57
58
    public OxideQPermissionRequest {
58
59
  Q_OBJECT
59
60
 
 
61
  Q_DECLARE_PRIVATE(OxideQSimplePermissionRequest)
 
62
  Q_DISABLE_COPY(OxideQSimplePermissionRequest)
 
63
 
 
64
 public:
 
65
  virtual ~OxideQSimplePermissionRequest();
 
66
 
 
67
 public Q_SLOTS:
 
68
  void allow();
 
69
  void deny();
 
70
 
 
71
 protected:
 
72
  OxideQSimplePermissionRequest(OxideQSimplePermissionRequestPrivate& dd);
 
73
};
 
74
 
 
75
class Q_DECL_EXPORT OxideQGeolocationPermissionRequest Q_DECL_FINAL :
 
76
    public OxideQSimplePermissionRequest {
 
77
  Q_OBJECT
 
78
 
 
79
  // This has been replaced by url. origin made sense for geolocation
 
80
  // because we only get an origin from Chromium, whereas we get a full URL
 
81
  // for other types of request
 
82
  Q_PROPERTY(QUrl origin READ origin CONSTANT)
 
83
 
60
84
  Q_DECLARE_PRIVATE(OxideQGeolocationPermissionRequest)
61
85
  Q_DISABLE_COPY(OxideQGeolocationPermissionRequest)
62
86
 
63
87
 public:
64
 
  Q_DECL_HIDDEN OxideQGeolocationPermissionRequest();
65
88
  ~OxideQGeolocationPermissionRequest();
66
89
 
 
90
  QUrl origin() const;
 
91
 
67
92
 public Q_SLOTS:
 
93
  // This has been replaced by allow(). With hindsight, allow/deny always made
 
94
  // more sense
68
95
  void accept();
69
 
  void deny();
 
96
 
 
97
 private:
 
98
  OxideQGeolocationPermissionRequest(
 
99
      OxideQGeolocationPermissionRequestPrivate& dd);
70
100
};
71
101
 
72
102
#endif // OXIDE_Q_PERMISSION_REQUEST