00001 /* 00002 Copyright 2010 Ulrich Weigelt <ulrich.weigelt@gmx.de> 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public License as 00006 published by the Free Software Foundation; either version 2 of 00007 the License, or (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef FILTERLOGVIEW_H 00019 #define FILTERLOGVIEW_H 00020 00021 //Qt headers 00022 #include <qlabel.h> 00023 #include <qlayout.h> 00024 #include <qtooltip.h> 00025 #include <QTreeView> 00026 00027 //KDE headers 00028 #include <KDialog> 00029 #include <klocale.h> 00030 #include <kpushbutton.h> 00031 #include <kstdguiitem.h> 00032 #include <kseparator.h> 00033 00034 //KShowmail headers 00035 #include "filterlog.h" 00036 #include "filterlogviewmovedmodel.h" 00037 #include "filterlogviewdeletedmodel.h" 00038 #include "constants.h" 00039 00044 class FilterLogView : public KDialog 00045 { 00046 00047 Q_OBJECT 00048 00049 public: 00050 00056 explicit FilterLogView( QWidget* parent = NULL, FilterLog* log = NULL ); 00057 00061 ~FilterLogView(); 00062 00063 protected : 00064 00068 void saveSetup(); 00069 00073 void loadSetup(); 00074 00075 private: 00076 00080 FilterLog* log; 00081 00085 QTreeView* viewDeleted; 00086 00090 FilterLogViewDeletedModel* modelDeleted; 00091 00095 QTreeView* viewMoved; 00096 00100 FilterLogViewMovedModel* modelMoved; 00101 00102 00103 private slots: 00104 00108 void slotClearDeletedMails(); 00109 00113 void slotClearMovedMails(); 00114 00120 virtual void slotButtonClicked( int button ); 00121 00122 }; 00123 00124 #endif