author | alwin <alwin> | 2003-12-28 02:45:07 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-28 02:45:07 (UTC) |
commit | d1a7eb08cad465c5fc0de53f75aaecf7803f0945 (patch) (side-by-side diff) | |
tree | 422b73af760cdd44e4fbbc96bd6876a15939ff19 /noncore/net/mail/accountview.h | |
parent | e889485e945d8fa9564566f286114be10d2a1ce5 (diff) | |
download | opie-d1a7eb08cad465c5fc0de53f75aaecf7803f0945.zip opie-d1a7eb08cad465c5fc0de53f75aaecf7803f0945.tar.gz opie-d1a7eb08cad465c5fc0de53f75aaecf7803f0945.tar.bz2 |
- dir handling for mbox accounts (delete, new, delete all mail)
- fixed memory leaks in mbox account class
- reduced count of used string constants while using "tr" with context string
- mbox displays messages into global status bar
- fixed a possible raise condition when deleting a mail directory
Diffstat (limited to 'noncore/net/mail/accountview.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/noncore/net/mail/accountview.h b/noncore/net/mail/accountview.h index e7fe038..98abf44 100644 --- a/noncore/net/mail/accountview.h +++ b/noncore/net/mail/accountview.h @@ -25,4 +25,6 @@ public: virtual QPopupMenu * getContextMenu(){return 0;}; virtual void contextMenuSelected(int){} +protected: + static const QString contextName; }; @@ -89,5 +91,4 @@ public: virtual RecBody fetchBody(const RecMail&); bool matchName(const QString&name)const; - virtual void deleteAllMails(); virtual QPopupMenu * getContextMenu(); virtual void contextMenuSelected(int); @@ -96,4 +97,5 @@ protected: virtual void createNewFolder(); virtual void deleteFolder(); + virtual void deleteAllMails(); private: @@ -104,4 +106,5 @@ private: class MBOXviewItem : public AccountViewItem { + friend class MBOXfolderItem; public: @@ -112,4 +115,11 @@ public: virtual RecBody fetchBody( const RecMail &mail ); AbstractMail *getWrapper(); + virtual QPopupMenu * getContextMenu(); + virtual void contextMenuSelected(int); + +protected: + virtual void refresh(bool force=false); + virtual void createFolder(); + private: // MBOXaccount *account; @@ -127,4 +137,10 @@ public: virtual void refresh(QList<RecMail>&); virtual RecBody fetchBody(const RecMail&); + virtual QPopupMenu * getContextMenu(); + virtual void contextMenuSelected(int); + +protected: + virtual void deleteAllMails(); + virtual void deleteFolder(); private: Folder *folder; |