TTranpPicture Class Reference

class TTranpPicture

Represents a picture in Unified Picture Format (UPF), a standard for image data transmitted via infrared communication.

An object of this type is used when transmitting pictures using the IrTranP protocol.

A received picture can be saved as a JPEG type for viewing or it can be saved in native UPF format.

Public Member Functions
TTranpPicture()
~TTranpPicture()
IMPORT_C const TDesC8 &Filename()
IMPORT_C voidGetLatticeSize(TLatticeSize &, TInt &, TInt &)
IMPORT_C const TDesC8 *GetThumbNail()
IMPORT_C TIntLoadFromJpeg(const TFileName &)
IMPORT_C TIntLoadFromUPF(const TFileName &)
IMPORT_C const TDesC8 &LongFilename()
IMPORT_C const TDesC8 *Picture()
IMPORT_C TIntSaveAsJpeg(const TFileName &)
IMPORT_C TIntSaveAsUPF(const TFileName &)
IMPORT_C voidSetDesiredLatticeSize(TLatticeSize, TInt, TInt)
IMPORT_C voidSetFilename(const TDesC8 &)
IMPORT_C voidSetLongFilename(const TDesC8 &)
IMPORT_C voidSetTime(const TDesC8 &)
IMPORT_C const TDesC8 &Time()
Private Attributes
TBuf8< 31 >iFilename
HBufC8 *iHeapData
TInt iHeight
TLatticeSize iLatticeSize
TBuf8< 256 >iLongFilename
TUint32 iPadding1
TUint32 iPadding2
TPtrC8 iPicture
TPtrC8 iThumbNail
TBuf8< 14 >iTime
TDesC8 *iUPFPicture
TInt iWidth
TInt iX
TInt iY

Constructor & Destructor Documentation

TTranpPicture()

IMPORT_CTTranpPicture()

Constructor

~TTranpPicture()

IMPORT_C~TTranpPicture()

Destructor

Member Functions Documentation

Filename()

IMPORT_C const TDesC8 &Filename()

Gets the DOS 8.3 format file name of the picture.

GetLatticeSize(TLatticeSize &, TInt &, TInt &)

IMPORT_C voidGetLatticeSize(TLatticeSize &aSize,
TInt &iWidth,
TInt &iHeight
)

Parameters

TLatticeSize & aSize
TInt & iWidth
TInt & iHeight

GetThumbNail()

IMPORT_C const TDesC8 *GetThumbNail()

Returns a pointer to a descriptor containing a thumbnail representation of the image. The thumbnail is in JPEG format.

LoadFromJpeg(const TFileName &)

IMPORT_C TIntLoadFromJpeg(const TFileName &aFileName)

Loads JPEG format image data from the specified file on the host device.

Parameters

const TFileName & aFileNameThe name of the file containing the JPEG format image data.

LoadFromUPF(const TFileName &)

IMPORT_C TIntLoadFromUPF(const TFileName &aFileName)

Loads native UPF format image data from the specified file on the host device.

Parameters

const TFileName & aFileNameThe name of the file containing the native UPF format image data.

LongFilename()

IMPORT_C const TDesC8 &LongFilename()

Returns the file name of the picture in SJIS or as an ISO8859-1 character string.

Picture()

IMPORT_C const TDesC8 *Picture()

Gets a pointer to a non-modifiable descriptor containing the image data. The image is in JPEG format.

SaveAsJpeg(const TFileName &)

IMPORT_C TIntSaveAsJpeg(const TFileName &aFileName)

Saves the image data in JPEG format to the specified file on the host device.

Parameters

const TFileName & aFileNameThe name of the file to contain the JPEG format image data.

SaveAsUPF(const TFileName &)

IMPORT_C TIntSaveAsUPF(const TFileName &aFileName)

Saves the image data in native UPF format to the specified file on the host device.

Parameters

const TFileName & aFileNameThe name of the file to contain the native UPF format image data.

SetDesiredLatticeSize(TLatticeSize, TInt, TInt)

IMPORT_C voidSetDesiredLatticeSize(TLatticeSizeaSize,
TIntiWidth = 0,
TIntiHeight = 0
)

Parameters

TLatticeSize aSize
TInt iWidth = 0
TInt iHeight = 0

SetFilename(const TDesC8 &)

IMPORT_C voidSetFilename(const TDesC8 &aName)

Sets the file name of the picture in DOS 8.3 format.

Parameters

const TDesC8 & aNameThe filename in 8.3 format.

SetLongFilename(const TDesC8 &)

IMPORT_C voidSetLongFilename(const TDesC8 &aName)

Sets the file name of the picture in SJIS or as an ISO8859-1 character string.

Parameters

const TDesC8 & aNameThe filename in long format.

SetTime(const TDesC8 &)

IMPORT_C voidSetTime(const TDesC8 &aTime)

Sets the time stamp attribute iTime to aTime for the picture.

Parameters

const TDesC8 & aTimeThe time stamp in YYYYMMDDHHMMSS character format.

Time()

IMPORT_C const TDesC8 &Time()

Returns the time stamp attribute for the picture

Member Data Documentation

TBuf8< 31 > iFilename

TBuf8< 31 >iFilename[private]

HBufC8 * iHeapData

HBufC8 *iHeapData[private]

TInt iHeight

TInt iHeight[private]

TLatticeSize iLatticeSize

TLatticeSize iLatticeSize[private]

TBuf8< 256 > iLongFilename

TBuf8< 256 >iLongFilename[private]

TUint32 iPadding1

TUint32 iPadding1[private]

TUint32 iPadding2

TUint32 iPadding2[private]

TPtrC8 iPicture

TPtrC8 iPicture[private]

TPtrC8 iThumbNail

TPtrC8 iThumbNail[private]

TBuf8< 14 > iTime

TBuf8< 14 >iTime[private]

TDesC8 * iUPFPicture

TDesC8 *iUPFPicture[private]

TInt iWidth

TInt iWidth[private]

TInt iX

TInt iX[private]

TInt iY

TInt iY[private]