|
||
class CObexNullObject : public CObexBaseObject;
Concrete OBEX object with NULL data representation. Use when only the headers of an object are required, and the data (if any) can safely be discarded.
CBase
-
Base class for all classes to be instantiated on the heap.
CObexBaseObject
- Objects of this class are used to describe the objects to be transferred and tho...
CObexNullObject
- Concrete OBEX object with NULL data representation. Use when only the headers of...
Defined in CObexNullObject
:
DataSize()
GetData(TInt,TDes8 &)
To return "NULL" data, we simply set aDes.Size = 0 NewData(TInt,TDes8 &)
In order to appear to consume the data, we don't set aDes.Size = 0 NewL()
Allocates and constructs a new null object.ResetData()
Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Inherited from CObexBaseObject
:
AddHeaderL(CObexHeader &)
Adds a CObexHeader into the CObexHeaderSet
AddHttpL(const TDesC8 &)
Add an Http header.AppParam()const
Gets the object's Application Parameters attributeBytesReceived()
Returns the number of bytes of the body of the object transferred while receivin...BytesSent()
Returns the number of bytes of the body of the object transferred so far while s...Description()
Gets the object's Description attribute.EComplete
EContinue
EError
ELastPacket
HeaderMask()
Returns the currently set header mask. This defaults to 0xFF (i.e. allow everyth...HeaderSet()
HeaderSet()const
Http()const
Firstly updates the iHttp list, ensuring that the entries are the same as those ...Length()
Gets the object's Length attribute.Name()
Gets the object's Name attribute.Reset()
Resets the object, to make it represent nothing.SetAppParamL(const TDesC8 &)
Sets the Application Parameters attribute of the object.SetDescriptionL(const TDesC &)
Sets the Description attribute of the object.SetHeaderMask(const TObexHeaderMask)
Sets the header mask. aHeaderMask is built up by bit-wise ‘or’ing any of the K...SetLengthL(const TUint32)
Sets the Length attribute of the object, in bytes.SetNameL(const TDesC &)
Sets the Name attribute of the object.SetTargetL(const TDesC8 &)
Sets the Target attribute of the object.SetTimeL(const TTime)
Sets the Time attribute of the object (stored in UTC).SetTypeL(const TDesC8 &)
Sets the Type attribute of the object.TProgress
Target()
Gets the object's Target attribute.Time()
Returns the time attribute of the object in local time. Returns TTime (0) if no ...Type()
Gets the object's Type attribute.ValidHeaders()
Returns the current valid header mask. This allows inspection of the current set...IMPORT_C static CObexNullObject* NewL();
Allocates and constructs a new null object.
|
private: virtual void GetData(TInt aPos, TDes8 &aDes);
To return "NULL" data, we simply set aDes.Size = 0
|
private: virtual void NewData(TInt aPos, TDes8 &aDes);
In order to appear to consume the data, we don't set aDes.Size = 0
|
private: virtual void ResetData();