contentmgmt/referencedrmagent/tcaf/source/Consumerstep.h
branchRCL_3
changeset 95 641f389e9157
parent 53 030c4fbc13d7
child 96 a71299154b21
equal deleted inserted replaced
92:f18401adf8e1 95:641f389e9157
    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 
    49 
    54 
    50 /* 
    55 /* 
    51 * Used to open one file with RFile and the DRM packaged version of the same file with 
    56 * Used to open one file with RFile and the DRM packaged version of the same file with 
    52 * CContent::Open() and compare the reported sizes
    57 * CContent::Open() and compare the reported sizes
    53 * It can be used with two identical, non DRM file to check the operation of F32Agent
    58 * It can be used with two identical, non DRM file to check the operation of F32Agent
   279 	{
   284 	{
   280 public:
   285 public:
   281 	CCAFDataAttributeStep(CCAFServer& aParent);
   286 	CCAFDataAttributeStep(CCAFServer& aParent);
   282 	~CCAFDataAttributeStep();
   287 	~CCAFDataAttributeStep();
   283 	virtual TVerdict doTestStepL();
   288 	virtual TVerdict doTestStepL();
       
   289 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
   290     TVerdict doWmdrmTestStepL();     
       
   291 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
   284 private:
   292 private:
   285 	CCAFServer& iParent;
   293 	CCAFServer& iParent;
   286 	};
   294 	};
   287 
   295 
   288 /* 
   296 /* 
   299 	{
   307 	{
   300 public:
   308 public:
   301 	CCAFDataAttributeSetStep(CCAFServer& aParent);
   309 	CCAFDataAttributeSetStep(CCAFServer& aParent);
   302 	~CCAFDataAttributeSetStep();
   310 	~CCAFDataAttributeSetStep();
   303 	virtual TVerdict doTestStepL();
   311 	virtual TVerdict doTestStepL();
       
   312 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   313     TVerdict doWmdrmTestStepL();     
       
   314 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
   304 private:
   315 private:
   305 	CCAFServer& iParent;
   316 	CCAFServer& iParent;
   306 	};
   317 	};
   307 
   318 
   308 /* 
   319 /* 
   319 	{
   330 	{
   320 public:
   331 public:
   321 	CCAFDataStringAttributeStep(CCAFServer& aParent);
   332 	CCAFDataStringAttributeStep(CCAFServer& aParent);
   322 	~CCAFDataStringAttributeStep();
   333 	~CCAFDataStringAttributeStep();
   323 	virtual TVerdict doTestStepL();
   334 	virtual TVerdict doTestStepL();
       
   335 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   336     TVerdict doWmdrmTestStepL();     
       
   337 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
   324 private:
   338 private:
   325 	CCAFServer& iParent;
   339 	CCAFServer& iParent;
   326 	};
   340 	};
   327 
   341 
   328 /* 
   342 /* 
   339 	{
   353 	{
   340 public:
   354 public:
   341 	CCAFDataStringAttributeSetStep(CCAFServer& aParent);
   355 	CCAFDataStringAttributeSetStep(CCAFServer& aParent);
   342 	~CCAFDataStringAttributeSetStep();
   356 	~CCAFDataStringAttributeSetStep();
   343 	virtual TVerdict doTestStepL();
   357 	virtual TVerdict doTestStepL();
       
   358 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   359     TVerdict doWmdrmTestStepL();     
       
   360 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
   344 private:
   361 private:
   345 	CCAFServer& iParent;
   362 	CCAFServer& iParent;
   346 	};
   363 	};
   347 
   364 
   348 class CCAFExecuteIntentStep : public CCAFStep
   365 class CCAFExecuteIntentStep : public CCAFStep
   379 
   396 
   380 	CCAFServer& iParent;
   397 	CCAFServer& iParent;
   381 	TUint32 iIterationSum;
   398 	TUint32 iIterationSum;
   382 	};
   399 	};
   383 
   400 
       
   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 
   384 
   442 
   385 #endif
   443 #endif