summaryrefslogtreecommitdiffstats
path: root/kget/transfer.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kget/transfer.h
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kget/transfer.h')
-rw-r--r--kget/transfer.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/kget/transfer.h b/kget/transfer.h
index d528a6a7..17e4aa08 100644
--- a/kget/transfer.h
+++ b/kget/transfer.h
@@ -53,14 +53,15 @@ class TransferList;
class Transfer:public TQObject, public KListViewItem
{
Q_OBJECT
+ TQ_OBJECT
public:
- enum TransferMode { MD_QUEUED, MD_DELAYED, MD_SCHEDULED, MD_NONE, MD_NEW };
+ enum TransferMode { MD_TQUEUED, MD_DELAYED, MD_SCHEDULED, MD_NONE, MD_NEW };
- enum TransferStatus { ST_TRYING, ST_RUNNING, ST_STOPPED, ST_FINISHED };
+ enum TransfertqStatus { ST_TRYING, ST_RUNNING, ST_STOPPED, ST_FINISHED };
enum TransferOperation {
OP_FINISHED, OP_RESUMED, OP_PAUSED, OP_REMOVED, OP_ABORTED,
- OP_QUEUED, OP_SCHEDULED, OP_DELAYED, OP_CONNECTED
+ OP_TQUEUED, OP_SCHEDULED, OP_DELAYED, OP_CONNECTED
};
@@ -113,7 +114,7 @@ public:
{
return speed;
}
- TransferStatus getStatus()const
+ TransfertqStatus gettqStatus()const
{
return status;
}
@@ -126,7 +127,7 @@ public:
{
mode = _mode;
}
- void setStatus(TransferStatus _status)
+ void settqStatus(TransfertqStatus _status)
{
status = _status;
};
@@ -138,7 +139,7 @@ public:
// update methods
void updateAll();
- bool updateStatus(int counter);
+ bool updatetqStatus(int counter);
void showIndividual();
void UpdateRetry();
@@ -219,10 +220,10 @@ private:
unsigned int remainingTimeSec;
TQString remainingTime;
- TransferStatus status;
+ TransfertqStatus status;
TransferMode mode;
- TransferStatus prevStatus;
+ TransfertqStatus prevtqStatus;
TransferMode prevMode;
// how many times have we retried already