contentmgmt/referencedrmagent/tcaf/source/contentstep.h
changeset 15 da2ae96f639b
child 45 030c4fbc13d7
equal deleted inserted replaced
10:afc583cfa176 15:da2ae96f639b
       
     1 /*
       
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #if (!defined __CONTENT_STEP_H__)
       
    22 #define __CONTENT_STEP_H__
       
    23 #include <test/testexecutestepbase.h>
       
    24 
       
    25 #include "cafstep.h"
       
    26 
       
    27 // Constants used to name test cases 
       
    28 _LIT(KCAFContentAttributeStep,"CAFContentAttributeStep");
       
    29 _LIT(KCAFContentAttributeSetStep,"CAFContentAttributeSetStep");
       
    30 _LIT(KCAFContentStringAttributeStep,"CAFContentStringAttributeStep");
       
    31 _LIT(KCAFContentStringAttributeSetStep,"CAFContentStringAttributeSetStep");
       
    32 _LIT(KCAFContentNotifyStep,"CAFContentNotifyStep");
       
    33 _LIT(KCAFContentSetPropertyStep,"CAFContentSetPropertyStep");
       
    34 _LIT(KCAFContentDisplayInfoStep,"CAFContentDisplayInfoStep");
       
    35 _LIT(KCAFContentAgentSpecificStep,"CAFContentAgentSpecificStep");
       
    36 _LIT(KCAFContentRequestRightsStep,"CAFContentRequestRightsStep");
       
    37 _LIT(KCAFContentEmbeddedObjectsStep,"CAFContentEmbeddedObjectsStep");
       
    38 _LIT(KCAFContentEmbeddedObjectTypeStep,"CAFContentEmbeddedObjectTypeStep");
       
    39 _LIT(KCAFContentSearchStep,"CAFContentSearchStep");
       
    40 _LIT(KCAFContentContainerStep,"CAFContentContainerStep");
       
    41 
       
    42 /* 
       
    43 * Used to test CManager::GetAttribute()
       
    44 * The INI file specifies the file to delete and the expected return code.
       
    45 * For instance this can be used to try and delete a file that does not exist or a file
       
    46 * that is read-only or has rights that don't allow it to be deleted
       
    47 * INI file paramerters
       
    48 *
       
    49 *
       
    50 * @internalComponent Exposure internally
       
    51 */
       
    52 class CCAFContentAttributeStep : public CCAFStep
       
    53 	{
       
    54 public:
       
    55 	CCAFContentAttributeStep(CCAFServer& aParent);
       
    56 	~CCAFContentAttributeStep();
       
    57 	virtual TVerdict doTestStepL();
       
    58 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
    59     TVerdict doWmdrmTestStepL();     
       
    60 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
       
    61 private:
       
    62 	CCAFServer& iParent;
       
    63 	};
       
    64 
       
    65 /* 
       
    66 * Used to test CManager::GetAttributeSet()
       
    67 * The INI file specifies the file to delete and the expected return code.
       
    68 * For instance this can be used to try and delete a file that does not exist or a file
       
    69 * that is read-only or has rights that don't allow it to be deleted
       
    70 * INI file paramerters
       
    71 *
       
    72 *
       
    73 * @internalComponent Exposure internally
       
    74 */
       
    75 class CCAFContentAttributeSetStep : public CCAFStep
       
    76 	{
       
    77 public:
       
    78 	CCAFContentAttributeSetStep(CCAFServer& aParent);
       
    79 	~CCAFContentAttributeSetStep();
       
    80 	virtual TVerdict doTestStepL();
       
    81 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
    82     TVerdict doWmdrmTestStepL();     
       
    83 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT 
       
    84 private:
       
    85 	CCAFServer& iParent;
       
    86 	};
       
    87 
       
    88 /* 
       
    89 * Used to test CData::GetAttribute()
       
    90 * The INI file specifies the file to delete and the expected return code.
       
    91 * For instance this can be used to try and delete a file that does not exist or a file
       
    92 * that is read-only or has rights that don't allow it to be deleted
       
    93 * INI file paramerters
       
    94 *
       
    95 *
       
    96 * @internalComponent Exposure internally
       
    97 */
       
    98 class CCAFContentStringAttributeStep : public CCAFStep
       
    99 	{
       
   100 public:
       
   101 	CCAFContentStringAttributeStep(CCAFServer& aParent);
       
   102 	~CCAFContentStringAttributeStep();
       
   103 	virtual TVerdict doTestStepL();
       
   104 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   105     TVerdict doWmdrmTestStepL();     
       
   106 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   107   
       
   108 private:
       
   109 	CCAFServer& iParent;
       
   110 	};
       
   111 
       
   112 /* 
       
   113 * Used to test CContent::GetStringAttributeSet()
       
   114 * The INI file specifies the file to delete and the expected return code.
       
   115 * For instance this can be used to try and delete a file that does not exist or a file
       
   116 * that is read-only or has rights that don't allow it to be deleted
       
   117 * INI file paramerters
       
   118 *
       
   119 *
       
   120 * @internalComponent Exposure internally
       
   121 */
       
   122 class CCAFContentStringAttributeSetStep : public CCAFStep
       
   123 	{
       
   124 public:
       
   125 	CCAFContentStringAttributeSetStep(CCAFServer& aParent);
       
   126 	~CCAFContentStringAttributeSetStep();
       
   127 	virtual TVerdict doTestStepL();
       
   128 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   129     TVerdict doWmdrmTestStepL();     
       
   130 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT     
       
   131   
       
   132 private:
       
   133 	CCAFServer& iParent;
       
   134 	};
       
   135 
       
   136 /* 
       
   137 * Used to test CContent::NotifyStatusChange()
       
   138 * The INI file specifies the file to delete and the expected return code.
       
   139 * For instance this can be used to try and delete a file that does not exist or a file
       
   140 * that is read-only or has rights that don't allow it to be deleted
       
   141 * INI file paramerters
       
   142 *
       
   143 *
       
   144 * @internalComponent Exposure internally
       
   145 */
       
   146 class CCAFContentNotifyStep : public CCAFStep
       
   147 	{
       
   148 public:
       
   149 	CCAFContentNotifyStep(CCAFServer& aParent);
       
   150 	~CCAFContentNotifyStep();
       
   151 	virtual TVerdict doTestStepL();
       
   152 private:
       
   153 	CCAFServer& iParent;
       
   154 	};
       
   155 
       
   156 /* 
       
   157 * Used to test CContent::SetProperty()
       
   158 * The INI file specifies the file to delete and the expected return code.
       
   159 * For instance this can be used to try and delete a file that does not exist or a file
       
   160 * that is read-only or has rights that don't allow it to be deleted
       
   161 * INI file paramerters
       
   162 *
       
   163 *
       
   164 * @internalComponent Exposure internally
       
   165 */
       
   166 class CCAFContentSetPropertyStep : public CCAFStep
       
   167 	{
       
   168 public:
       
   169 	CCAFContentSetPropertyStep(CCAFServer& aParent);
       
   170 	~CCAFContentSetPropertyStep();
       
   171 	virtual TVerdict doTestStepL();
       
   172 private:
       
   173 	CCAFServer& iParent;
       
   174 	};
       
   175 
       
   176 /* 
       
   177 * Used to test CContent::DisplayInfo()
       
   178 * The INI file specifies the file to delete and the expected return code.
       
   179 * For instance this can be used to try and delete a file that does not exist or a file
       
   180 * that is read-only or has rights that don't allow it to be deleted
       
   181 * INI file paramerters
       
   182 *
       
   183 *
       
   184 * @internalComponent Exposure internally
       
   185 */
       
   186 class CCAFContentDisplayInfoStep : public CCAFStep
       
   187 	{
       
   188 public:
       
   189 	CCAFContentDisplayInfoStep(CCAFServer& aParent);
       
   190 	~CCAFContentDisplayInfoStep();
       
   191 	virtual TVerdict doTestStepL();
       
   192 private:
       
   193 	CCAFServer& iParent;
       
   194 	};
       
   195 
       
   196 /* 
       
   197 * Used to test CContent::AgentSpecificCommand()
       
   198 * The INI file specifies the file to delete and the expected return code.
       
   199 * For instance this can be used to try and delete a file that does not exist or a file
       
   200 * that is read-only or has rights that don't allow it to be deleted
       
   201 * INI file paramerters
       
   202 *
       
   203 *
       
   204 * @internalComponent Exposure internally
       
   205 */
       
   206 class CCAFContentAgentSpecificStep : public CCAFStep
       
   207 	{
       
   208 public:
       
   209 	CCAFContentAgentSpecificStep(CCAFServer& aParent);
       
   210 	~CCAFContentAgentSpecificStep();
       
   211 	virtual TVerdict doTestStepL();
       
   212 private:
       
   213 	CCAFServer& iParent;
       
   214 	};
       
   215 
       
   216 
       
   217 /* 
       
   218 * Used to test CContent::RequestRights()
       
   219 * The INI file specifies the file to delete and the expected return code.
       
   220 * For instance this can be used to try and delete a file that does not exist or a file
       
   221 * that is read-only or has rights that don't allow it to be deleted
       
   222 * INI file paramerters
       
   223 *
       
   224 *
       
   225 * @internalComponent Exposure internally
       
   226 */
       
   227 class CCAFContentRequestRightsStep : public CCAFStep
       
   228 	{
       
   229 public:
       
   230 	CCAFContentRequestRightsStep(CCAFServer& aParent);
       
   231 	~CCAFContentRequestRightsStep();
       
   232 	virtual TVerdict doTestStepL();
       
   233 private:
       
   234 	CCAFServer& iParent;
       
   235 	};
       
   236 
       
   237 
       
   238 /* 
       
   239 * Used to test CContent::GetEmbeddedObjects()
       
   240 * The INI file specifies the file to delete and the expected return code.
       
   241 * For instance this can be used to try and delete a file that does not exist or a file
       
   242 * that is read-only or has rights that don't allow it to be deleted
       
   243 * INI file paramerters
       
   244 *
       
   245 *
       
   246 * @internalComponent Exposure internally
       
   247 */
       
   248 class CCAFContentEmbeddedObjectsStep : public CCAFStep
       
   249 	{
       
   250 public:
       
   251 	CCAFContentEmbeddedObjectsStep(CCAFServer& aParent);
       
   252 	~CCAFContentEmbeddedObjectsStep();
       
   253 	virtual TVerdict doTestStepL();
       
   254 private:
       
   255 	CCAFServer& iParent;
       
   256 	};
       
   257 
       
   258 /* 
       
   259 * Used to test CContent::GetEmbeddedObjects()
       
   260 * The INI file specifies the file to delete and the expected return code.
       
   261 * For instance this can be used to try and delete a file that does not exist or a file
       
   262 * that is read-only or has rights that don't allow it to be deleted
       
   263 * INI file paramerters
       
   264 *
       
   265 *
       
   266 * @internalComponent Exposure internally
       
   267 */
       
   268 class CCAFContentEmbeddedObjectTypeStep : public CCAFStep
       
   269 	{
       
   270 public:
       
   271 	CCAFContentEmbeddedObjectTypeStep(CCAFServer& aParent);
       
   272 	~CCAFContentEmbeddedObjectTypeStep();
       
   273 	virtual TVerdict doTestStepL();
       
   274 private:
       
   275 	CCAFServer& iParent;
       
   276 	};
       
   277 
       
   278 /* 
       
   279 * Used to test CContent::Search()
       
   280 * The INI file specifies the file to delete and the expected return code.
       
   281 * For instance this can be used to try and delete a file that does not exist or a file
       
   282 * that is read-only or has rights that don't allow it to be deleted
       
   283 * INI file paramerters
       
   284 *
       
   285 *
       
   286 * @internalComponent Exposure internally
       
   287 */
       
   288 class CCAFContentSearchStep : public CCAFStep
       
   289 	{
       
   290 public:
       
   291 	CCAFContentSearchStep(CCAFServer& aParent);
       
   292 	~CCAFContentSearchStep();
       
   293 	virtual TVerdict doTestStepL();
       
   294 private:
       
   295 	CCAFServer& iParent;
       
   296 	};
       
   297 
       
   298 /* 
       
   299 * Used to test CContent::OpenContainer()
       
   300 * The INI file specifies the file to delete and the expected return code.
       
   301 * For instance this can be used to try and delete a file that does not exist or a file
       
   302 * that is read-only or has rights that don't allow it to be deleted
       
   303 * INI file paramerters
       
   304 *
       
   305 *
       
   306 * @internalComponent Exposure internally
       
   307 */
       
   308 class CCAFContentContainerStep : public CCAFStep
       
   309 	{
       
   310 public:
       
   311 	CCAFContentContainerStep(CCAFServer& aParent);
       
   312 	~CCAFContentContainerStep();
       
   313 	virtual TVerdict doTestStepL();
       
   314 private:
       
   315 	CCAFServer& iParent;
       
   316 	};
       
   317 
       
   318 
       
   319 
       
   320 #endif