contentmgmt/referencedrmagent/tcaf/source/Consumerstep.h
branchRCL_3
changeset 96 a71299154b21
parent 95 641f389e9157
equal deleted inserted replaced
95:641f389e9157 96:a71299154b21
    44 _LIT(KCAFDataStringAttributeStep,"CAFDataStringAttributeStep");
    44 _LIT(KCAFDataStringAttributeStep,"CAFDataStringAttributeStep");
    45 _LIT(KCAFDataStringAttributeSetStep,"CAFDataStringAttributeSetStep");
    45 _LIT(KCAFDataStringAttributeSetStep,"CAFDataStringAttributeSetStep");
    46 _LIT(KCAFExecuteIntentStep,"CAFExecuteIntentStep");
    46 _LIT(KCAFExecuteIntentStep,"CAFExecuteIntentStep");
    47 _LIT(KCAFDRMFileOpenPerformanceStep, "CAFDRMFileOpenPerformanceStep");
    47 _LIT(KCAFDRMFileOpenPerformanceStep, "CAFDRMFileOpenPerformanceStep");
    48 
    48 
    49 //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
    50 _LIT(KWmdrmCAFContentStep,"WmdrmCAFContentStep");     
       
    51 _LIT(KWmdrmCAFDataStep,"WmdrmCAFDataStep");     
       
    52 _LIT(KWmdrmCAFReadStep, "WmdrmCAFReadStep");     
       
    53 //#endif //SYMBIAN_SDP-WMDRM 
       
    54 
    49 
    55 /* 
    50 /* 
    56 * Used to open one file with RFile and the DRM packaged version of the same file with 
    51 * Used to open one file with RFile and the DRM packaged version of the same file with 
    57 * CContent::Open() and compare the reported sizes
    52 * CContent::Open() and compare the reported sizes
    58 * It can be used with two identical, non DRM file to check the operation of F32Agent
    53 * It can be used with two identical, non DRM file to check the operation of F32Agent
   284 	{
   279 	{
   285 public:
   280 public:
   286 	CCAFDataAttributeStep(CCAFServer& aParent);
   281 	CCAFDataAttributeStep(CCAFServer& aParent);
   287 	~CCAFDataAttributeStep();
   282 	~CCAFDataAttributeStep();
   288 	virtual TVerdict doTestStepL();
   283 	virtual TVerdict doTestStepL();
   289 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
   290     TVerdict doWmdrmTestStepL();     
       
   291 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
       
   292 private:
   284 private:
   293 	CCAFServer& iParent;
   285 	CCAFServer& iParent;
   294 	};
   286 	};
   295 
   287 
   296 /* 
   288 /* 
   307 	{
   299 	{
   308 public:
   300 public:
   309 	CCAFDataAttributeSetStep(CCAFServer& aParent);
   301 	CCAFDataAttributeSetStep(CCAFServer& aParent);
   310 	~CCAFDataAttributeSetStep();
   302 	~CCAFDataAttributeSetStep();
   311 	virtual TVerdict doTestStepL();
   303 	virtual TVerdict doTestStepL();
   312 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   313     TVerdict doWmdrmTestStepL();     
       
   314 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
       
   315 private:
   304 private:
   316 	CCAFServer& iParent;
   305 	CCAFServer& iParent;
   317 	};
   306 	};
   318 
   307 
   319 /* 
   308 /* 
   330 	{
   319 	{
   331 public:
   320 public:
   332 	CCAFDataStringAttributeStep(CCAFServer& aParent);
   321 	CCAFDataStringAttributeStep(CCAFServer& aParent);
   333 	~CCAFDataStringAttributeStep();
   322 	~CCAFDataStringAttributeStep();
   334 	virtual TVerdict doTestStepL();
   323 	virtual TVerdict doTestStepL();
   335 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   336     TVerdict doWmdrmTestStepL();     
       
   337 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
       
   338 private:
   324 private:
   339 	CCAFServer& iParent;
   325 	CCAFServer& iParent;
   340 	};
   326 	};
   341 
   327 
   342 /* 
   328 /* 
   353 	{
   339 	{
   354 public:
   340 public:
   355 	CCAFDataStringAttributeSetStep(CCAFServer& aParent);
   341 	CCAFDataStringAttributeSetStep(CCAFServer& aParent);
   356 	~CCAFDataStringAttributeSetStep();
   342 	~CCAFDataStringAttributeSetStep();
   357 	virtual TVerdict doTestStepL();
   343 	virtual TVerdict doTestStepL();
   358 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   359     TVerdict doWmdrmTestStepL();     
       
   360 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
       
   361 private:
   344 private:
   362 	CCAFServer& iParent;
   345 	CCAFServer& iParent;
   363 	};
   346 	};
   364 
   347 
   365 class CCAFExecuteIntentStep : public CCAFStep
   348 class CCAFExecuteIntentStep : public CCAFStep
   396 
   379 
   397 	CCAFServer& iParent;
   380 	CCAFServer& iParent;
   398 	TUint32 iIterationSum;
   381 	TUint32 iIterationSum;
   399 	};
   382 	};
   400 
   383 
   401 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   402 /* Used to test behaviour of CContent object creation and attribute APIs for WMDRM content.  +-   
       
   403 * @internalComponent Exposure internally     
       
   404 */     
       
   405 class CWmdrmCAFContentStep : public CCAFStep     
       
   406     {     
       
   407 public:     
       
   408     CWmdrmCAFContentStep();     
       
   409     ~CWmdrmCAFContentStep();     
       
   410     virtual TVerdict doTestStepL();     
       
   411     };     
       
   412       
       
   413       
       
   414 /* Used to test the behaviour of CData object creation and attribute APIs for WMDRM content.     
       
   415 * @internalComponent Exposure internally     
       
   416 */     
       
   417 class CWmdrmCAFDataStep : public CCAFStep     
       
   418     {     
       
   419 public:     
       
   420     CWmdrmCAFDataStep();     
       
   421     ~CWmdrmCAFDataStep();     
       
   422     virtual TVerdict doTestStepL();     
       
   423     };     
       
   424       
       
   425          
       
   426 /* Used to test synchronous and asynchronous behaviour of ReadL() APIs of CData class for WMDRM content.     
       
   427 * @internalComponent Exposure internally     
       
   428 */     
       
   429 class CWmdrmCAFReadStep : public CCAFStep     
       
   430     {     
       
   431 public:     
       
   432     CWmdrmCAFReadStep();     
       
   433     ~CWmdrmCAFReadStep();     
       
   434     virtual TVerdict doTestStepL();     
       
   435       
       
   436 private:     
       
   437     TInt TestSynchronousReadL(const TDesC8& aHeaderData, TBool aIntent, TDesC& aInputPacket, TDesC& aExpectedOuput);     
       
   438     TInt TestAsynchronousReadL(const TDesC8& aHeaderData, TBool aIntent, TDesC& aInputPacket, TDesC& aExpectedOuput);     
       
   439     };       
       
   440       
       
   441 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
       
   442 
   384 
   443 #endif
   385 #endif