summaryrefslogtreecommitdiff
path: root/core/SystemStatus.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/SystemStatus.h')
-rw-r--r--core/SystemStatus.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/core/SystemStatus.h b/core/SystemStatus.h
index 1c3adc8..657720d 100644
--- a/core/SystemStatus.h
+++ b/core/SystemStatus.h
@@ -466,7 +466,6 @@ public:
int32_t type=0,
std::string typeName="",
string subTypeName="",
- bool available=false,
bool connected=false,
bool roaming=false) :
NetworkInfoDataItemBase(
@@ -474,7 +473,7 @@ public:
type,
typeName,
subTypeName,
- available,
+ connected && (!roaming),
connected,
roaming),
mSrcObjPtr(nullptr) {}
@@ -484,15 +483,7 @@ public:
mType = itemBase.getType();
}
inline bool equals(const SystemStatusNetworkInfo& peer) {
- if ((mAllTypes == peer.mAllTypes) &&
- (mTypeName == peer.mTypeName) &&
- (mSubTypeName == peer.mSubTypeName) &&
- (mAvailable == peer.mAvailable) &&
- (mConnected == peer.mConnected) &&
- (mRoaming == peer.mRoaming)) {
- return true;
- }
- return false;
+ return (mAllTypes == peer.mAllTypes);
}
inline virtual SystemStatusItemBase& collate(SystemStatusItemBase& curInfo) {
uint64_t allTypes = (static_cast<SystemStatusNetworkInfo&>(curInfo)).mAllTypes;