author | zautrix <zautrix> | 2004-09-11 23:25:03 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-11 23:25:03 (UTC) |
commit | 0a2900e71fd3d80393d67c81aab3aae19d2d680c (patch) (unidiff) | |
tree | 1f2926eca6bee600819932603eaaf28c7f267d6b /kmicromail/accountitem.h | |
parent | a040c9d56282dae396b02627fafb602e44323837 (diff) | |
download | kdepimpi-0a2900e71fd3d80393d67c81aab3aae19d2d680c.zip kdepimpi-0a2900e71fd3d80393d67c81aab3aae19d2d680c.tar.gz kdepimpi-0a2900e71fd3d80393d67c81aab3aae19d2d680c.tar.bz2 |
Bugfixes
-rw-r--r-- | kmicromail/accountitem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kmicromail/accountitem.h b/kmicromail/accountitem.h index faf919d..4c92bfc 100644 --- a/kmicromail/accountitem.h +++ b/kmicromail/accountitem.h | |||
@@ -1,70 +1,72 @@ | |||
1 | #ifndef __ACCOUNT_ITEM | 1 | #ifndef __ACCOUNT_ITEM |
2 | #define __ACCOUNT_ITEM | 2 | #define __ACCOUNT_ITEM |
3 | 3 | ||
4 | |||
4 | #include <qlistview.h> | 5 | #include <qlistview.h> |
5 | #include <qlist.h> | 6 | #include <qlist.h> |
6 | #include <opie2/osmartpointer.h> | 7 | #include <opie2/osmartpointer.h> |
8 | #include <libmailwrapper/mailwrapper.h> | ||
7 | 9 | ||
8 | class POP3wrapper; | 10 | class POP3wrapper; |
9 | class RecMail; | 11 | class RecMail; |
10 | class RecBody; | 12 | class RecBody; |
11 | class QPopupMenu; | 13 | class QPopupMenu; |
12 | class Selectstore; | 14 | class Selectstore; |
13 | class AccountView; | 15 | class AccountView; |
14 | class POP3account; | 16 | class POP3account; |
15 | class NNTPaccount; | 17 | class NNTPaccount; |
16 | class IMAPaccount; | 18 | class IMAPaccount; |
17 | class AbstractMail; | 19 | class AbstractMail; |
18 | class Folder; | 20 | class Folder; |
19 | 21 | ||
20 | #define RECBODYP Opie::Core::OSmartPointer<RecBody> | 22 | #define RECBODYP Opie::Core::OSmartPointer<RecBody> |
21 | 23 | ||
22 | class AccountViewItem : public QListViewItem | 24 | class AccountViewItem : public QListViewItem |
23 | { | 25 | { |
24 | 26 | ||
25 | public: | 27 | public: |
26 | AccountViewItem( AccountView *parent ); | 28 | AccountViewItem( AccountView *parent ); |
27 | AccountViewItem( QListViewItem *parent); | 29 | AccountViewItem( QListViewItem *parent); |
28 | AccountViewItem( QListViewItem *parent , QListViewItem*after ); | 30 | AccountViewItem( QListViewItem *parent , QListViewItem*after ); |
29 | AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,QListViewItem *parent , QListViewItem*after ); | 31 | AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,QListViewItem *parent , QListViewItem*after ); |
30 | 32 | ||
31 | virtual ~AccountViewItem(); | 33 | virtual ~AccountViewItem(); |
32 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&)=0; | 34 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&)=0; |
33 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&)=0; | 35 | virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&)=0; |
34 | virtual QPopupMenu * getContextMenu(){return 0;}; | 36 | virtual QPopupMenu * getContextMenu(){return 0;}; |
35 | virtual void contextMenuSelected(int){} | 37 | virtual void contextMenuSelected(int){} |
36 | virtual AccountView*accountView(); | 38 | virtual AccountView*accountView(); |
37 | virtual bool matchName(const QString&name)const; | 39 | virtual bool matchName(const QString&name)const; |
38 | virtual bool isDraftfolder(); | 40 | virtual bool isDraftfolder(); |
39 | Opie::Core::OSmartPointer<Folder> getFolder() { return folder; }; | 41 | Opie::Core::OSmartPointer<Folder> getFolder() { return folder; }; |
40 | 42 | ||
41 | protected: | 43 | protected: |
42 | AccountViewItem*findSubItem(const QString&path,AccountViewItem*start=0); | 44 | AccountViewItem*findSubItem(const QString&path,AccountViewItem*start=0); |
43 | virtual void init(); | 45 | virtual void init(); |
44 | virtual void removeChilds(); | 46 | virtual void removeChilds(); |
45 | virtual void deleteAllMail(AbstractMail*wrapper,const Opie::Core::OSmartPointer<Folder>&f); | 47 | virtual void deleteAllMail(AbstractMail*wrapper,const Opie::Core::OSmartPointer<Folder>&f); |
46 | static const QString contextName; | 48 | static const QString contextName; |
47 | AccountView*m_Backlink; | 49 | AccountView*m_Backlink; |
48 | Opie::Core::OSmartPointer<Folder> folder; | 50 | Opie::Core::OSmartPointer<Folder> folder; |
49 | }; | 51 | }; |
50 | 52 | ||
51 | class POP3viewItem : public AccountViewItem | 53 | class POP3viewItem : public AccountViewItem |
52 | { | 54 | { |
53 | 55 | ||
54 | public: | 56 | public: |
55 | POP3viewItem( POP3account *a, AccountView *parent ); | 57 | POP3viewItem( POP3account *a, AccountView *parent ); |
56 | virtual ~POP3viewItem(); | 58 | virtual ~POP3viewItem(); |
57 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target ); | 59 | virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target ); |
58 | virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail ); | 60 | virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail ); |
59 | AbstractMail *getWrapper(); | 61 | AbstractMail *getWrapper(); |
60 | virtual QPopupMenu * getContextMenu(); | 62 | virtual QPopupMenu * getContextMenu(); |
61 | virtual void contextMenuSelected(int); | 63 | virtual void contextMenuSelected(int); |
62 | 64 | ||
63 | protected: | 65 | protected: |
64 | POP3account *account; | 66 | POP3account *account; |
65 | virtual void refresh(); | 67 | virtual void refresh(); |
66 | AbstractMail *wrapper; | 68 | AbstractMail *wrapper; |
67 | void disconnect(); | 69 | void disconnect(); |
68 | void setOnOffline(); | 70 | void setOnOffline(); |
69 | }; | 71 | }; |
70 | 72 | ||