Notification handler for the base local device snapshot handling.
More...
|
virtual CPNS::boolean | OnBaseLocalDevice_RequestCollectSnapshotData (CPNS::IBaseLocalDevice *const pNotifiedObject, CPNS::uint16 const wRequestID, CPNS::Enums::SnapshotTypes const type, CPNS::uint32 const dwOffset, CPNS::uint32 const dwContextData, CPNS::uint16 const wMaxBlockSize)=0 |
| Called by the CHAI to request snapshot data related to the device This method should call IBaseLocalDevice::Reply_InvalidRequest | IBaseLocalDevice::Reply_RequestCollectSnapshotData. More...
|
|
virtual CPNS::boolean | OnBaseLocalDevice_RequestRestoreSnapshotData (CPNS::IBaseLocalDevice *const pNotifiedObject, CPNS::uint16 const wRequestID, CPNS::Enums::SnapshotTypes const type, CPNS::uint32 const dwOffset, CPNS::uint32 const dwContextData, CPNS::uint16 const wBlockSize, CPNS::boolean const fLastBlock, CPNS::byte const *const pBlockData)=0 |
| Called by the CHAI to restore snapshot data related to the device This method should call IBaseLocalDevice::Reply_InvalidRequest | IBaseLocalDevice::Reply_RequestRestoreSnapshotData. More...
|
|
Notification handler for the base local device snapshot handling.
- See Also
- IBaseLocalDevice::SetSnapshotNotificationHandler
virtual CPNS::boolean CPNS::IBaseLocalDevice_SnapshotNotificationHandler::OnBaseLocalDevice_RequestCollectSnapshotData |
( |
CPNS::IBaseLocalDevice *const |
pNotifiedObject, |
|
|
CPNS::uint16 const |
wRequestID, |
|
|
CPNS::Enums::SnapshotTypes const |
type, |
|
|
CPNS::uint32 const |
dwOffset, |
|
|
CPNS::uint32 const |
dwContextData, |
|
|
CPNS::uint16 const |
wMaxBlockSize |
|
) |
| |
|
pure virtual |
Called by the CHAI to request snapshot data related to the device This method should call IBaseLocalDevice::Reply_InvalidRequest | IBaseLocalDevice::Reply_RequestCollectSnapshotData.
- Returns
- FALSE to signal a not supported request, TRUE if the request is supported
- Parameters
-
[in] | pNotifiedObject | Pointer to the requested local device |
[in] | wRequestID | ID of the request, must be passed to the corresponding IBaseLocalDevice::Reply_Request* method |
[in] | type | Requested snapshot information type |
[in] | dwOffset | Data offset. First call is done with an offset 0. |
[in] | dwContextData | Context data related to the collected device. 0 during the 1st call, then value transmitted with the previous reply |
[in] | wMaxBlockSize | Maximum size of the data block |
virtual CPNS::boolean CPNS::IBaseLocalDevice_SnapshotNotificationHandler::OnBaseLocalDevice_RequestRestoreSnapshotData |
( |
CPNS::IBaseLocalDevice *const |
pNotifiedObject, |
|
|
CPNS::uint16 const |
wRequestID, |
|
|
CPNS::Enums::SnapshotTypes const |
type, |
|
|
CPNS::uint32 const |
dwOffset, |
|
|
CPNS::uint32 const |
dwContextData, |
|
|
CPNS::uint16 const |
wBlockSize, |
|
|
CPNS::boolean const |
fLastBlock, |
|
|
CPNS::byte const *const |
pBlockData |
|
) |
| |
|
pure virtual |
Called by the CHAI to restore snapshot data related to the device This method should call IBaseLocalDevice::Reply_InvalidRequest | IBaseLocalDevice::Reply_RequestRestoreSnapshotData.
- Returns
- FALSE to signal a not supported request, TRUE if the request is supported
- Parameters
-
[in] | pNotifiedObject | Pointer to the requested local device |
[in] | wRequestID | ID of the request, must be passed to the corresponding IBaseLocalDevice::Reply_Request* method |
[in] | type | Snapshot data information type |
[in] | dwOffset | Data block offset. First call is done with an offset 0. |
[in] | dwContextData | Context data related to the collected device. 0 during the 1st call, then value transmitted with the previous reply |
[in] | wBlockSize | Data block size |
[in] | fLastBlock | TRUE if this is the last block |
[in] | pBlockData | Pointer to the data block |