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
21 #ifndef STORAGESERVICETABWIDGET_H
22 #define STORAGESERVICETABWIDGET_H
25 #include "PimCommon/StorageServiceAbstract"
26 #include "PimCommon/StorageServiceTreeWidget"
27 class StorageServicePage
;
28 class StorageServiceTabWidget
: public QTabWidget
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;
43 void shutdownAllServices();
45 PimCommon::StorageServiceTreeWidget::ItemType
itemTypeSelected() const;
48 void updateStatusBarMessage(const QString
&msg
);
49 void listFileWasInitialized();
50 void selectionChanged();
51 void tabCountChanged(bool hasTab
);
54 void slotAuthenticate();
55 void slotCreateFolder();
56 void slotRefreshList();
57 void slotAccountInfo();
58 void slotUploadFile();
60 void slotDownloadFile();
64 void slotUpdateIcon(const QIcon
&icon
, StorageServicePage
*page
);
67 void createPage(const QString
&name
, PimCommon::StorageServiceAbstract
*service
);
70 #endif // STORAGESERVICETABWIDGET_H