equal
deleted
inserted
replaced
170 class TNotificationRequest |
170 class TNotificationRequest |
171 { |
171 { |
172 public: |
172 public: |
173 TNotificationRequest(CDataMonitoringResponder* aResponder, TSubSessionUniqueId aClientId) |
173 TNotificationRequest(CDataMonitoringResponder* aResponder, TSubSessionUniqueId aClientId) |
174 : iThreshold(0), iResponder(aResponder), iClientId(aClientId), iCancelled(EFalse), iWrapped(EFalse) |
174 : iThreshold(0), iResponder(aResponder), iClientId(aClientId), iCancelled(EFalse), iWrapped(EFalse) |
175 { |
175 { |
176 } |
176 } |
177 |
177 |
178 TUint32 Threshold() const |
178 TUint32 Threshold() const |
179 { |
179 { |
180 return iThreshold; |
180 return iThreshold; |
203 return iCancelled; |
203 return iCancelled; |
204 } |
204 } |
205 |
205 |
206 void SetCancelled() |
206 void SetCancelled() |
207 { |
207 { |
208 iCancelled = ETrue; |
208 iCancelled = ETrue; |
209 } |
209 } |
210 |
210 |
211 TBool Wrapped() const |
211 TBool Wrapped() const |
212 { |
212 { |
213 return iWrapped; |
213 return iWrapped; |
218 iWrapped = aWrapped; |
218 iWrapped = aWrapped; |
219 } |
219 } |
220 |
220 |
221 static TInt CompareThresholds(const TNotificationRequest& aFirst, const TNotificationRequest& aSecond); |
221 static TInt CompareThresholds(const TNotificationRequest& aFirst, const TNotificationRequest& aSecond); |
222 static TBool CompareClientIds(const TNotificationRequest& aFirst, const TNotificationRequest& aSecond); |
222 static TBool CompareClientIds(const TNotificationRequest& aFirst, const TNotificationRequest& aSecond); |
|
223 static TBool CompareClientIdsAndCancelledFlag(const TNotificationRequest& aFirst, const TNotificationRequest& aSecond); |
223 |
224 |
224 private: |
225 private: |
225 TUint32 iThreshold; |
226 TUint32 iThreshold; |
226 CDataMonitoringResponder* iResponder; |
227 CDataMonitoringResponder* iResponder; |
227 TSubSessionUniqueId iClientId; |
228 TSubSessionUniqueId iClientId; |