omadrm/drmplugins/drmromtm/server/inc/RoMtmSer.h
branchRCL_3
changeset 12 8a03a285ab14
parent 0 95b198f216e5
equal deleted inserted replaced
11:e16d72588c28 12:8a03a285ab14
    21 
    21 
    22 //  INCLUDES
    22 //  INCLUDES
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <mtclbase.h>
    24 #include <mtclbase.h>
    25 #include <mtsr.h>
    25 #include <mtsr.h>
    26 #include <MSVSTORE.H>
    26 #include <msvstore.h>
    27 #include <MSVUIDS.H>
    27 #include <msvuids.h>
    28 #include <MSVIDS.H>
    28 #include <msvids.h>
    29 
    29 
    30 
    30 
    31 
    31 
    32 // CONSTANTS
    32 // CONSTANTS
    33 
    33 
    38 
    38 
    39 // FORWARD DECLARATIONS
    39 // FORWARD DECLARATIONS
    40 
    40 
    41 // CLASS DECLARATION
    41 // CLASS DECLARATION
    42 /**
    42 /**
    43 *	CRightsObjectServerMtm
    43 *   CRightsObjectServerMtm
    44 *  
    44 *
    45 *  @lib RoMtmSer.lib
    45 *  @lib RoMtmSer.lib
    46 *  @since 2.5
    46 *  @since 2.5
    47 */
    47 */
    48 
    48 
    49 
    49 
    50 //
    50 //
    51 //	CRightsObjectServerMtm: The Server-side MTM implementation
    51 //  CRightsObjectServerMtm: The Server-side MTM implementation
    52 //
    52 //
    53 class CRightsObjectServerMtm : public CBaseServerMtm
    53 class CRightsObjectServerMtm : public CBaseServerMtm
    54 	{
    54     {
    55 	public:
    55     public:
    56 
    56 
    57 
    57 
    58 
    58 
    59 	// Constructor, initialisation, and destructor 
    59     // Constructor, initialisation, and destructor
    60 
    60 
    61         /**
    61         /**
    62         * Two-phased constructor.
    62         * Two-phased constructor.
    63         */
    63         */
    64 		IMPORT_C static CRightsObjectServerMtm* NewL( CRegisteredMtmDll& aRegisteredMtmDll , CMsvServerEntry* aInitialEntry );
    64         IMPORT_C static CRightsObjectServerMtm* NewL( CRegisteredMtmDll& aRegisteredMtmDll , CMsvServerEntry* aInitialEntry );
    65 	
    65 
    66         /**
    66         /**
    67         * Destructor.
    67         * Destructor.
    68         */		
    68         */
    69 		~CRightsObjectServerMtm();
    69         ~CRightsObjectServerMtm();
    70 
    70 
    71 		/*************************************
    71         /*************************************
    72 		*
    72         *
    73 		*		from CBaseMtm
    73         *       from CBaseMtm
    74 		*
    74         *
    75 		**************************************/
    75         **************************************/
    76 		// Copy and move 
    76         // Copy and move
    77 		
    77 
    78 		/**
    78         /**
    79         * CopyToLocalL
    79         * CopyToLocalL
    80         * @since 2.5
    80         * @since 2.5
    81         * 
    81         *
    82 		* Not Supported
    82         * Not Supported
    83 		*
    83         *
    84         */
    84         */
    85 		void CopyToLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
    85         void CopyToLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
    86 
    86 
    87 		/**
    87         /**
    88         * CopyFromLocalL
    88         * CopyFromLocalL
    89         * @since 2.5
    89         * @since 2.5
    90         * 
    90         *
    91 		* Not Supported
    91         * Not Supported
    92 		*
    92         *
    93         */
    93         */
    94 		void CopyFromLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
    94         void CopyFromLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
    95 
    95 
    96 		/**
    96         /**
    97         * CopyToLocalL
    97         * CopyToLocalL
    98         * @since 2.5
    98         * @since 2.5
    99         * 
    99         *
   100 		* Not Supported
   100         * Not Supported
   101 		*
   101         *
   102         */		
   102         */
   103 		void CopyWithinServiceL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
   103         void CopyWithinServiceL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
   104 		
   104 
   105 		/**
   105         /**
   106         * MoveToLocalL
   106         * MoveToLocalL
   107         * @since 2.5
   107         * @since 2.5
   108         * 
   108         *
   109 		* Not Supported
   109         * Not Supported
   110 		*
   110         *
   111         */		
   111         */
   112 		void MoveToLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
   112         void MoveToLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
   113 		
   113 
   114 		/**
   114         /**
   115         * MoveFromLocalL
   115         * MoveFromLocalL
   116         * @since 2.5
   116         * @since 2.5
   117         * 
   117         *
   118 		* Not Supported
   118         * Not Supported
   119 		*
   119         *
   120         */
   120         */
   121 		void MoveFromLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
   121         void MoveFromLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
   122 		
   122 
   123 		/**
   123         /**
   124         * MoveWithinServiceL
   124         * MoveWithinServiceL
   125         * @since 2.5
   125         * @since 2.5
   126         * 
   126         *
   127 		* Not Supported
   127         * Not Supported
   128 		*
   128         *
   129         */
   129         */
   130 		void MoveWithinServiceL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
   130         void MoveWithinServiceL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus );
   131 
   131 
   132 		// Create, change, delete 
   132         // Create, change, delete
   133 		
   133 
   134 		/**
   134         /**
   135         * DeleteAllL
   135         * DeleteAllL
   136         * @since 2.5
   136         * @since 2.5
   137         * 
   137         *
   138 		* Not Supported
   138         * Not Supported
   139 		*
   139         *
   140         */
   140         */
   141 		void DeleteAllL( const CMsvEntrySelection& aSelection , TRequestStatus& aStatus );
   141         void DeleteAllL( const CMsvEntrySelection& aSelection , TRequestStatus& aStatus );
   142 		
   142 
   143 		/**
   143         /**
   144         * CreateL
   144         * CreateL
   145         * @since 2.5
   145         * @since 2.5
   146         * 
   146         *
   147 		* Not Supported
   147         * Not Supported
   148 		*
   148         *
   149         */
   149         */
   150 		void CreateL( TMsvEntry aNewEntry , TRequestStatus& aStatus );
   150         void CreateL( TMsvEntry aNewEntry , TRequestStatus& aStatus );
   151 		
   151 
   152 		/**
   152         /**
   153         * ChangeL
   153         * ChangeL
   154         * @since 2.5
   154         * @since 2.5
   155         * 
   155         *
   156 		* Not Supported
   156         * Not Supported
   157 		*
   157         *
   158         */
   158         */
   159 		void ChangeL( TMsvEntry aNewEntry , TRequestStatus& aStatus );
   159         void ChangeL( TMsvEntry aNewEntry , TRequestStatus& aStatus );
   160 
   160 
   161 		// Command and progress
   161         // Command and progress
   162 		
   162 
   163 		/**
   163         /**
   164         * StartCommandL
   164         * StartCommandL
   165         * @since 2.5
   165         * @since 2.5
   166         * 
   166         *
   167 		* Not Supported
   167         * Not Supported
   168 		*
   168         *
   169         */
   169         */
   170 		void StartCommandL( CMsvEntrySelection& aSelection , TInt aCommand , 
   170         void StartCommandL( CMsvEntrySelection& aSelection , TInt aCommand ,
   171 			const TDesC8& aParameter , TRequestStatus& aStatus );
   171             const TDesC8& aParameter , TRequestStatus& aStatus );
   172 		
   172 
   173 		/**
   173         /**
   174         * CommandExpected
   174         * CommandExpected
   175         * @since 2.5
   175         * @since 2.5
   176         * 
   176         *
   177 		* Not Supported
   177         * Not Supported
   178 		*
   178         *
   179         */
   179         */
   180 		TBool CommandExpected();
   180         TBool CommandExpected();
   181 		
   181 
   182 		
   182 
   183 		/**
   183         /**
   184         * Progress
   184         * Progress
   185         * @since 2.5
   185         * @since 2.5
   186         * 
   186         *
   187 		* Not Supported
   187         * Not Supported
   188 		*
   188         *
   189         */
   189         */
   190 		const TDesC8& Progress();
   190         const TDesC8& Progress();
   191 
   191 
   192 		// void RunL()
   192         // void RunL()
   193 		// void SetInitialEntry(CMsvServerEntry* aEntry)=0;
   193         // void SetInitialEntry(CMsvServerEntry* aEntry)=0;
   194 	protected:
   194     protected:
   195   
   195 
   196 		/*************************************
   196         /*************************************
   197 		*
   197         *
   198 		*		from CActive
   198         *       from CActive
   199 		*
   199         *
   200 		**************************************/
   200         **************************************/
   201 		void DoCancel();
   201         void DoCancel();
   202 		/*************************************
   202         /*************************************
   203 		*
   203         *
   204 		*		from CBaseMtm
   204         *       from CBaseMtm
   205 		*
   205         *
   206 		**************************************/
   206         **************************************/
   207 		void DoRunL();
   207         void DoRunL();
   208 		void DoComplete(TInt aError);
   208         void DoComplete(TInt aError);
   209 
   209 
   210 	private:
   210     private:
   211 		CRightsObjectServerMtm( CRegisteredMtmDll& aRegisteredMtmDll , CMsvServerEntry* aInitialEntry );
   211         CRightsObjectServerMtm( CRegisteredMtmDll& aRegisteredMtmDll , CMsvServerEntry* aInitialEntry );
   212 		void ConstructL();
   212         void ConstructL();
   213 
   213 
   214 	private:
   214     private:
   215 	};
   215     };
   216 
   216 
   217 #endif      // RIGHTSOBJECTSERVERMTM_H
   217 #endif      // RIGHTSOBJECTSERVERMTM_H
   218             
   218 
   219 // End of File
   219 // End of File