CDcfRep Class Reference
class CDcfRep : public CBase |
CDcfRep Client of DCF Repository
?library
- Since
- Series 60 3.0
Constructor & Destructor Documentation
CDcfRep()
From ?base_class ?member_description C++ default constructor.
~CDcfRep()
IMPORT_C | ~CDcfRep | ( | ) | [virtual] |
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
By default Symbian 2nd phase constructor is private.
DoGetFileHandleL(const TDesC8 &, RFile &, RFs &)
void | DoGetFileHandleL | ( | const TDesC8 & | aCid, |
| RFile & | aFile, |
| RFs & | aFs |
| ) | [private] |
GetCidL(const TDesC16 &, RPointerArray< HBufC8 > &)
GetFileHandleL(const TDesC8 &, RFile &, RFs &)
IMPORT_C void | GetFileHandleL | ( | const TDesC8 & | aCid, |
| RFile & | aFile, |
| RFs & | aFs |
| ) | |
GetFileHandleL The function get file info from database and return read-only file handle back
- Since
- Series 60 3.0
Parameters
const TDesC8 & aCid | a content ID |
RFile & aFile | a file handle |
RFs & aFs | file server session that is connected with server. |
GetFilenameL(const TDesC8 &, RPointerArray< HBufC > &)
GetTtidL(RArray< TPair > &)
GetTtidL The function will go through database to get transaction IDs for every specific CID
- Since
- Series 60 3.0
Parameters
RArray< TPair > & aList | contain content IDs and transaction ID will be filled afterwards TPair.iCid must be filled by user. TPair.iTtid must be NULL |
GetTtidL(const TDesC8 &, HBufC8 *&)
NextL()
NextL After a list is ordered, the function will return entries as iteration. Caller must call OrderListL before calling this function.
- Since
- Series 60 3.0
NotifyServerIdle(TRequestStatus &)
NotifyServerIdle the function will complete the status when DCF Repository server becomes idle if the server is in ilde status right now, then the status will get completed right now. Note. if
CDcfRep is destructed, the status will not be completed afterwards even server becomes idle.
- Since
- Series 60 3.0
OpenDatabaseL()
void | OpenDatabaseL | ( | ) | [private] |
OrderListL(void)
IMPORT_C void | OrderListL | ( | void | | ) | |
OrderListL Order all entries from DB, NextL will be used after this function call in order to get entries.
- Since
- Series 60 3.0 with KErrNotFound if there is no entries
OrderListL(const TDesC8 &)
IMPORT_C void | OrderListL | ( | const TDesC8 & | aCid | ) | |
OrderListL Order all entries with specific CID from DB, if the CID cannot be found as a CID then DB will search for it as a Group ID NextL will be used after this function call in order to get entries.
- Since
- Series 60 3.0
Parameters
const TDesC8 & aCid | a content ID with KErrNotFound if there is no entries for the CID |
RefreshDcf(TRequestStatus &)
RefreshDcf the function will refresh the DCF list for both OMA 1 and OMA 2(.odf) DCFs and save it into DB. Note. if
CDcfRep is destructed, the status will not be completed afterwards even server becomes idle.
- Since
- Series 60 3.0
RefreshDcf(RPointerArray< HBufC8 > &, TRequestStatus &)
RefreshDcf the function will refresh the DCF list for both OMA 1 and OMA 2(.odf) DCFs and save it into DB. the function will complete when every single Cid has found at least one corresponding DCFs in the file system Note. if
CDcfRep is destructed, the status will not be completed afterwards even server becomes idle.
- Since
- Series 60 3.0
RemoveDcfFromDbL(const TDesC &)
IMPORT_C void | RemoveDcfFromDbL | ( | const TDesC & | aFileName | ) | |
RemoveDcfFromDbL
the function will remove all the entries that have the filename in database.
- Since
- Series 60 3.0
Parameters
const TDesC & aFileName | file name of Dcf to be removed |
SetName(const TDesC8 &, const TDesC16 &)
SetTtid(RArray< TPair > &, TRequestStatus &, TBool)
SetTtid the function will scan whole file system, whenever a .odf with a specifed CID is found, server will reset the TTID for the .odf with the value in
TPair.iTtid and also update info in database. Note. if
CDcfRep is destructed, the status will not be completed afterwards even server becomes idle.
- Since
- Series 60 3.0
Parameters
RArray< TPair > & aList | a list of CID and TTID pairs, Caller owns TPair.iCid and TPair.iTtid. CID and TTID must be filled by caller, no default value is given. |
TRequestStatus & aStatus | a status for this request |
TBool aRefresh = ETrue | ETrue by default, EFalse is not supported in this version |
UpdateL(const CDcfEntry *)
IMPORT_C void | UpdateL | ( | const CDcfEntry * | aEntry | ) | |
UpdateL the function will add the entry into database. in 3.0 file info will be added
- Since
- Series 60 3.0
Parameters
const CDcfEntry * aEntry | protected file entry to database, either filename or content ID field shall be filled, if filename is filled, the file is added into DCF DB and also rights DB, domain RO is added into the file if content ID is filled, domain RO are added into all files(registered in DCF DB) that are linked with this content ID if both are filled, then content ID is ignored. if none is filled, then KErrArgument is returned server will obtain other info from the file or DCF DB. with KErrNotSupported if file is not protected file |
operator=(const CDcfRep &)
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.