Diffstat (limited to 'noncore/net/mail/accountview.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/net/mail/accountview.h b/noncore/net/mail/accountview.h index 98abf44..361dd86 100644 --- a/noncore/net/mail/accountview.h +++ b/noncore/net/mail/accountview.h | |||
@@ -22,12 +22,13 @@ public: | |||
22 | AccountViewItem( QListViewItem *parent , QListViewItem*after ) : QListViewItem( parent,after ) {} | 22 | AccountViewItem( QListViewItem *parent , QListViewItem*after ) : QListViewItem( parent,after ) {} |
23 | virtual void refresh(QList<RecMail>&)=0; | 23 | virtual void refresh(QList<RecMail>&)=0; |
24 | virtual RecBody fetchBody(const RecMail&)=0; | 24 | virtual RecBody fetchBody(const RecMail&)=0; |
25 | virtual QPopupMenu * getContextMenu(){return 0;}; | 25 | virtual QPopupMenu * getContextMenu(){return 0;}; |
26 | virtual void contextMenuSelected(int){} | 26 | virtual void contextMenuSelected(int){} |
27 | protected: | 27 | protected: |
28 | virtual void deleteAllMail(AbstractMail*wrapper,Folder*f); | ||
28 | static const QString contextName; | 29 | static const QString contextName; |
29 | }; | 30 | }; |
30 | 31 | ||
31 | class POP3viewItem : public AccountViewItem | 32 | class POP3viewItem : public AccountViewItem |
32 | { | 33 | { |
33 | 34 | ||
@@ -48,12 +49,15 @@ class POP3folderItem : public AccountViewItem | |||
48 | 49 | ||
49 | public: | 50 | public: |
50 | POP3folderItem( Folder *folder, POP3viewItem *parent , QListViewItem*after ); | 51 | POP3folderItem( Folder *folder, POP3viewItem *parent , QListViewItem*after ); |
51 | ~POP3folderItem(); | 52 | ~POP3folderItem(); |
52 | virtual void refresh(QList<RecMail>&); | 53 | virtual void refresh(QList<RecMail>&); |
53 | virtual RecBody fetchBody(const RecMail&); | 54 | virtual RecBody fetchBody(const RecMail&); |
55 | virtual QPopupMenu * getContextMenu(); | ||
56 | virtual void contextMenuSelected(int); | ||
57 | |||
54 | private: | 58 | private: |
55 | Folder *folder; | 59 | Folder *folder; |
56 | POP3viewItem *pop3; | 60 | POP3viewItem *pop3; |
57 | }; | 61 | }; |
58 | 62 | ||
59 | class IMAPfolderItem; | 63 | class IMAPfolderItem; |
@@ -93,13 +97,12 @@ public: | |||
93 | virtual QPopupMenu * getContextMenu(); | 97 | virtual QPopupMenu * getContextMenu(); |
94 | virtual void contextMenuSelected(int); | 98 | virtual void contextMenuSelected(int); |
95 | virtual const QString& Delemiter()const; | 99 | virtual const QString& Delemiter()const; |
96 | protected: | 100 | protected: |
97 | virtual void createNewFolder(); | 101 | virtual void createNewFolder(); |
98 | virtual void deleteFolder(); | 102 | virtual void deleteFolder(); |
99 | virtual void deleteAllMails(); | ||
100 | 103 | ||
101 | private: | 104 | private: |
102 | Folder *folder; | 105 | Folder *folder; |
103 | IMAPviewItem *imap; | 106 | IMAPviewItem *imap; |
104 | }; | 107 | }; |
105 | 108 | ||
@@ -137,13 +140,12 @@ public: | |||
137 | virtual void refresh(QList<RecMail>&); | 140 | virtual void refresh(QList<RecMail>&); |
138 | virtual RecBody fetchBody(const RecMail&); | 141 | virtual RecBody fetchBody(const RecMail&); |
139 | virtual QPopupMenu * getContextMenu(); | 142 | virtual QPopupMenu * getContextMenu(); |
140 | virtual void contextMenuSelected(int); | 143 | virtual void contextMenuSelected(int); |
141 | 144 | ||
142 | protected: | 145 | protected: |
143 | virtual void deleteAllMails(); | ||
144 | virtual void deleteFolder(); | 146 | virtual void deleteFolder(); |
145 | private: | 147 | private: |
146 | Folder *folder; | 148 | Folder *folder; |
147 | MBOXviewItem *mbox; | 149 | MBOXviewItem *mbox; |
148 | }; | 150 | }; |
149 | 151 | ||