persistentstorage/dbms/security/SC_PassAllPolicy.h
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // CPassAllPolicy class
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __SC_PASSALLPOLICY_H__
       
    19 #define __SC_PASSALLPOLICY_H__
       
    20 
       
    21 #include <e32base.h>		//CBase
       
    22 #include "D32Security.h"
       
    23 
       
    24 namespace DBSC
       
    25 {
       
    26 
       
    27 /**
       
    28 CPassAllPolicy class implements MPolicy interface.
       
    29 It describes a "pass all" policy object and will be used for 
       
    30 non-secure and legacy databases.
       
    31 @internalComponent
       
    32 */
       
    33 NONSHARABLE_CLASS(CPassAllPolicy) : public CBase, public MPolicy
       
    34 	{
       
    35 public:
       
    36 	CPassAllPolicy(TPolicyObjType aPOType);
       
    37 	virtual ~CPassAllPolicy();
       
    38 	virtual TBool Check(const RMessage2&, TPolicyType) const;
       
    39 	virtual TInt Get(TPolicyType, TSecurityPolicy& aPolicy) const;
       
    40 	DECLARE_DB_DUMP2(aFile)
       
    41 
       
    42 private:
       
    43 	TPolicyObjType iPOType;
       
    44 
       
    45 	};
       
    46 
       
    47 } //end of - namespace DBSC
       
    48 
       
    49 #endif//__SC_PASSALLPOLICY_H__