summaryrefslogtreecommitdiff
authorharlekin <harlekin>2004-02-29 23:19:13 (UTC)
committer harlekin <harlekin>2004-02-29 23:19:13 (UTC)
commit47cb805563e76732320f082975aad3046be1992a (patch) (unidiff)
treec7dc988659c47166370dfd93d9140d4919c944da
parentdcf152e23f7cc85fe2e46521e07b64e2288efdda (diff)
downloadopie-47cb805563e76732320f082975aad3046be1992a.zip
opie-47cb805563e76732320f082975aad3046be1992a.tar.gz
opie-47cb805563e76732320f082975aad3046be1992a.tar.bz2
little update
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/nntpwrapper.cpp28
1 files changed, 21 insertions, 7 deletions
diff --git a/noncore/net/mail/libmailwrapper/nntpwrapper.cpp b/noncore/net/mail/libmailwrapper/nntpwrapper.cpp
index e73a890..c68964d 100644
--- a/noncore/net/mail/libmailwrapper/nntpwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/nntpwrapper.cpp
@@ -166,7 +166,9 @@ void NNTPwrapper::login()
166 // Global::statusMessage(tr("Error initializing folder")); 166 // Global::statusMessage(tr("Error initializing folder"));
167 mailstorage_free(m_nntp); 167 mailstorage_free(m_nntp);
168 m_nntp = 0; 168 m_nntp = 0;
169
169 } 170 }
171
170} 172}
171 173
172void NNTPwrapper::logout() 174void NNTPwrapper::logout()
@@ -179,19 +181,31 @@ void NNTPwrapper::logout()
179} 181}
180 182
181QList<Folder>* NNTPwrapper::listFolders() { 183QList<Folder>* NNTPwrapper::listFolders() {
184
185
186
187
182 QList<Folder> * folders = new QList<Folder>(); 188 QList<Folder> * folders = new QList<Folder>();
183 folders->setAutoDelete( false ); 189 folders->setAutoDelete( false );
184 clist *result = 0; 190 clist *result = 0;
191 clistcell *current;
192 newsnntp_group_description *list;
185 193
186 // int err = 194 login();
187// if ( err == _NO_ERROR ) { 195 if ( m_nntp ) {
188// current = result->first; 196 mailsession * session = m_nntp->sto_session;
189// for ( current=clist_begin(result);current!=NULL;current=clist_next(current)) { 197 newsnntp * news = ( ( nntp_session_state_data * )session->sess_data )->nntp_session;
190 198 int err = newsnntp_list_newsgroups(news, NULL, &result);
191 199
200 if ( err == NEWSNNTP_NO_ERROR ) {
201 current = result->first;
202 for ( current=clist_begin(result);current!=NULL;current=clist_next(current)) {
203 list = ( newsnntp_group_description* ) current->data;
204 qDebug( list->grp_name );
205 }
192// Folder*inb=new Folder("INBOX","/"); 206// Folder*inb=new Folder("INBOX","/");
193 207 }
194 208 }
195// folders->append(inb); 209// folders->append(inb);
196 return folders; 210 return folders;
197} 211}