2 Copyright (c) 2013, 2014 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 SIEVEEDITORMAINWINDOW_H
22 #define SIEVEEDITORMAINWINDOW_H
24 #include <KXmlGuiWindow>
25 #include <Solid/Networking>
28 class SieveEditorMainWidget
;
30 class SieveEditorMainWindow
: public KXmlGuiWindow
34 explicit SieveEditorMainWindow();
35 ~SieveEditorMainWindow();
38 void closeEvent(QCloseEvent
*e
);
42 void slotAddServerSieve();
43 void slotCreateNewScript();
44 void slotDeleteScript();
45 void slotUpdateButtons(bool newScriptAction
, bool editScriptAction
, bool deleteScriptAction
, bool desactivateScriptAction
);
46 void slotEditScript();
47 void slotDesactivateScript();
48 void slotRefreshList();
49 void slotSaveScript();
50 void slotSystemNetworkStatusChanged(Solid::Networking::Status status
);
51 void slotUpdateActions();
56 SieveEditorMainWidget
*mMainWidget
;
57 KAction
*mDeleteScript
;
60 KAction
*mDesactivateScript
;
61 KAction
*mRefreshList
;
64 QLabel
*mStatusBarInfo
;
68 #endif // SIEVEEDITORMAINWINDOW_H