Diffstat (limited to 'noncore/unsupported/mailit/maillist.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/maillist.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/unsupported/mailit/maillist.cpp b/noncore/unsupported/mailit/maillist.cpp index b5325a9..8c34295 100644 --- a/noncore/unsupported/mailit/maillist.cpp +++ b/noncore/unsupported/mailit/maillist.cpp @@ -29,103 +29,103 @@ void MailList::clear() int MailList::count() { return sortedList.count(); } int* MailList::first() { dList *mPtr; if (sortedList.count() == 0) return NULL; mPtr = sortedList.at(0); currentPos = 1; return &(mPtr->serverId); } int* MailList::next() { dList *mPtr; if ( (currentPos) >= sortedList.count()) return NULL; mPtr = sortedList.at(currentPos); currentPos++; return &(mPtr->serverId); } void MailList::sizeInsert(int serverId, uint size) { dList *tempPtr; int x; dList *newEntry = new dList; newEntry->serverId = serverId; newEntry->size = size; for (tempPtr = sortedList.first(); tempPtr != NULL; tempPtr = sortedList.next() ) { if (newEntry->size < tempPtr->size) { x = sortedList.at(); sortedList.insert(x, newEntry); return; } } sortedList.append(newEntry); } -void MailList::moveFront(int serverId, uint size) +void MailList::moveFront(int serverId, uint/* size*/) { dList *currentPtr; uint tempPos; QString temp; tempPos = currentPos; if ( tempPos >= sortedList.count() ) return; currentPtr = sortedList.at(tempPos); while ( ((tempPos+1) < sortedList.count()) && ( currentPtr->serverId != serverId) ) { tempPos++; currentPtr = sortedList.at(tempPos); } if ( (currentPtr != NULL) && (currentPtr->serverId == serverId) ) { temp.setNum(currentPtr->serverId); qWarning("moved to front, message: " + temp); dList *itemPtr = sortedList.take(tempPos); sortedList.insert(currentPos, itemPtr); } } //only works if mail is not already in download -bool MailList::remove(int serverId, uint size) +bool MailList::remove(int serverId, uint /*size*/) { dList *currentPtr; uint tempPos; QString temp; tempPos = currentPos; if ( tempPos >=sortedList.count() ) return FALSE; currentPtr = sortedList.at(tempPos); while ( ((tempPos + 1) < sortedList.count()) && ( currentPtr->serverId != serverId) ) { tempPos++; currentPtr = sortedList.at(tempPos); } if ( (currentPtr != NULL) && (currentPtr->serverId == serverId) ) { temp.setNum(currentPtr->serverId); qWarning("deleted message: " + temp); sortedList.remove(tempPos); return TRUE; } return FALSE; } -void MailList::insert(int pos, int serverId, uint size) +void MailList::insert(int /*pos*/, int /*serverId*/, uint/* size*/) { // sortedList.insert(pos, mPtr); } |