author | alwin <alwin> | 2003-12-27 18:23:23 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-27 18:23:23 (UTC) |
commit | 7812187f6732eef351e501d993aa664b7e351cbb (patch) (unidiff) | |
tree | fe2ed5fc0d8c67983956ecf543a54d2e6355a627 /noncore/net/mail/accountview.h | |
parent | 583f9d5f33fa055fe8ee612f344d06faae1ef330 (diff) | |
download | opie-7812187f6732eef351e501d993aa664b7e351cbb.zip opie-7812187f6732eef351e501d993aa664b7e351cbb.tar.gz opie-7812187f6732eef351e501d993aa664b7e351cbb.tar.bz2 |
folder handling for imap mostly impelemented, context menus for
imap-mail-folders implemented.
Diffstat (limited to 'noncore/net/mail/accountview.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/noncore/net/mail/accountview.h b/noncore/net/mail/accountview.h index 35499ac..e7fe038 100644 --- a/noncore/net/mail/accountview.h +++ b/noncore/net/mail/accountview.h | |||
@@ -11,6 +11,7 @@ | |||
11 | class POP3wrapper; | 11 | class POP3wrapper; |
12 | class RecMail; | 12 | class RecMail; |
13 | class RecBody; | 13 | class RecBody; |
14 | class QPopupMenu; | ||
14 | 15 | ||
15 | class AccountViewItem : public QListViewItem | 16 | class AccountViewItem : public QListViewItem |
16 | { | 17 | { |
@@ -21,6 +22,8 @@ public: | |||
21 | AccountViewItem( QListViewItem *parent , QListViewItem*after ) : QListViewItem( parent,after ) {} | 22 | AccountViewItem( QListViewItem *parent , QListViewItem*after ) : QListViewItem( parent,after ) {} |
22 | virtual void refresh(QList<RecMail>&)=0; | 23 | virtual void refresh(QList<RecMail>&)=0; |
23 | virtual RecBody fetchBody(const RecMail&)=0; | 24 | virtual RecBody fetchBody(const RecMail&)=0; |
25 | virtual QPopupMenu * getContextMenu(){return 0;}; | ||
26 | virtual void contextMenuSelected(int){} | ||
24 | }; | 27 | }; |
25 | 28 | ||
26 | class POP3viewItem : public AccountViewItem | 29 | class POP3viewItem : public AccountViewItem |
@@ -55,16 +58,20 @@ class IMAPfolderItem; | |||
55 | 58 | ||
56 | class IMAPviewItem : public AccountViewItem | 59 | class IMAPviewItem : public AccountViewItem |
57 | { | 60 | { |
58 | 61 | friend class IMAPfolderItem; | |
59 | public: | 62 | public: |
60 | IMAPviewItem( IMAPaccount *a, QListView *parent ); | 63 | IMAPviewItem( IMAPaccount *a, QListView *parent ); |
61 | ~IMAPviewItem(); | 64 | ~IMAPviewItem(); |
62 | virtual void refresh(QList<RecMail>&); | 65 | virtual void refresh(QList<RecMail>&); |
63 | virtual RecBody fetchBody(const RecMail&); | 66 | virtual RecBody fetchBody(const RecMail&); |
64 | AbstractMail *getWrapper(); | 67 | AbstractMail *getWrapper(); |
68 | virtual QPopupMenu * getContextMenu(); | ||
69 | virtual void contextMenuSelected(int); | ||
65 | 70 | ||
66 | protected: | 71 | protected: |
67 | IMAPfolderItem*findSubItem(const QString&path,IMAPfolderItem*start=0); | 72 | IMAPfolderItem*findSubItem(const QString&path,IMAPfolderItem*start=0); |
73 | virtual void refreshFolders(bool force=false); | ||
74 | virtual void createNewFolder(); | ||
68 | 75 | ||
69 | private: | 76 | private: |
70 | IMAPaccount *account; | 77 | IMAPaccount *account; |
@@ -81,6 +88,14 @@ public: | |||
81 | virtual void refresh(QList<RecMail>&); | 88 | virtual void refresh(QList<RecMail>&); |
82 | virtual RecBody fetchBody(const RecMail&); | 89 | virtual RecBody fetchBody(const RecMail&); |
83 | bool matchName(const QString&name)const; | 90 | bool matchName(const QString&name)const; |
91 | virtual void deleteAllMails(); | ||
92 | virtual QPopupMenu * getContextMenu(); | ||
93 | virtual void contextMenuSelected(int); | ||
94 | virtual const QString& Delemiter()const; | ||
95 | protected: | ||
96 | virtual void createNewFolder(); | ||
97 | virtual void deleteFolder(); | ||
98 | |||
84 | private: | 99 | private: |
85 | Folder *folder; | 100 | Folder *folder; |
86 | IMAPviewItem *imap; | 101 | IMAPviewItem *imap; |
@@ -126,9 +141,11 @@ public: | |||
126 | RecBody fetchBody(const RecMail&aMail); | 141 | RecBody fetchBody(const RecMail&aMail); |
127 | 142 | ||
128 | public slots: | 143 | public slots: |
129 | void refreshAll(); | 144 | virtual void refreshAll(); |
130 | void refresh(QListViewItem *item); | 145 | virtual void refresh(QListViewItem *item); |
131 | void refreshCurrent(); | 146 | virtual void refreshCurrent(); |
147 | virtual void slotHold(int, QListViewItem *,const QPoint&,int); | ||
148 | virtual void slotContextMenu(int id); | ||
132 | 149 | ||
133 | signals: | 150 | signals: |
134 | void refreshMailview(QList<RecMail>*); | 151 | void refreshMailview(QList<RecMail>*); |