diff -r 000000000000 -r 95b198f216e5 omadrm/drmplugins/drmromtm/server/inc/RoMtmSer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omadrm/drmplugins/drmromtm/server/inc/RoMtmSer.h Thu Dec 17 08:52:27 2009 +0200 @@ -0,0 +1,219 @@ +/* +* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Declaration of Rights Object Server side MTM +* +*/ + + +#ifndef RIGHTSOBJECTSERVERMTM_H +#define RIGHTSOBJECTSERVERMTM_H + +// INCLUDES +#include +#include +#include +#include +#include +#include + + + +// CONSTANTS + +// MACROS +// DATA TYPES + +// FUNCTION PROTOTYPES + +// FORWARD DECLARATIONS + +// CLASS DECLARATION +/** +* CRightsObjectServerMtm +* +* @lib RoMtmSer.lib +* @since 2.5 +*/ + + +// +// CRightsObjectServerMtm: The Server-side MTM implementation +// +class CRightsObjectServerMtm : public CBaseServerMtm + { + public: + + + + // Constructor, initialisation, and destructor + + /** + * Two-phased constructor. + */ + IMPORT_C static CRightsObjectServerMtm* NewL( CRegisteredMtmDll& aRegisteredMtmDll , CMsvServerEntry* aInitialEntry ); + + /** + * Destructor. + */ + ~CRightsObjectServerMtm(); + + /************************************* + * + * from CBaseMtm + * + **************************************/ + // Copy and move + + /** + * CopyToLocalL + * @since 2.5 + * + * Not Supported + * + */ + void CopyToLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); + + /** + * CopyFromLocalL + * @since 2.5 + * + * Not Supported + * + */ + void CopyFromLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); + + /** + * CopyToLocalL + * @since 2.5 + * + * Not Supported + * + */ + void CopyWithinServiceL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); + + /** + * MoveToLocalL + * @since 2.5 + * + * Not Supported + * + */ + void MoveToLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); + + /** + * MoveFromLocalL + * @since 2.5 + * + * Not Supported + * + */ + void MoveFromLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); + + /** + * MoveWithinServiceL + * @since 2.5 + * + * Not Supported + * + */ + void MoveWithinServiceL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); + + // Create, change, delete + + /** + * DeleteAllL + * @since 2.5 + * + * Not Supported + * + */ + void DeleteAllL( const CMsvEntrySelection& aSelection , TRequestStatus& aStatus ); + + /** + * CreateL + * @since 2.5 + * + * Not Supported + * + */ + void CreateL( TMsvEntry aNewEntry , TRequestStatus& aStatus ); + + /** + * ChangeL + * @since 2.5 + * + * Not Supported + * + */ + void ChangeL( TMsvEntry aNewEntry , TRequestStatus& aStatus ); + + // Command and progress + + /** + * StartCommandL + * @since 2.5 + * + * Not Supported + * + */ + void StartCommandL( CMsvEntrySelection& aSelection , TInt aCommand , + const TDesC8& aParameter , TRequestStatus& aStatus ); + + /** + * CommandExpected + * @since 2.5 + * + * Not Supported + * + */ + TBool CommandExpected(); + + + /** + * Progress + * @since 2.5 + * + * Not Supported + * + */ + const TDesC8& Progress(); + + // void RunL() + // void SetInitialEntry(CMsvServerEntry* aEntry)=0; + protected: + + /************************************* + * + * from CActive + * + **************************************/ + void DoCancel(); + /************************************* + * + * from CBaseMtm + * + **************************************/ + void DoRunL(); + void DoComplete(TInt aError); + + private: + CRightsObjectServerMtm( CRegisteredMtmDll& aRegisteredMtmDll , CMsvServerEntry* aInitialEntry ); + void ConstructL(); + + private: + }; + +#endif // RIGHTSOBJECTSERVERMTM_H + +// End of File