contentmgmt/referencedrmagent/tcaf/source/RightsManagerStep.h
changeset 15 da2ae96f639b
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 __RIGHTS_MANAGER_STEP_H__)
       
    22 #define __RIGHTS_MANAGER_STEP_H__
       
    23 #include <test/testexecutestepbase.h>
       
    24 
       
    25 #include "cafstep.h"
       
    26 
       
    27 // Constants used to name test cases 
       
    28 _LIT(KCAFRightsManagerStep,"CAFRightsManagerStep");
       
    29 _LIT(KCAFRightsManagerListStep,"CAFRightsManagerListStep");
       
    30 
       
    31 class CCAFServer;
       
    32 
       
    33 
       
    34 /* 
       
    35 * Used to test CManager::CreateRightsManager()
       
    36 * The INI file specifies the file to delete and the expected return code.
       
    37 * For instance this can be used to try and delete a file that does not exist or a file
       
    38 * that is read-only or has rights that don't allow it to be deleted
       
    39 * INI file paramerters
       
    40 *
       
    41 *
       
    42 * result - the expected return code
       
    43 *
       
    44 * @internalComponent Exposure internally
       
    45 */
       
    46 class CCAFRightsManagerStep : public CCAFStep
       
    47 	{
       
    48 public:
       
    49 	CCAFRightsManagerStep(CCAFServer& aParent);
       
    50 	~CCAFRightsManagerStep();
       
    51 	virtual TVerdict doTestStepL();
       
    52 private:
       
    53 	CCAFServer& iParent;
       
    54 	};
       
    55 
       
    56 
       
    57 
       
    58 /* 
       
    59 * Used to test CManager::Listxxxx() functions
       
    60 * The INI file specifies the file to delete and the expected return code.
       
    61 * For instance this can be used to try and delete a file that does not exist or a file
       
    62 * that is read-only or has rights that don't allow it to be deleted
       
    63 * INI file paramerters
       
    64 *
       
    65 *
       
    66 * result - the expected return code
       
    67 *
       
    68 * @internalComponent Exposure internally
       
    69 */
       
    70 class CCAFRightsManagerListStep : public CCAFStep
       
    71 	{
       
    72 public:
       
    73 	CCAFRightsManagerListStep(CCAFServer& aParent);
       
    74 	~CCAFRightsManagerListStep();
       
    75 	virtual TVerdict doTestStepL();
       
    76 private:
       
    77 	CCAFServer& iParent;
       
    78 	};
       
    79 
       
    80 #endif
       
    81