SVN_SILENT made messages (after extraction)
[kdepim.git] / storageservicemanager / storageservicetabwidget.h
blob6d60e89a519ff3374aa15a725809cf1a74850629
1 /*
2 Copyright (c) 2013-2015 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 STORAGESERVICETABWIDGET_H
22 #define STORAGESERVICETABWIDGET_H
24 #include <QTabWidget>
25 #include "PimCommon/StorageServiceAbstract"
26 #include "PimCommon/StorageServiceTreeWidget"
27 class StorageServicePage;
28 class StorageServiceTabWidget : public QTabWidget
30 Q_OBJECT
31 public:
32 explicit StorageServiceTabWidget(QWidget *parent = Q_NULLPTR);
33 ~StorageServiceTabWidget();
35 PimCommon::StorageServiceAbstract::Capabilities capabilities() const;
36 void setListStorageService(const QMap<QString, PimCommon::StorageServiceAbstract *> &list);
37 void updateListService(const QMap<QString, PimCommon::StorageServiceAbstract *> &list);
38 bool hasUploadDownloadProgress() const;
39 void serviceRemoved(const QString &serviceName);
40 void setNetworkIsDown(bool state);
41 bool listFolderWasLoaded() const;
42 void logout();
43 void shutdownAllServices();
44 void refreshAll();
45 PimCommon::StorageServiceTreeWidget::ItemType itemTypeSelected() const;
47 Q_SIGNALS:
48 void updateStatusBarMessage(const QString &msg);
49 void listFileWasInitialized();
50 void selectionChanged();
51 void tabCountChanged(bool hasTab);
53 public Q_SLOTS:
54 void slotAuthenticate();
55 void slotCreateFolder();
56 void slotRefreshList();
57 void slotAccountInfo();
58 void slotUploadFile();
59 void slotDelete();
60 void slotDownloadFile();
61 void slotShowLog();
62 void slotRename();
63 private Q_SLOTS:
64 void slotUpdateIcon(const QIcon &icon, StorageServicePage *page);
66 private:
67 void createPage(const QString &name, PimCommon::StorageServiceAbstract *service);
70 #endif // STORAGESERVICETABWIDGET_H