Changeset View
Changeset View
Standalone View
Standalone View
src/device.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 102 | enum StateChangeReason { UnknownReason = 0, NoReason = 1 , NowManagedReason = 2, NowUnmanagedReason = 3, | |||
---|---|---|---|---|---|
115 | SleepingReason = 37, ConnectionRemovedReason = 38, UserRequestedReason = 39, CarrierReason = 40, | 115 | SleepingReason = 37, ConnectionRemovedReason = 38, UserRequestedReason = 39, CarrierReason = 40, | ||
116 | ConnectionAssumedReason = 41, SupplicantAvailableReason = 42, ModemNotFoundReason = 43, BluetoothFailedReason = 44, | 116 | ConnectionAssumedReason = 41, SupplicantAvailableReason = 42, ModemNotFoundReason = 43, BluetoothFailedReason = 44, | ||
117 | GsmSimNotInserted = 45, GsmSimPinRequired = 46, GsmSimPukRequired = 47, GsmSimWrong = 48 , InfiniBandMode = 49, | 117 | GsmSimNotInserted = 45, GsmSimPinRequired = 46, GsmSimPukRequired = 47, GsmSimWrong = 48 , InfiniBandMode = 49, | ||
118 | DependencyFailed = 50, Br2684Failed = 51, ModemManagerUnavailable = 52, SsidNotFound = 53, SecondaryConnectionFailed = 54, | 118 | DependencyFailed = 50, Br2684Failed = 51, ModemManagerUnavailable = 52, SsidNotFound = 53, SecondaryConnectionFailed = 54, | ||
119 | DcbFcoeFailed = 55, TeamdControlFailed = 56, ModemFailed = 57, ModemAvailable = 58, SimPinIncorrect = 59, | 119 | DcbFcoeFailed = 55, TeamdControlFailed = 56, ModemFailed = 57, ModemAvailable = 58, SimPinIncorrect = 59, | ||
120 | NewActivation = 60, ParentChanged = 61, ParentManagedChanged = 62, | 120 | NewActivation = 60, ParentChanged = 61, ParentManagedChanged = 62, | ||
121 | Reserved = 65536 | 121 | Reserved = 65536 | ||
122 | }; | 122 | }; | ||
123 | Q_ENUM(StateChangeReason) | ||||
123 | 124 | | |||
124 | enum MeteredStatus { | 125 | enum MeteredStatus { | ||
125 | UnknownStatus = 0, /**< The device metered status is unknown. */ | 126 | UnknownStatus = 0, /**< The device metered status is unknown. */ | ||
126 | Yes = 1, /**< The device is metered and the value was statically set. */ | 127 | Yes = 1, /**< The device is metered and the value was statically set. */ | ||
127 | No = 2, /**< The device is not metered and the value was statically set. */ | 128 | No = 2, /**< The device is not metered and the value was statically set. */ | ||
128 | GuessYes = 3, /**< The device is metered and the value was guessed. */ | 129 | GuessYes = 3, /**< The device is metered and the value was guessed. */ | ||
129 | GuessNo = 4 /**< The device is not metered and the value was guessed. */ | 130 | GuessNo = 4 /**< The device is not metered and the value was guessed. */ | ||
130 | }; | 131 | }; | ||
132 | Q_ENUM(MeteredStatus) | ||||
131 | 133 | | |||
132 | /** | 134 | /** | ||
133 | * Possible device capabilities | 135 | * Possible device capabilities | ||
134 | */ | 136 | */ | ||
135 | enum Capability { | 137 | enum Capability { | ||
136 | IsManageable = 0x1, /**< denotes that the device can be controlled by this API */ | 138 | IsManageable = 0x1, /**< denotes that the device can be controlled by this API */ | ||
137 | SupportsCarrierDetect = 0x2 /**< the device informs us when it is plugged in to the medium */ | 139 | SupportsCarrierDetect = 0x2 /**< the device informs us when it is plugged in to the medium */ | ||
138 | }; | 140 | }; | ||
▲ Show 20 Lines • Show All 440 Lines • ▼ Show 20 Line(s) | 580 | private: | |||
579 | Q_DECLARE_PRIVATE(DeviceStateReason) | 581 | Q_DECLARE_PRIVATE(DeviceStateReason) | ||
580 | 582 | | |||
581 | DeviceStateReasonPrivate *const d_ptr; | 583 | DeviceStateReasonPrivate *const d_ptr; | ||
582 | }; | 584 | }; | ||
583 | 585 | | |||
584 | } | 586 | } | ||
585 | 587 | | |||
586 | #endif | 588 | #endif | ||
587 | |