Removed obsolete Qt2's TQList/TQListIterator classes and replaced

with TQt3's TQPtrList/TQPtrListIterator ones.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 976500c80e)
r14.0.x
Michele Calgaro 6 years ago committed by Slávek Banko
parent f2faea9bdc
commit 174892bff2
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -152,9 +152,9 @@ void KBiff::processSetup(const KBiffSetup* setup_, bool run_)
delete setup_;
}
void KBiff::setMailboxList(const TQList<KBiffMailbox>& mailbox_list, unsigned int poll)
void KBiff::setMailboxList(const TQPtrList<KBiffMailbox>& mailbox_list, unsigned int poll)
{
TQList<KBiffMailbox> tmp_list = mailbox_list;
TQPtrList<KBiffMailbox> tmp_list = mailbox_list;
myMUTEX = true;
if (isRunning())

@ -14,7 +14,7 @@
#include <config.h>
#endif
#include <ntqlist.h>
#include <ntqptrlist.h>
#include <kbiffmonitor.h>
#include <setupdlg.h>
@ -45,7 +45,7 @@ public:
void processSetup(const KBiffSetup* setup, bool start);
void readSessionConfig();
void setMailboxList(const TQList<KBiffMailbox>& mailbox_list, unsigned int poll = 60);
void setMailboxList(const TQPtrList<KBiffMailbox>& mailbox_list, unsigned int poll = 60);
virtual bool process(const TQCString& obj, const TQCString& function,
const TQByteArray& data, TQCString& replyType,
@ -96,8 +96,8 @@ private:
protected:
bool myMUTEX;
TQList<KBiffMonitor> monitorList;
TQList<KBiffNotify> notifyList;
TQPtrList<KBiffMonitor> monitorList;
TQPtrList<KBiffNotify> notifyList;
KBiffStatusList statusList;
TQStringList proxyList;

@ -18,7 +18,7 @@
#include <sys/time.h>
#include <ntqobject.h>
#include <ntqlist.h>
#include <ntqptrlist.h>
#include <ntqfileinfo.h>
#ifdef USE_SSL
@ -32,7 +32,7 @@ class TQString;
* @internal
* Internal class to store UIDL list
*/
class KBiffUidlList : public TQList<TQString>
class KBiffUidlList : public TQPtrList<TQString>
{
protected:
int compareItems(Item s1, Item s2)

@ -24,7 +24,7 @@
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqdict.h>
#include <ntqlist.h>
#include <ntqptrlist.h>
#include <ntqwhatsthis.h>
#include <ntqstylesheet.h>
@ -201,7 +201,7 @@ const KBiffURL KBiffSetup::getCurrentMailbox() const
return mailboxTab->getMailbox();
}
const TQList<KBiffMailbox> KBiffSetup::getMailboxList() const
const TQPtrList<KBiffMailbox> KBiffSetup::getMailboxList() const
{
return mailboxTab->getMailboxList();
}
@ -1643,9 +1643,9 @@ const KBiffURL KBiffMailboxTab::getMailbox() const
return url;
}
const TQList<KBiffMailbox> KBiffMailboxTab::getMailboxList() const
const TQPtrList<KBiffMailbox> KBiffMailboxTab::getMailboxList() const
{
TQList<KBiffMailbox> mbox_list;
TQPtrList<KBiffMailbox> mbox_list;
for (TQListViewItem *item = mailboxes->firstChild();
item;

@ -52,7 +52,7 @@ public:
const TQString getProfile() const;
const KBiffURL getCurrentMailbox() const;
const TQList<KBiffMailbox> getMailboxList() const;
const TQPtrList<KBiffMailbox> getMailboxList() const;
const TQString getMailClient() const;
const TQString getRunCommandPath() const;
@ -235,7 +235,7 @@ public:
void setMailbox(const KBiffURL& url);
const KBiffURL getMailbox() const;
const TQList<KBiffMailbox> getMailboxList() const;
const TQPtrList<KBiffMailbox> getMailboxList() const;
public slots:
void readConfig(const TQString& profile);

@ -15,7 +15,7 @@
#endif
#include <ntqframe.h>
#include <ntqlist.h>
#include <ntqptrlist.h>
#include <ntqstring.h>
class TQListView;
@ -39,8 +39,8 @@ protected:
TQString _curMessages;
};
typedef TQList<KBiffStatusItem> KBiffStatusList;
typedef TQListIterator<KBiffStatusItem> KBiffStatusListIterator;
typedef TQPtrList<KBiffStatusItem> KBiffStatusList;
typedef TQPtrListIterator<KBiffStatusItem> KBiffStatusListIterator;
class KBiffStatus : public TQFrame
{

Loading…
Cancel
Save