summaryrefslogtreecommitdiffstats
path: root/libemailfunctions/networkstatus.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libemailfunctions/networkstatus.h
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libemailfunctions/networkstatus.h')
-rw-r--r--libemailfunctions/networkstatus.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/libemailfunctions/networkstatus.h b/libemailfunctions/networkstatus.h
index 7b29431f8..e42e43482 100644
--- a/libemailfunctions/networkstatus.h
+++ b/libemailfunctions/networkstatus.h
@@ -32,7 +32,7 @@ namespace KPIM {
the machine KDE is running on going from "online" mode to
offline. What this means is left as an exercise for the reader.
*/
-class NetworkStatus : public TQObject, public DCOPObject
+class NetworktqStatus : public TQObject, public DCOPObject
{
Q_OBJECT
@@ -40,7 +40,7 @@ class NetworkStatus : public TQObject, public DCOPObject
/**
* The possible states.
*/
- enum Status {
+ enum tqStatus {
Online, //< The machine now has internet connectivity
Offline //< The machine has no internet connectivity
};
@@ -48,24 +48,24 @@ class NetworkStatus : public TQObject, public DCOPObject
/**
* Destructor.
*/
- ~NetworkStatus();
+ ~NetworktqStatus();
/**
* Returns the only instance of this class.
*/
- static NetworkStatus *self();
+ static NetworktqStatus *self();
/**
* Sets a new status.
*
* @param status The new status.
*/
- void seStatus( Status status );
+ void setqStatus( tqStatus status );
/**
* Returns the current status.
*/
- Status status() const;
+ tqStatus status() const;
k_dcop:
/**
@@ -79,18 +79,18 @@ class NetworkStatus : public TQObject, public DCOPObject
*
* @param status The new status.
*/
- void statusChanged( Status status );
+ void statusChanged( tqStatus status );
protected:
/**
* Constructor. This is protected, so you must use self()
* to get the singleton object of this class.
*/
- NetworkStatus();
+ NetworktqStatus();
private:
- Status mStatus;
- static NetworkStatus *mSelf;
+ tqStatus mtqStatus;
+ static NetworktqStatus *mSelf;
};
}