From 9c02dbb59ce57c68dc177d9294b980bf114a3e11 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 15:59:03 -0500 Subject: Update to TDE R14 API --- doc/html/showrecord_8cpp-source.html | 114 +++++++++++++++++------------------ 1 file changed, 57 insertions(+), 57 deletions(-) (limited to 'doc/html/showrecord_8cpp-source.html') diff --git a/doc/html/showrecord_8cpp-source.html b/doc/html/showrecord_8cpp-source.html index ed0fbe4..e77ccc8 100644 --- a/doc/html/showrecord_8cpp-source.html +++ b/doc/html/showrecord_8cpp-source.html @@ -48,7 +48,7 @@ 00031 { 00032 } 00033 -00034 void ShowRecord::saveOptions( QDomDocument& doc, QDomElement& parent ) +00034 void ShowRecord::saveOptions( TQDomDocument& doc, TQDomElement& parent ) 00035 { 00036 //Loop over all mail items 00037 for( ShowRecordElem* pElem = first(); pElem; pElem = next() ) @@ -58,19 +58,19 @@ 00041 } 00042 } 00043 -00044 void ShowRecord::readStoredMails( QDomElement& parent ) +00044 void ShowRecord::readStoredMails( TQDomElement& parent ) 00045 { 00046 //clear the list 00047 clear(); 00048 00049 //get first DOM node (mail) -00050 QDomNode n = parent.firstChild(); +00050 TQDomNode n = parent.firstChild(); 00051 00052 //iterate over all mail items stored in the given account 00053 while( !n.isNull() ) 00054 { 00055 //get element of the current node -00056 QDomElement e = n.toElement(); +00056 TQDomElement e = n.toElement(); 00057 00058 //create mail object 00059 ShowRecordElem* pElem = new ShowRecordElem(); @@ -121,7 +121,7 @@ 00104 { 00105 MailNumberList_Type list; //contains the numbers of selected mails 00106 ShowRecordElem* mail; //mail from which we want to get the number (if selected) -00107 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00107 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00108 00109 //iterate over all mails 00110 while( ( mail = it.current() ) != NULL ) @@ -139,7 +139,7 @@ 00122 00123 void ShowRecord::removeMail( int number ) 00124 { -00125 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00125 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00126 ShowRecordElem* mail; //current mail 00127 00128 //looking for the mail with the number 'number' @@ -154,10 +154,10 @@ 00137 } 00138 } 00139 -00140 QStringList ShowRecord::getSelectedSubjects( ) const +00140 TQStringList ShowRecord::getSelectedSubjects( ) const 00141 { -00142 QStringList subjects; //contains the subjects -00143 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00142 TQStringList subjects; //contains the subjects +00143 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00144 ShowRecordElem* mail; //current mail 00145 00146 //iterate over all mails @@ -174,12 +174,12 @@ 00157 return subjects; 00158 } 00159 -00160 QString ShowRecord::getSenderOf( int number ) const +00160 TQString ShowRecord::getSenderOf( int number ) const 00161 { -00162 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00162 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00163 ShowRecordElem* mail; //current mail 00164 bool found = false; //True, when the wanted mail was found -00165 QString sender; //sender of the wanted mail +00165 TQString sender; //sender of the wanted mail 00166 00167 //looking for the mail with the number 'number' 00168 while( ( mail = it.current() ) != NULL && !found ) @@ -197,12 +197,12 @@ 00180 return sender; 00181 } 00182 -00183 QString ShowRecord::getDateOf( int number ) const +00183 TQString ShowRecord::getDateOf( int number ) const 00184 { -00185 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00185 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00186 ShowRecordElem* mail; //current mail 00187 bool found = false; //True, when the wanted mail was found -00188 QString date; //sent date of the wanted mail +00188 TQString date; //sent date of the wanted mail 00189 00190 //looking for the mail with the number 'number' 00191 while( ( mail = it.current() ) != NULL && !found ) @@ -221,12 +221,12 @@ 00204 00205 } 00206 -00207 QString ShowRecord::getSizeOf( int number ) const +00207 TQString ShowRecord::getSizeOf( int number ) const 00208 { -00209 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00209 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00210 ShowRecordElem* mail; //current mail 00211 bool found = false; //True, when the wanted mail was found -00212 QString size; //size of the wanted mail +00212 TQString size; //size of the wanted mail 00213 00214 //looking for the mail with the number 'number' 00215 while( ( mail = it.current() ) != NULL && !found ) @@ -245,12 +245,12 @@ 00228 00229 } 00230 -00231 QString ShowRecord::getSubjectOf( int number ) const +00231 TQString ShowRecord::getSubjectOf( int number ) const 00232 { -00233 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00233 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00234 ShowRecordElem* mail; //current mail 00235 bool found = false; //True, when the wanted mail was found -00236 QString subject; //subject of the wanted mail +00236 TQString subject; //subject of the wanted mail 00237 00238 //looking for the mail with the number 'number' 00239 while( ( mail = it.current() ) != NULL && !found ) @@ -269,12 +269,12 @@ 00252 00253 } 00254 -00255 QString ShowRecord::decodeMailBody( QByteArray body, int number, bool preferHTML ) const +00255 TQString ShowRecord::decodeMailBody( TQByteArray body, int number, bool preferHTML ) const 00256 { -00257 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00257 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00258 ShowRecordElem* mail; //current mail 00259 bool found = false; //True, when the wanted mail was found -00260 QString mailbody; //decoded mail +00260 TQString mailbody; //decoded mail 00261 00262 //looking for the mail with the number 'number' 00263 while( ( mail = it.current() ) != NULL && !found ) @@ -293,9 +293,9 @@ 00276 00277 } 00278 -00279 bool ShowRecord::hasMail( QString uid ) +00279 bool ShowRecord::hasMail( TQString uid ) 00280 { -00281 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00281 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00282 ShowRecordElem* mail; //current mail 00283 bool found = false; //True, when the wanted mail was found 00284 @@ -313,7 +313,7 @@ 00296 return found; 00297 } 00298 -00299 void ShowRecord::appendNewMail( int number, QString uid, bool isNew ) +00299 void ShowRecord::appendNewMail( int number, TQString uid, bool isNew ) 00300 { 00301 //create new mail 00302 ShowRecordElem* newMail = new ShowRecordElem( number, uid, isNew ); @@ -325,7 +325,7 @@ 00308 00309 void ShowRecord::printMailList( ) 00310 { -00311 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00311 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00312 ShowRecordElem* mail; //current mail 00313 00314 while( ( mail = it.current() ) ) @@ -341,7 +341,7 @@ 00324 00325 void ShowRecord::setSize( int number, long size ) 00326 { -00327 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00327 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00328 ShowRecordElem* mail; //current mail 00329 bool found = false; //True, when the wanted mail was found 00330 @@ -364,7 +364,7 @@ 00347 { 00348 MailNumberList_Type list; //contains the numbers of the new mails 00349 ShowRecordElem* mail; //mail from which we want to get the number (if new) -00350 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00350 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00351 00352 //iterate over all mails 00353 while( ( mail = it.current() ) != NULL ) @@ -380,9 +380,9 @@ 00363 return list; 00364 } 00365 -00366 void ShowRecord::setHeader( int number, QString header ) +00366 void ShowRecord::setHeader( int number, TQString header ) 00367 { -00368 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00368 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00369 ShowRecordElem* mail; //current mail 00370 bool found = false; //True, when the wanted mail was found 00371 @@ -401,11 +401,11 @@ 00384 } 00385 } 00386 -00387 QStringList ShowRecord::getUIDsOfOldMails( ) +00387 TQStringList ShowRecord::getUIDsOfOldMails( ) 00388 { -00389 QStringList list; //contains the UIDs of the old mails +00389 TQStringList list; //contains the UIDs of the old mails 00390 ShowRecordElem* mail; //mail from which we want to get the uid (if old) -00391 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00391 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00392 00393 //iterate over all mails 00394 while( ( mail = it.current() ) != NULL ) @@ -421,12 +421,12 @@ 00404 return list; 00405 } 00406 -00407 QString ShowRecord::getHeaderOf( QString uid ) +00407 TQString ShowRecord::getHeaderOf( TQString uid ) 00408 { -00409 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00409 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00410 ShowRecordElem* mail; //current mail 00411 bool found = false; //True, when the wanted mail was found -00412 QString header; //header of the wanted mail +00412 TQString header; //header of the wanted mail 00413 00414 //looking for the mail with the UID 'uid' 00415 while( ( mail = it.current() ) != NULL && !found ) @@ -444,9 +444,9 @@ 00427 return header; 00428 } 00429 -00430 void ShowRecord::setHeader( QString uid, QString header ) +00430 void ShowRecord::setHeader( TQString uid, TQString header ) 00431 { -00432 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00432 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00433 ShowRecordElem* mail; //current mail 00434 bool found = false; //True, when the wanted mail was found 00435 @@ -467,7 +467,7 @@ 00450 00451 int ShowRecord::getNumberNewMails( ) 00452 { -00453 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00453 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00454 ShowRecordElem* mail; //current mail 00455 int number = 0; //number of new mails 00456 @@ -491,7 +491,7 @@ 00474 00475 long ShowRecord::getTotalSize( ) 00476 { -00477 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00477 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00478 ShowRecordElem* mail; //current mail 00479 long size = 0; //total size of all mails 00480 @@ -506,9 +506,9 @@ 00489 return size; 00490 } 00491 -00492 void ShowRecord::fillMailListView( KshowmailView * view, QString & account ) +00492 void ShowRecord::fillMailListView( KshowmailView * view, TQString & account ) 00493 { -00494 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00494 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00495 ShowRecordElem* mail; //current mail 00496 00497 //iterate over all mails and order the mail to create a list view item @@ -518,23 +518,23 @@ 00501 ++it; 00502 00503 //insert list view item -00504 QString number = QString( "%1" ).arg( mail->number() ); -00505 QString from = mail->from(); -00506 QString to = mail->to(); -00507 QString subject = mail->subject(); -00508 QString date = mail->date(); -00509 QString size = QString( "%1" ).arg( mail->size() ); -00510 QString content = mail->content(); -00511 QString state = mail->state(); -00512 QString time = mail->strUnixTime(); +00504 TQString number = TQString( "%1" ).arg( mail->number() ); +00505 TQString from = mail->from(); +00506 TQString to = mail->to(); +00507 TQString subject = mail->subject(); +00508 TQString date = mail->date(); +00509 TQString size = TQString( "%1" ).arg( mail->size() ); +00510 TQString content = mail->content(); +00511 TQString state = mail->state(); +00512 TQString time = mail->strUnixTime(); 00513 mail->setViewItem( view->insertMail( number, account, from, to, subject, date, size, content, state, time ) ); 00514 } 00515 00516 } 00517 -00518 int ShowRecord::showSelectedHeaders( QString& account ) +00518 int ShowRecord::showSelectedHeaders( TQString& account ) 00519 { -00520 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00520 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00521 ShowRecordElem* mail; //current mail 00522 int showNextHeader = ShowRecordElem::continueShowHeaders; //return value of ShowRecordElem::showHeader() 00523 @@ -551,9 +551,9 @@ 00534 return showNextHeader == ShowRecordElem::continueShowHeaders ? ShowRecord::continueShowHeaders : ShowRecord::cancelShowHeaders; 00535 } 00536 -00537 bool ShowRecord::isNew( QString uid ) const +00537 bool ShowRecord::isNew( TQString uid ) const 00538 { -00539 QPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list +00539 TQPtrListIterator<ShowRecordElem> it( *this ); //iterator for the mail list 00540 ShowRecordElem* mail; //current mail 00541 bool found = false; //True, when the wanted mail was found 00542 bool newMail = false; //at time we have not found it, therefore the return value is false -- cgit v1.2.1