diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-07-29 06:39:05 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-08-02 00:09:06 (GMT) |
commit | d12f39e50e4144f3272424bb0bff18c857105654 (patch) | |
tree | ffde9a7863c78af2adabcb9c7e85c79d9f79cfc6 /src/network/bearer/qnetworkconfiguration.h | |
parent | 613bc8eb31d8a80b43aa045ab2040b7cb7e0eadf (diff) | |
download | Qt-d12f39e50e4144f3272424bb0bff18c857105654.zip Qt-d12f39e50e4144f3272424bb0bff18c857105654.tar.gz Qt-d12f39e50e4144f3272424bb0bff18c857105654.tar.bz2 |
Use an enum to return the bearer type of a network configuration.
Task-number: QTBUG-12378
Reviewed-by: Alex
Diffstat (limited to 'src/network/bearer/qnetworkconfiguration.h')
-rw-r--r-- | src/network/bearer/qnetworkconfiguration.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/network/bearer/qnetworkconfiguration.h b/src/network/bearer/qnetworkconfiguration.h index 42e8b6a..d9d36fd 100644 --- a/src/network/bearer/qnetworkconfiguration.h +++ b/src/network/bearer/qnetworkconfiguration.h @@ -103,12 +103,25 @@ public: Q_DECLARE_FLAGS(StateFlags, StateFlag) + enum BearerType { + BearerUnknown, + BearerEthernet, + BearerWLAN, + Bearer2G, + BearerCDMA2000, + BearerWCDMA, + BearerHSPA, + BearerBluetooth, + BearerWiMAX + }; + StateFlags state() const; Type type() const; Purpose purpose() const; // Required to maintain source compatibility with Qt Mobility. QT_DEPRECATED inline QString bearerName() const { return bearerTypeName(); } + BearerType bearerType() const; QString bearerTypeName() const; QString identifier() const; |