diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-01 23:09:02 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-01 23:09:02 -0500 |
commit | d4708f7186f4a381646e3d4cfbabf0c51942f43b (patch) | |
tree | 9a98ef0782a9c5ab001071196bf7bb3d6c30d8b3 /tdecore/tdenetworkconnections.h | |
parent | 589db866d81a312fe7e24d5a8f3d818e1d956e4f (diff) | |
download | tdelibs-d4708f7186f4a381646e3d4cfbabf0c51942f43b.tar.gz tdelibs-d4708f7186f4a381646e3d4cfbabf0c51942f43b.zip |
Add cellular modem settings
Diffstat (limited to 'tdecore/tdenetworkconnections.h')
-rw-r--r-- | tdecore/tdenetworkconnections.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h index 3ba5c3be8..ca20f613c 100644 --- a/tdecore/tdenetworkconnections.h +++ b/tdecore/tdenetworkconnections.h @@ -134,6 +134,27 @@ namespace TDEBluetoothConnectionType { }; }; +namespace TDEModemConnectionType { + enum TDEModemConnectionType { + CDMA, + GSM, + Other, + Last = Other + }; +}; + +namespace TDEGSMNetworkType { + enum TDEGSMNetworkType { + Any, + Only3G, + GPRSEdge, + Prefer3G, + Prefer2G, + Other, + Last = Other + }; +}; + namespace TDENetworkParity { enum TDENetworkParity { None, @@ -577,6 +598,44 @@ class TDECORE_EXPORT TDENetworkSerialConfiguration TQ_UINT64 txDelay; }; +class TDECORE_EXPORT TDENetworkCDMAConfiguration +{ + public: + TDENetworkCDMAConfiguration(); + virtual ~TDENetworkCDMAConfiguration(); + + public: + bool valid; + bool secretsValid; + TQString providerDataNumber; + TQString username; + TQString password; + TDENetworkPasswordHandlingFlags::TDENetworkPasswordHandlingFlags passwordFlags; +}; + +class TDECORE_EXPORT TDENetworkGSMConfiguration +{ + public: + TDENetworkGSMConfiguration(); + virtual ~TDENetworkGSMConfiguration(); + + public: + bool valid; + bool secretsValid; + TQString providerDataNumber; + TQString username; + TQString password; + TDENetworkPasswordHandlingFlags::TDENetworkPasswordHandlingFlags passwordFlags; + TQString accessPointName; + TQString networkID; + TDEGSMNetworkType::TDEGSMNetworkType networkType; + TQString pin; + TDENetworkPasswordHandlingFlags::TDENetworkPasswordHandlingFlags pinFlags; + TQ_UINT32 allowedFrequencyBands; + bool allowRoaming; +}; + + class TDENetworkWiFiSecurityConfiguration { public: @@ -817,6 +876,18 @@ class TDECORE_EXPORT TDEBluetoothConnection : public TDENetworkConnection TDEBluetoothConnectionType::TDEBluetoothConnectionType type; }; +class TDECORE_EXPORT TDEModemConnection : public TDENetworkConnection +{ + public: + TDEModemConnection(); + virtual ~TDEModemConnection(); + + public: + TDEModemConnectionType::TDEModemConnectionType type; + TDENetworkCDMAConfiguration cdmaConfig; + TDENetworkGSMConfiguration gsmConfig; +}; + typedef TQPtrList< TDENetworkConnection > TDENetworkConnectionList; class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject |