author | alwin <alwin> | 2003-12-09 16:59:57 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-09 16:59:57 (UTC) |
commit | 1999708f1480dbdd19e73671fbd9e422883839b6 (patch) (unidiff) | |
tree | 633887e98f12d63455faa5065c0f6a3cc0fb290d /noncore/net/mail/accountview.cpp | |
parent | c6b105a7bf2bfffa847fd84c422ae9a3850c682f (diff) | |
download | opie-1999708f1480dbdd19e73671fbd9e422883839b6.zip opie-1999708f1480dbdd19e73671fbd9e422883839b6.tar.gz opie-1999708f1480dbdd19e73671fbd9e422883839b6.tar.bz2 |
some interface changes
split class defines into more files
Diffstat (limited to 'noncore/net/mail/accountview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp index 1bde886..df9fc11 100644 --- a/noncore/net/mail/accountview.cpp +++ b/noncore/net/mail/accountview.cpp | |||
@@ -1,5 +1,6 @@ | |||
1 | #include "accountview.h" | 1 | #include "accountview.h" |
2 | #include "imapwrapper.h" | 2 | #include "imapwrapper.h" |
3 | #include "mailtypes.h" | ||
3 | #include "defines.h" | 4 | #include "defines.h" |
4 | 5 | ||
5 | IMAPviewItem::IMAPviewItem( IMAPaccount *a, QListView *parent ) | 6 | IMAPviewItem::IMAPviewItem( IMAPaccount *a, QListView *parent ) |
@@ -22,7 +23,7 @@ IMAPwrapper *IMAPviewItem::getWrapper() | |||
22 | return wrapper; | 23 | return wrapper; |
23 | } | 24 | } |
24 | 25 | ||
25 | void IMAPviewItem::refresh(Maillist&) | 26 | void IMAPviewItem::refresh(QList<RecMail>&) |
26 | { | 27 | { |
27 | QList<IMAPFolder> *folders = wrapper->listFolders(); | 28 | QList<IMAPFolder> *folders = wrapper->listFolders(); |
28 | 29 | ||
@@ -39,6 +40,10 @@ void IMAPviewItem::refresh(Maillist&) | |||
39 | } | 40 | } |
40 | } | 41 | } |
41 | 42 | ||
43 | RecBody IMAPviewItem::fetchBody(const RecMail&) | ||
44 | { | ||
45 | return RecBody(); | ||
46 | } | ||
42 | 47 | ||
43 | IMAPfolderItem::~IMAPfolderItem() | 48 | IMAPfolderItem::~IMAPfolderItem() |
44 | { | 49 | { |
@@ -54,12 +59,12 @@ IMAPfolderItem::IMAPfolderItem( IMAPFolder *folderInit, IMAPviewItem *parent ) | |||
54 | setText( 0, folder->getDisplayName() ); | 59 | setText( 0, folder->getDisplayName() ); |
55 | } | 60 | } |
56 | 61 | ||
57 | void IMAPfolderItem::refresh(Maillist&target) | 62 | void IMAPfolderItem::refresh(QList<RecMail>&target) |
58 | { | 63 | { |
59 | imap->getWrapper()->listMessages( folder->getName(),target ); | 64 | imap->getWrapper()->listMessages( folder->getName(),target ); |
60 | } | 65 | } |
61 | 66 | ||
62 | QString IMAPfolderItem::fetchBody(const RecMail&aMail) | 67 | RecBody IMAPfolderItem::fetchBody(const RecMail&aMail) |
63 | { | 68 | { |
64 | return imap->getWrapper()->fetchBody(aMail); | 69 | return imap->getWrapper()->fetchBody(aMail); |
65 | } | 70 | } |
@@ -88,7 +93,7 @@ void AccountView::populate( QList<Account> list ) | |||
88 | void AccountView::refresh(QListViewItem *item) { | 93 | void AccountView::refresh(QListViewItem *item) { |
89 | qDebug("AccountView refresh..."); | 94 | qDebug("AccountView refresh..."); |
90 | if ( item ) { | 95 | if ( item ) { |
91 | Maillist headerlist; | 96 | QList<RecMail> headerlist; |
92 | headerlist.setAutoDelete(true); | 97 | headerlist.setAutoDelete(true); |
93 | AccountViewItem *view = static_cast<AccountViewItem *>(item); | 98 | AccountViewItem *view = static_cast<AccountViewItem *>(item); |
94 | view->refresh(headerlist); | 99 | view->refresh(headerlist); |
@@ -101,11 +106,10 @@ void AccountView::refreshAll() | |||
101 | 106 | ||
102 | } | 107 | } |
103 | 108 | ||
104 | QString AccountView::fetchBody(const RecMail&aMail) | 109 | RecBody AccountView::fetchBody(const RecMail&aMail) |
105 | { | 110 | { |
106 | QString Body; | ||
107 | QListViewItem*item = selectedItem (); | 111 | QListViewItem*item = selectedItem (); |
108 | if (!item) return Body; | 112 | if (!item) return RecBody(); |
109 | AccountViewItem *view = static_cast<AccountViewItem *>(item); | 113 | AccountViewItem *view = static_cast<AccountViewItem *>(item); |
110 | return view->fetchBody(aMail); | 114 | return view->fetchBody(aMail); |
111 | } | 115 | } |