CStreamingLinkModel Class Reference

class CStreamingLinkModel : public CBase

Inherits from

Constructor & Destructor Documentation

CStreamingLinkModel()

CStreamingLinkModel ( ) [private]

C++ default constructor.

~CStreamingLinkModel()

IMPORT_C ~CStreamingLinkModel ( ) [virtual]

Destructor.

Member Functions Documentation

AreAllLinksLocal()

IMPORT_C TBool AreAllLinksLocal ( )

Returns if all the links in the file are local @

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

CreateNewLinkFileL(const TDesC &, MDesCArray *, TBool)

IMPORT_C TInt CreateNewLinkFileL ( const TDesC & aNewLinkFileName,
MDesCArray * aLinkArray,
TBool aOverWrite = EFalse
)
Creates new RAM file
Since
2.0

Parameters

const TDesC & aNewLinkFileName
MDesCArray * aLinkArray
TBool aOverWrite = EFalse

FileHandleExists(RFile &)

TBool FileHandleExists ( RFile & aFile ) [private]
Determines presence of file handle.
Since
9.2

Parameters

RFile & aFile file handle

FreeFilehandle()

IMPORT_C void FreeFilehandle ( )
Frees model's filehandle.
Since
3.0

GetNextLinkL(TDes &, TBool &, TBool)

IMPORT_C TInt GetNextLinkL ( TDes & aLink,
TBool & aLocalFile,
TBool aParse = ETrue
)
Gets next link from opened RAM file.
Since
2.0

Parameters

TDes & aLink
TBool & aLocalFile
TBool aParse = ETrue

IsSeekable()

IMPORT_C TBool IsSeekable ( )

MaxLinkLength()

IMPORT_C TInt MaxLinkLength ( )
Returns max link length in opened RAM file
Since
2.0

MultiLinksCount()

IMPORT_C TInt MultiLinksCount ( )
Returns number of links in opened RAM file
Since
3.2

NewL()

IMPORT_C CStreamingLinkModel * NewL ( ) [static]

Two-phased constructor.

OpenAsxFileL(const TDesC &, TBool)

IMPORT_C TInt OpenAsxFileL ( const TDesC & aLinkFileName,
TBool aEnableFiltering = ETrue
)
Opens and reads ASX file to buffer.
Since
9.2

Parameters

const TDesC & aLinkFileName Asx file
TBool aEnableFiltering = ETrue

OpenAsxFileL(RFile &, TBool)

IMPORT_C TInt OpenAsxFileL ( RFile & aFile,
TBool aEnableFiltering = ETrue
)
Opens and reads ASX file to buffer.
Since
9.2

Parameters

RFile & aFile file handle
TBool aEnableFiltering = ETrue

OpenLinkFileL(const TDesC &, TBool)

IMPORT_C TInt OpenLinkFileL ( const TDesC & aLinkFileName,
TBool aEnableFiltering = ETrue
)
Opens and reads RAM file to buffer.
Since
2.0

Parameters

const TDesC & aLinkFileName
TBool aEnableFiltering = ETrue

OpenLinkFileL(RFile &, TBool)

IMPORT_C TInt OpenLinkFileL ( RFile & aFile,
TBool aEnableFiltering = ETrue
)
Opens and reads RAM file to buffer.
Since
9.2

Parameters

RFile & aFile file handle
TBool aEnableFiltering = ETrue

PopulateAsxLinksL(CAsxParser *, TBool)

TInt PopulateAsxLinksL ( CAsxParser * aAsxParser,
TBool aEnableFiltering
) [private]
Parse the Asx file and add the link(s) to buffer.
Since
9.2

Parameters

CAsxParser * aAsxParser
TBool aEnableFiltering

PopulateRamLinksL(RFile, TBool)

TInt PopulateRamLinksL ( RFile aRamFile,
TBool aEnableFiltering
) [private]
Parse the ram file and add the link(s) to buffer.
Since
9.2

Parameters

RFile aRamFile a Ram file
TBool aEnableFiltering

ReadNextLine(TDes &)

TInt ReadNextLine ( TDes & aLine ) [private]
Reads next line from buffer
Since
2.0

Parameters

TDes & aLine Whole line which was read.

ResetLinkCount()

IMPORT_C void ResetLinkCount ( )
Reset number of links in opened RAM file for Repeat playlist
Since
3.2

Member Data Documentation

TPtrC8 iBufferPtr

TPtrC8 iBufferPtr [private]

MCLFContentListingEngine * iCLFEngine

MCLFContentListingEngine * iCLFEngine [private]

RFile iFileHandle

RFile iFileHandle [private]

RFs iFs

RFs iFs [private]

RPointerArray< LinkStruct > iLinkArray

RPointerArray < LinkStruct > iLinkArray [private]

TInt iLinkCount

TInt iLinkCount [private]