#include <mw/mifareclassicdatablock.h>
class CMifareClassicDataBlock : public CBase |
Public Member Functions | |
---|---|
~CMifareClassicDataBlock() | |
IMPORT_C void | Copy(const CMifareClassicDataBlock &) |
HBufC8 * | ExportDataL() |
HBufC8 * | ExportDataLC() |
IMPORT_C TInt | ImportData(TInt32, TInt8) |
TInt | ImportData(const TDesC8 &) |
TBool | IsValueBlock() |
IMPORT_C CMifareClassicDataBlock * | NewL() |
IMPORT_C CMifareClassicDataBlock * | NewL(const CMifareClassicDataBlock &) |
IMPORT_C CMifareClassicDataBlock * | NewL(const TDesC8 &) |
IMPORT_C CMifareClassicDataBlock * | NewL(TInt32, TInt8) |
IMPORT_C CMifareClassicDataBlock * | NewLC() |
IMPORT_C CMifareClassicDataBlock * | NewLC(const CMifareClassicDataBlock &) |
IMPORT_C CMifareClassicDataBlock * | NewLC(const TDesC8 &) |
IMPORT_C CMifareClassicDataBlock * | NewLC(TInt32, TInt8) |
IMPORT_C TBool | operator!=(const CMifareClassicDataBlock &) |
IMPORT_C TBool | operator==(const CMifareClassicDataBlock &) |
This helper class provides easy access to Mifare classic data blocks.
{nfctagextension.lib}
IMPORT_C void | Copy | ( | const CMifareClassicDataBlock & | aDataBlock | ) |
Copies data from specified CMifareClassicDataBlock to this CMifareClassicDataBlock and replaces any existing data.
Parameter | Description |
---|---|
aDataBlock | Data block from which content is copied to this object. |
Imports new data to this object by initializing it to represent value block. This method will overwrite all current data of the block.
Parameter | Description |
---|---|
aValue | Value which will be saved to the value block. |
aAddress | Address which will be saved to the value block. |
Returns: May return with one of the system wide error codes.
IMPORT_C CMifareClassicDataBlock * | NewL | ( | ) | [static] |
Creates a new instance of this class. May leave with one of the system wide error codes.
Returns: Pointer to the newly created instance.
IMPORT_C CMifareClassicDataBlock * | NewL | ( | const CMifareClassicDataBlock & | aDataBlock | ) | [static] |
Creates a new instance of this class by copying contents of already created object. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aDataBlock | Data block which content is copied to this object. |
Returns: Pointer to the newly created instance.
IMPORT_C CMifareClassicDataBlock * | NewL | ( | const TDesC8 & | aData | ) | [static] |
Creates a new instance of this class by importing data from a descriptor. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aData | Descriptor from which data is imported to this object. |
Returns: Pointer to the newly created instance.
IMPORT_C CMifareClassicDataBlock * | NewL | ( | TInt32 | aValue, |
TInt8 | aAddress | |||
) | [static] |
Creates a new instance of this class by initializing it to represent value block. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aValue | Value which will be saved to the value block. |
aAddress | Address which will be saved to the value block. |
Returns: Pointer to the newly created instance.
IMPORT_C CMifareClassicDataBlock * | NewLC | ( | ) | [static] |
Creates a new instance of this class. May leave with one of the system wide error codes.
Returns: Pointer to the newly created instance.
IMPORT_C CMifareClassicDataBlock * | NewLC | ( | const CMifareClassicDataBlock & | aDataBlock | ) | [static] |
Creates a new instance of this class by copying contents of already created object. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aDataBlock | Data block which content is copied to this object. |
Returns: Pointer to the newly created instance.
IMPORT_C CMifareClassicDataBlock * | NewLC | ( | const TDesC8 & | aData | ) | [static] |
Creates a new instance of this class by importing data from a descriptor. May leave with one of the system wide error codes.
Returns: Pointer to the newly created instance.
IMPORT_C CMifareClassicDataBlock * | NewLC | ( | TInt32 | aValue, |
TInt8 | aAddress | |||
) | [static] |
Creates a new instance of this class by initializing it to represent value block. May leave with one of the system wide error codes.
Parameter | Description |
---|---|
aValue | Value which will be saved to the value block. |
aAddress | Address which will be saved to the value block. |
Returns: Pointer to the newly created instance.
IMPORT_C TBool | operator!= | ( | const CMifareClassicDataBlock & | aDataBlock | ) | const |
Determines whether this CMifareClassicDataBlock is not equal with specified CMifareClassicDataBlock.
Parameter | Description |
---|---|
aDataBlock | CMifareClassicDataBlock which is compared to this CMifareClassicDataBlock. |
EFalse | If blocks are equal. |
ETrue | If blocks are not equal. |
IMPORT_C TBool | operator== | ( | const CMifareClassicDataBlock & | aDataBlock | ) | const |
Determines whether this CMifareClassicDataBlock is equal with specified CMifareClassicDataBlock.
Parameter | Description |
---|---|
aDataBlock | CMifareClassicDataBlock which is compared to this CMifareClassicDataBlock. |
EFalse | If block are not equal. |
ETrue | If blocks are equal. |