SVN_SILENT made messages (.desktop file)
[kdepim.git] / sieveeditor / sieveeditormainwindow.h
blob55dbd96049a900f672f1eb7739c9a53ce56609e3
1 /*
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
17 02110-1301, USA.
21 #ifndef SIEVEEDITORMAINWINDOW_H
22 #define SIEVEEDITORMAINWINDOW_H
24 #include <KXmlGuiWindow>
25 #include <Solid/Networking>
27 class KAction;
28 class SieveEditorMainWidget;
29 class QLabel;
30 class SieveEditorMainWindow : public KXmlGuiWindow
32 Q_OBJECT
33 public:
34 explicit SieveEditorMainWindow();
35 ~SieveEditorMainWindow();
37 protected:
38 void closeEvent(QCloseEvent *e);
40 private slots:
41 void slotConfigure();
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();
52 private:
53 void initStatusBar();
54 void readConfig();
55 void setupActions();
56 SieveEditorMainWidget *mMainWidget;
57 KAction *mDeleteScript;
58 KAction *mNewScript;
59 KAction *mEditScript;
60 KAction *mDesactivateScript;
61 KAction *mRefreshList;
62 KAction *mSaveScript;
63 KAction *mGoToLine;
64 QLabel *mStatusBarInfo;
65 bool mNetworkIsDown;
68 #endif // SIEVEEDITORMAINWINDOW_H