-rw-r--r-- | noncore/net/mail/mainwindow.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/noncore/net/mail/mainwindow.h b/noncore/net/mail/mainwindow.h index a5142ab..6c87261 100644 --- a/noncore/net/mail/mainwindow.h +++ b/noncore/net/mail/mainwindow.h | |||
@@ -7,25 +7,27 @@ | |||
7 | 7 | ||
8 | #include <qtoolbar.h> | 8 | #include <qtoolbar.h> |
9 | #include <qmenubar.h> | 9 | #include <qmenubar.h> |
10 | 10 | ||
11 | #include "accountview.h" | 11 | #include "accountview.h" |
12 | 12 | ||
13 | class RecMail; | ||
14 | |||
13 | class MainWindow : public QMainWindow | 15 | class MainWindow : public QMainWindow |
14 | { | 16 | { |
15 | Q_OBJECT | 17 | Q_OBJECT |
16 | 18 | ||
17 | public: | 19 | public: |
18 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); | 20 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); |
19 | 21 | ||
20 | public slots: | 22 | public slots: |
21 | void slotAdjustColumns(); | 23 | void slotAdjustColumns(); |
22 | 24 | ||
23 | protected slots: | 25 | protected slots: |
24 | virtual void slotShowFolders( bool show ); | 26 | virtual void slotShowFolders( bool show ); |
25 | virtual void refreshMailView(Maillist*); | 27 | virtual void refreshMailView(QList<RecMail>*); |
26 | virtual void displayMail(QListViewItem*); | 28 | virtual void displayMail(QListViewItem*); |
27 | 29 | ||
28 | protected: | 30 | protected: |
29 | QToolBar *toolBar; | 31 | QToolBar *toolBar; |
30 | QMenuBar *menuBar; | 32 | QMenuBar *menuBar; |
31 | QPopupMenu *mailMenu, *settingsMenu; | 33 | QPopupMenu *mailMenu, *settingsMenu; |
@@ -33,22 +35,7 @@ protected: | |||
33 | *editSettings, *editAccounts, *syncFolders; | 35 | *editSettings, *editAccounts, *syncFolders; |
34 | AccountView *folderView; | 36 | AccountView *folderView; |
35 | QListView *mailView; | 37 | QListView *mailView; |
36 | 38 | ||
37 | }; | 39 | }; |
38 | 40 | ||
39 | class MailListViewItem:public QListViewItem | ||
40 | { | ||
41 | public: | ||
42 | MailListViewItem(QListView * parent, MailListViewItem * after ) | ||
43 | :QListViewItem(parent,after),mail_data(){} | ||
44 | virtual ~MailListViewItem(){} | ||
45 | |||
46 | void storeData(const RecMail&data){mail_data = data;} | ||
47 | const RecMail&data()const{return mail_data;} | ||
48 | void showEntry(); | ||
49 | |||
50 | protected: | ||
51 | RecMail mail_data; | ||
52 | }; | ||
53 | |||
54 | #endif | 41 | #endif |