1
// vim:expandtab:shiftwidth=2:tabstop=2:
2
// Copyright (C) 2014 Canonical Ltd.
4
// This library is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU Lesser General Public
6
// License as published by the Free Software Foundation; either
7
// version 2.1 of the License, or (at your option) any later version.
9
// This library is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// Lesser General Public License for more details.
14
// You should have received a copy of the GNU Lesser General Public
15
// License along with this library; if not, write to the Free Software
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
#ifndef OXIDE_Q_NAVIGATION_REQUEST
19
#define OXIDE_Q_NAVIGATION_REQUEST
22
#include <QScopedPointer>
26
class OxideQNavigationRequestPrivate;
28
class Q_DECL_EXPORT OxideQNavigationRequest Q_DECL_FINAL : public QObject {
31
Q_PROPERTY(QUrl url READ url CONSTANT)
32
Q_PROPERTY(Disposition disposition READ disposition CONSTANT)
33
Q_PROPERTY(bool userGesture READ userGesture CONSTANT)
34
Q_PROPERTY(Action action READ action WRITE setAction NOTIFY actionChanged)
39
Q_DECLARE_PRIVATE(OxideQNavigationRequest)
40
Q_DISABLE_COPY(OxideQNavigationRequest)
45
DispositionCurrentTab,
46
DispositionNewForegroundTab,
47
DispositionNewBackgroundTab,
57
~OxideQNavigationRequest();
58
Q_DECL_HIDDEN OxideQNavigationRequest(const QUrl& url,
59
Disposition disposition,
63
Disposition disposition() const;
64
bool userGesture() const;
66
Action action() const;
67
void setAction(Action action);
73
QScopedPointer<OxideQNavigationRequestPrivate> d_ptr;
76
#endif // OXIDE_Q_NAVIGATION_REQUEST