Don't share mailto
[kdepim.git] / storageservicemanager / storageservicemanagermainwindow.h
blob55d5eac04f695fa8b686b6895bf43c701d0bb227
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 STORAGESERVICEMANAGERMAINWINDOW_H
22 #define STORAGESERVICEMANAGERMAINWINDOW_H
24 #include <KXmlGuiWindow>
26 class QNetworkConfigurationManager;
28 namespace PimCommon
30 class StorageServiceManager;
33 class QAction;
34 class QLabel;
35 class StorageServiceManagerMainWidget;
36 class StorageServiceManagerMainWindow : public KXmlGuiWindow
38 Q_OBJECT
39 public:
40 explicit StorageServiceManagerMainWindow();
41 ~StorageServiceManagerMainWindow();
43 public Q_SLOTS:
44 void slotSetStatusBarMessage(const QString &message);
46 protected:
47 void closeEvent(QCloseEvent *e) Q_DECL_OVERRIDE;
49 private Q_SLOTS:
50 void slotConfigure();
51 void slotUpdateActions();
52 void slotServiceRemoved(const QString &serviceName);
53 void slotLogout();
54 void slotShutdownAllServices();
55 void slotRefreshAll();
56 void slotShowNotificationOptions();
57 void slotServicesChanged();
58 void slotSystemNetworkOnlineStateChanged(bool state);
59 private:
60 void setupActions();
61 void readConfig();
62 void initStatusBar();
63 StorageServiceManagerMainWidget *mStorageServiceMainWidget;
64 PimCommon::StorageServiceManager *mStorageManager;
65 QAction *mDownloadFile;
66 QAction *mCreateFolder;
67 QAction *mAccountInfo;
68 QAction *mUploadFile;
69 QAction *mDelete;
70 QAction *mAuthenticate;
71 QAction *mRefreshList;
72 QAction *mShowLog;
73 QAction *mLogout;
74 QAction *mShutdownAllServices;
75 QAction *mRefreshAll;
76 QAction *mRenameItem;
77 QLabel *mStatusBarInfo;
78 QNetworkConfigurationManager *mNetworkConfigurationManager;
81 #endif // STORAGESERVICEMANAGERMAINWINDOW_H