SVN_SILENT made messages (after extraction)
[kdepim.git] / storageservicemanager / storageservicenavigationbuttons.h
blob36d1dc5ecfb3a26754137c5e8254da1080e936bc
1 /*
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
17 02110-1301, USA.
21 #ifndef STORAGESERVICENAVIGATIONBUTTONS_H
22 #define STORAGESERVICENAVIGATIONBUTTONS_H
24 #include <QToolBar>
25 #include "storageservicemanagerutil.h"
27 class QAction;
29 class StorageServiceNavigationButtons : public QToolBar
31 Q_OBJECT
32 public:
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);
50 void clear();
52 Q_SIGNALS:
53 void changeUrl(const InformationUrl &);
54 void goHome();
56 private Q_SLOTS:
57 void slotGoBackClicked();
58 void slotGoForwardClicked();
60 private:
61 void updateButtons();
62 QAction *mHome;
63 QAction *mGoBack;
64 QAction *mGoForward;
65 QList<InformationUrl> mBackUrls;
66 QList<InformationUrl> mForwardUrls;
69 #endif // STORAGESERVICENAVIGATIONBUTTONS_H