Diffstat (limited to 'noncore/net/mail/accountitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/accountitem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/net/mail/accountitem.h b/noncore/net/mail/accountitem.h index f3c0f5d..eb3baa3 100644 --- a/noncore/net/mail/accountitem.h +++ b/noncore/net/mail/accountitem.h | |||
@@ -21,24 +21,25 @@ class AccountViewItem : public QListViewItem | |||
21 | 21 | ||
22 | public: | 22 | public: |
23 | AccountViewItem( AccountView *parent ); | 23 | AccountViewItem( AccountView *parent ); |
24 | AccountViewItem( QListViewItem *parent); | 24 | AccountViewItem( QListViewItem *parent); |
25 | AccountViewItem( QListViewItem *parent , QListViewItem*after ); | 25 | AccountViewItem( QListViewItem *parent , QListViewItem*after ); |
26 | virtual ~AccountViewItem(); | 26 | virtual ~AccountViewItem(); |
27 | virtual void refresh(QList<RecMail>&)=0; | 27 | virtual void refresh(QList<RecMail>&)=0; |
28 | virtual RecBody fetchBody(const RecMail&)=0; | 28 | virtual RecBody fetchBody(const RecMail&)=0; |
29 | virtual QPopupMenu * getContextMenu(){return 0;}; | 29 | virtual QPopupMenu * getContextMenu(){return 0;}; |
30 | virtual void contextMenuSelected(int){} | 30 | virtual void contextMenuSelected(int){} |
31 | virtual AccountView*accountView(); | 31 | virtual AccountView*accountView(); |
32 | virtual bool matchName(const QString&name)const; | 32 | virtual bool matchName(const QString&name)const; |
33 | virtual bool isDraftfolder(); | ||
33 | 34 | ||
34 | protected: | 35 | protected: |
35 | AccountViewItem*findSubItem(const QString&path,AccountViewItem*start=0); | 36 | AccountViewItem*findSubItem(const QString&path,AccountViewItem*start=0); |
36 | virtual void init(); | 37 | virtual void init(); |
37 | virtual void removeChilds(); | 38 | virtual void removeChilds(); |
38 | virtual void deleteAllMail(AbstractMail*wrapper,Folder*f); | 39 | virtual void deleteAllMail(AbstractMail*wrapper,Folder*f); |
39 | static const QString contextName; | 40 | static const QString contextName; |
40 | AccountView*m_Backlink; | 41 | AccountView*m_Backlink; |
41 | Folder *folder; | 42 | Folder *folder; |
42 | }; | 43 | }; |
43 | 44 | ||
44 | class POP3viewItem : public AccountViewItem | 45 | class POP3viewItem : public AccountViewItem |
@@ -184,22 +185,23 @@ protected: | |||
184 | class MHfolderItem : public AccountViewItem | 185 | class MHfolderItem : public AccountViewItem |
185 | { | 186 | { |
186 | 187 | ||
187 | public: | 188 | public: |
188 | MHfolderItem( Folder *folder, MHviewItem *parent , QListViewItem*after ); | 189 | MHfolderItem( Folder *folder, MHviewItem *parent , QListViewItem*after ); |
189 | MHfolderItem( Folder *folder, MHfolderItem *parent, QListViewItem*after, MHviewItem*master); | 190 | MHfolderItem( Folder *folder, MHfolderItem *parent, QListViewItem*after, MHviewItem*master); |
190 | virtual ~MHfolderItem(); | 191 | virtual ~MHfolderItem(); |
191 | virtual void refresh(QList<RecMail>&); | 192 | virtual void refresh(QList<RecMail>&); |
192 | virtual RecBody fetchBody(const RecMail&); | 193 | virtual RecBody fetchBody(const RecMail&); |
193 | virtual QPopupMenu * getContextMenu(); | 194 | virtual QPopupMenu * getContextMenu(); |
194 | virtual void contextMenuSelected(int); | 195 | virtual void contextMenuSelected(int); |
195 | virtual Folder*getFolder(); | 196 | virtual Folder*getFolder(); |
197 | virtual bool isDraftfolder(); | ||
196 | 198 | ||
197 | protected: | 199 | protected: |
198 | void downloadMails(); | 200 | void downloadMails(); |
199 | virtual void createFolder(); | 201 | virtual void createFolder(); |
200 | virtual void deleteFolder(); | 202 | virtual void deleteFolder(); |
201 | void initName(); | 203 | void initName(); |
202 | MHviewItem *mbox; | 204 | MHviewItem *mbox; |
203 | }; | 205 | }; |
204 | 206 | ||
205 | #endif | 207 | #endif |