00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef KSHOWMAILVIEW_H
00021 #define KSHOWMAILVIEW_H
00022 
00023 #ifdef HAVE_CONFIG_H
00024 #include <config.h>
00025 #endif
00026 
00027 
00028 #include <tqwidget.h>
00029 #include <tqsplitter.h>
00030 #include <tqcursor.h>
00031 #include <tqpopupmenu.h>
00032 
00033 
00034 #include <tdelistview.h>
00035 #include <tdeconfig.h>
00036 #include <tdeapplication.h>
00037 
00038 
00039 #include "configlist.h"
00040 #include "showlistviewitem.h"
00041 
00042 
00043 
00044 class ConfigList;
00045 class KshowmailDoc;
00046 
00057 class KshowmailView : public TQSplitter
00058 {
00059   TQ_OBJECT
00060   public:
00062     KshowmailView(TQWidget *parent = 0, const char *name=0);
00064     ~KshowmailView();
00065                 void saveOptions (TDEConfig* config);
00066 
00067                 TDEListView* m_pListAccounts;
00068                 TDEListView* m_pListMessages;
00069 
00073     void clearMailListView();
00074 
00090     ShowListViewItem* insertMail( TQString& number, TQString& account, TQString& from, TQString& to, TQString& subject, TQString& date, TQString& size, TQString& content, TQString& state, TQString& time );
00091 
00098     void refreshSetup();
00099 
00100   private:
00101 
00102     TQPixmap* m_pixOk;
00103 
00107     TDEConfig* config;
00108 
00112     void readOptions();
00113 
00114 private slots:
00115 
00122   void slotMessageContext( TQListViewItem*, const TQPoint&, int );
00123 
00124         void slotMessageDoubleClicked (TQListViewItem*);
00125         void slotMessageClicked (TQListViewItem*);
00126 
00133   void slotAccountContext( TQListViewItem*, const TQPoint &, int );
00134 
00139   void slotAccountClicked( TQListViewItem*, const TQPoint& point, int col );
00140 
00141 signals:
00142         void signalActiveChanged ();
00143 };
00144 
00145 #endif // KSHOWMAILVIEW_H