diff -r e16d72588c28 -r 8a03a285ab14 omadrm/drmengine/dcfrepository/server/inc/DcfRepSrv.h --- a/omadrm/drmengine/dcfrepository/server/inc/DcfRepSrv.h Fri Mar 12 15:43:46 2010 +0200 +++ b/omadrm/drmengine/dcfrepository/server/inc/DcfRepSrv.h Mon Mar 15 12:41:43 2010 +0200 @@ -21,7 +21,7 @@ #define CDCFREPSRV_H // INCLUDES -#include +#include #include #include "Pair.h" #include "procwatcher.h" @@ -40,7 +40,7 @@ EStateIdle = 0, EStateSetTtid, EStateFullScan, - EStateScan + EStateScan }; // FUNCTION PROTOTYPES // FORWARD DECLARATIONS @@ -52,25 +52,25 @@ * Server implementation. * DCF Repository * -* @lib -* @since Series 60 3.0 +* @lib +* @since Series 60 3.0 */ class CDcfRepSrv : public CServer2, public MWatcherObserver { public: // Constructors and destructor - + /** * Two-phased constructor. */ static CDcfRepSrv* NewLC(); - + /** * Destructor. */ virtual ~CDcfRepSrv(); public: // New functions - + /** * Startup starts the actual server after initializing * the cleanup stack and active scheduler. @@ -84,9 +84,9 @@ * @since Series 60 3.0 * @param aFile file name * @KErrNotSupported if file is not protected file - */ + */ void AddFileL( const TDesC& aFile ); - + /** * ProcessFile * @since Series 60 3.0 @@ -102,89 +102,89 @@ * @return state of the server */ TInt State() const; - + /** * SetState * @since Series 60 3.0 * @param aMode server state - * @return + * @return */ void SetState(TServerState aMode); - + /** * CompleteScanning * @since Series 60 3.0 * @param aRet return code */ - void CompleteScanning(TInt err); - - + void CompleteScanning(TInt err); + + /** * SetMessage * @since Series 60 3.0 * @param aMessage Message from client */ - RMessage2* SetMessageL(const RMessage2& aMessage); - + RMessage2* SetMessageL(const RMessage2& aMessage); + /** * Scan * @since Series 60 3.0 * @return error code - */ + */ TInt Scan(); - + /** * SetCidList * @since Series 60 3.0 * @param aList content ID list */ void SetCidList(RPointerArray*& aList); - - + + /** * SetPairList * @since Series 60 3.0 * @param aList list of pairs for content ID and transaction ID */ void SetPairList(RPointerArray*& aList); - + /** * Stop watching the Rights Server * @since Series 60 3.1 */ void StopWatchingL(); - + /** * RemoveMessageL * Called by destructor of the session class */ void RemoveMessageL( const RMessage2* aMessage ); - - + + public: // Functions from base classes - + //class MWatcherObserver - - /** + + /** * Called when the peer process died * * @since S60 3.0 * @param aObject Changed object */ void WatchedObjectChangedL( const TDesC& aObject ); - + protected: // New functions - + protected: // Functions from base classes - + // Class CServer - /** + /** * NewSessionL * @since S60Rel3.0 */ CSession2* NewSessionL( const TVersion& aVersion, const RMessage2& aMessage ) const; - + private: @@ -200,86 +200,86 @@ /** * StartupL called by StartUp - * @since S60 Rel 3.0 + * @since S60 Rel 3.0 */ static void StartupL(); /** * PanicServer will panic with panic code - * @since S60 Rel 3.0 + * @since S60 Rel 3.0 */ static void PanicServer(TDcfRepSrvPanic aPanic); - + /** * CleanScanInternal will clean list for Scan - * @since S60 Rel 3.0 - */ + * @since S60 Rel 3.0 + */ void CleanScanInternal(); /** * CleanDatabase will close database connection - * @since S60 Rel 3.0 - */ + * @since S60 Rel 3.0 + */ void CleanDatabase(); /** * OpenDatabaseL will open database connection - * @since S60 Rel 3.0 - */ + * @since S60 Rel 3.0 + */ void OpenDatabaseL(); /** * CleanTableL will clean all items in the table - * @since S60 Rel 3.0 - */ + * @since S60 Rel 3.0 + */ void CleanTableL(); /** * AddDomainRoL will add domain RO into file if there is any. - * @since S60 Rel 3.0 - */ + * @since S60 Rel 3.0 + */ void AddDomainRoL( const TDesC& aFile ); /** * CheckFileL will check the file type: dcf1,dcf2,plain - * @since S60 Rel 3.0 - */ + * @since S60 Rel 3.0 + */ void CheckFileL(const TDesC& aFile , TInt& aType); /** * StoreFileL will store file info - * @since S60 Rel 3.0 - */ + * @since S60 Rel 3.0 + */ void StoreFileL(const TDesC& aFile , TInt aType); - + /** * UpdateDatabaseL will store info into database - * @since S60 Rel 3.0 - */ + * @since S60 Rel 3.0 + */ void UpdateDatabaseL( - const TDesC& aFile, - TInt aPos, + const TDesC& aFile, + TInt aPos, const TDesC& aCid , - const TDesC& aGroupId , + const TDesC& aGroupId , const TDesC& aTtid); /** * ResetTtidL will write new ttid into file - * @since S60 Rel 3.0 + * @since S60 Rel 3.0 */ void ResetTtidL( - const TDesC& aFile, + const TDesC& aFile, const TDesC8& aTtid ); /** * ResetTtidL will write new ttid into file - * @since S60 Rel 3.0 + * @since S60 Rel 3.0 */ void ResetTtidL( - COma2Dcf* aDcf, + COma2Dcf* aDcf, const TDesC8& aTtid - ); + ); // Prohibit copy constructor if not deriving from CBase. CDcfRepSrv( const CDcfRepSrv& ); // Prohibit assigment operator if not deriving from CBase. @@ -299,7 +299,7 @@ TInt iState; CProcWatcher* iProcWatcher; TBool iArmed; - + // Reserved pointer for future extension TAny* iReserved; @@ -309,6 +309,6 @@ }; -#endif // CDCFREPSRV_H - +#endif // CDCFREPSRV_H + // End of File