Bluetooth Framework C++ Edition
CwclGattLocalCharacteristicWriteRequest Class Referenceabstract

The class represents a GATT characteristic write requests. More...

#include <wclBluetooth.h>

Inheritance diagram for CwclGattLocalCharacteristicWriteRequest:
CwclGattLocalCharacteristicRequest

Public Member Functions

 CwclGattLocalCharacteristicWriteRequest (const __int64 Timestamp, const unsigned long Offset, void *const Data, const unsigned long Size, const bool WithResponse)
 Creates new object.
 
virtual ~CwclGattLocalCharacteristicWriteRequest ()
 Frees the write request.
 
int Respond ()
 Sends a response to the connected client in respond to a write request.
 
virtual int RespondWithError (const int Error) override
 Responds to the request with an error.
 
void * GetData () const
 Gets the pointer to the data.
 
 __declspec (property(get=GetData)) void *Data
 Gets the pointer to the data.
 
unsigned long GetSize () const
 Gets the data size.
 
 __declspec (property(get=GetSize)) unsigned long Size
 Gets the data size.
 
bool GetWithResponse () const
 Gets the write operation flag.
 
 __declspec (property(get=GetWithResponse)) bool WithResponse
 Gets the write operation flag.
 
- Public Member Functions inherited from CwclGattLocalCharacteristicRequest
 CwclGattLocalCharacteristicRequest (const __int64 Timestamp, const unsigned long Offset)
 Creates new object.
 
virtual ~CwclGattLocalCharacteristicRequest ()
 Frees the object.
 
unsigned long GetOffset () const
 Gets the data offset.
 
 __declspec (property(get=GetOffset)) unsigned long Offset
 Gets the data offset.
 
__int64 GetTimestamp () const
 Gets the request time stamp.
 
 __declspec (property(get=GetTimestamp)) __int64 Timestamp
 Gets the request time stamp.
 

Protected Member Functions

virtual int HalRespond ()=0
 Sends a response to the connected client in respond to a write request.
 
- Protected Member Functions inherited from CwclGattLocalCharacteristicRequest
void SetProcessed (const int Error)
 Sets the processed flag.
 
int CheckProcessed ()
 Checks if the request has already been processed.
 
virtual int HalRespondWithError (const int Error)=0
 Responds to the request with an error.
 

Detailed Description

The class represents a GATT characteristic write requests.

An application must never create or destroy this class. The class is created and released internally when needed.

See also
CwclGattLocalCharacteristicRequest