~abreu-alexandre/oxide/add-quota-permission-context-support

« back to all changes in this revision

Viewing changes to qt/quick/api/oxideqquickscriptmessage.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_QT_QUICK_API_SCRIPT_MESSAGE_P_H_
19
 
#define _OXIDE_QT_QUICK_API_SCRIPT_MESSAGE_P_H_
20
 
 
21
 
#include <QObject>
22
 
#include <QScopedPointer>
23
 
#include <QString>
24
 
#include <QtGlobal>
25
 
#include <QUrl>
26
 
#include <QVariant>
 
18
#ifndef OXIDE_QTQUICK_SCRIPT_MESSAGE
 
19
#define OXIDE_QTQUICK_SCRIPT_MESSAGE
 
20
 
 
21
#include <QtCore/QObject>
 
22
#include <QtCore/QScopedPointer>
 
23
#include <QtCore/QString>
 
24
#include <QtCore/QtGlobal>
 
25
#include <QtCore/QUrl>
 
26
#include <QtCore/QVariant>
 
27
 
 
28
#include <OxideQtQuick/oxideqquickglobal.h>
27
29
 
28
30
QT_BEGIN_NAMESPACE
29
31
class QString;
32
34
class OxideQQuickScriptMessagePrivate;
33
35
class OxideQQuickWebFrame;
34
36
 
35
 
class Q_DECL_EXPORT OxideQQuickScriptMessage : public QObject {
 
37
class OXIDE_QTQUICK_EXPORT OxideQQuickScriptMessage : public QObject {
36
38
  Q_OBJECT
37
39
  Q_PROPERTY(OxideQQuickWebFrame* frame READ frame CONSTANT)
38
40
  Q_PROPERTY(QUrl context READ context CONSTANT)
44
46
  Q_DISABLE_COPY(OxideQQuickScriptMessage)
45
47
 
46
48
 public:
47
 
  virtual ~OxideQQuickScriptMessage();
 
49
  ~OxideQQuickScriptMessage() Q_DECL_OVERRIDE;
48
50
 
49
51
  OxideQQuickWebFrame* frame() const;
50
52
  QUrl context() const;
55
57
  Q_INVOKABLE void error(const QVariant& payload);
56
58
 
57
59
 private:
58
 
  OxideQQuickScriptMessage();
 
60
  Q_DECL_HIDDEN OxideQQuickScriptMessage();
59
61
 
60
62
  QScopedPointer<OxideQQuickScriptMessagePrivate> d_ptr;
61
63
};
62
64
 
63
 
#endif // _OXIDE_QT_QUICK_API_SCRIPT_MESSAGE_P_H_
 
65
#endif // OXIDE_QTQUICK_SCRIPT_MESSAGE