2 Copyright (c) 2014-2016 Montel Laurent <montel@kde.org>
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #ifndef STORAGESERVICENAVIGATIONBUTTONS_H
22 #define STORAGESERVICENAVIGATIONBUTTONS_H
25 #include "storageservicemanagerutil.h"
29 class StorageServiceNavigationButtons
: public QToolBar
33 explicit StorageServiceNavigationButtons(QWidget
*parent
= Q_NULLPTR
);
35 QAction
*goBack() const;
36 QAction
*goForward() const;
37 QAction
*home() const;
39 void addNewUrl(const InformationUrl
&);
41 void addBackUrl(const InformationUrl
&);
42 void addForwadUrl(const InformationUrl
&);
44 QList
<InformationUrl
> backUrls() const;
45 void setBackUrls(const QList
<InformationUrl
> &value
);
47 QList
<InformationUrl
> forwardUrls() const;
48 void setForwardUrls(const QList
<InformationUrl
> &value
);
53 void changeUrl(const InformationUrl
&);
57 void slotGoBackClicked();
58 void slotGoForwardClicked();
65 QList
<InformationUrl
> mBackUrls
;
66 QList
<InformationUrl
> mForwardUrls
;
69 #endif // STORAGESERVICENAVIGATIONBUTTONS_H