Diffstat (limited to 'noncore/net/mail/libmailwrapper/nntpwrapper.cpp') (more/less context) (show 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 @@ -9,4 +9,2 @@ #include <libetpan/libetpan.h> -#include <libetpan/nntpdriver.h> - @@ -194,7 +192,11 @@ 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; @@ -202,4 +204,2 @@ QList<Folder>* NNTPwrapper::listFolders() { newsnntp_group_description *list; - - login(); if ( m_nntp ) { @@ -210,14 +210,6 @@ 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 ); + return result; } -// Folder*inb=new Folder("INBOX","/"); } } -// folders->append(inb); - return folders; -} - |