1 #ifndef NETWORKSTATUS_COMMON_H
2 #define NETWORKSTATUS_COMMON_H
4 #include <qstringlist.h>
8 namespace NetworkStatus
10 enum EnumStatus
{ NoNetworks
= 1, Unreachable
, OfflineDisconnected
, OfflineFailed
, ShuttingDown
, Offline
, Establishing
, Online
};
11 enum EnumRequestResult
{ RequestAccepted
= 1, Connected
, UserRefused
, Unavailable
};
12 enum EnumOnDemandPolicy
{ All
, User
, None
, Permanent
};
16 // status of the network
18 // policy for on-demand usage as defined by the service
19 EnumOnDemandPolicy onDemandPolicy
;
20 // identifier for the service
22 // indicate that the connection is to 'the internet' - similar to default gateway in routing
24 // list of netmasks that the network connects to - overridden by above internet
26 // for future expansion consider
27 // EnumChargingModel - FlatRate, TimeCharge, VolumeCharged
28 // EnumLinkStatus - for WLANs - VPOOR, POOR, AVERAGE, GOOD, EXCELLENT
32 QDataStream
& operator>> ( QDataStream
& s
, NetworkStatus::Properties
&p
);
33 QDataStream
& operator<< ( QDataStream
& s
, const NetworkStatus::Properties p
);