author | harlekin <harlekin> | 2004-03-05 23:08:46 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-03-05 23:08:46 (UTC) |
commit | 6afcd375a640d5c6888bc111cd1d80a08f554136 (patch) (side-by-side diff) | |
tree | 520b12836ea13ee6e58f36a8851994fcfbe16051 /noncore/net/mail/libmailwrapper/nntpwrapper.cpp | |
parent | b4ec902435df4e3c834b7790c1dc70a235157477 (diff) | |
download | opie-6afcd375a640d5c6888bc111cd1d80a08f554136.zip opie-6afcd375a640d5c6888bc111cd1d80a08f554136.tar.gz opie-6afcd375a640d5c6888bc111cd1d80a08f554136.tar.bz2 |
list newsgroups in nntp config
Diffstat (limited to 'noncore/net/mail/libmailwrapper/nntpwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/nntpwrapper.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/noncore/net/mail/libmailwrapper/nntpwrapper.cpp b/noncore/net/mail/libmailwrapper/nntpwrapper.cpp index 54e0ed4..2d6f9a3 100644 --- a/noncore/net/mail/libmailwrapper/nntpwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/nntpwrapper.cpp @@ -8,6 +8,4 @@ #include <libetpan/libetpan.h> -#include <libetpan/nntpdriver.h> - @@ -193,14 +191,16 @@ void NNTPwrapper::logout() QList<Folder>* NNTPwrapper::listFolders() { - - - QList<Folder> * folders = new QList<Folder>(); folders->setAutoDelete( false ); + +// folders->append(inb); + return folders; +} + + clist * NNTPwrapper::listAllNewsgroups() { + login(); clist *result = 0; clistcell *current; newsnntp_group_description *list; - - login(); if ( m_nntp ) { mailsession * session = m_nntp->sto_session; @@ -209,17 +209,9 @@ QList<Folder>* NNTPwrapper::listFolders() { if ( err == NEWSNNTP_NO_ERROR ) { - current = result->first; - for ( current=clist_begin(result);current!=NULL;current=clist_next(current)) { - list = ( newsnntp_group_description* ) current->data; - qDebug( list->grp_name ); - } -// Folder*inb=new Folder("INBOX","/"); + return result; } } -// folders->append(inb); - return folders; } - void NNTPwrapper::answeredMail(const RecMail&) {} |