First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // CPassAllPolicy class - "DBMS security" related code. Used in no_security environment or for
15 // non-secure databases
19 #include "SC_PassAllPolicy.h"
24 CPassAllPolicy::CPassAllPolicy(TPolicyObjType aPOType) :
29 CPassAllPolicy::~CPassAllPolicy()
33 //The method returns always ETrue.
34 TBool CPassAllPolicy::Check(const RMessage2&, TPolicyType) const
39 //The method initializes aPolicy parameter with "EAlwaysPass" type policy instance and
41 TInt CPassAllPolicy::Get(TPolicyType, TSecurityPolicy& aPolicy) const
44 aPolicy = TSecurityPolicy(TSecurityPolicy::EAlwaysPass);
49 void CPassAllPolicy::Dump(RFile& aFile) const
51 _LIT8(KClassName, "Class: CPassAllPolicy. this=%X");
54 _LIT8(KObjType, "Object: ");
55 _LIT8(KDatabase, "Database");
56 _LIT8(KTable, "Table");
58 buf.Format(KClassName, this);
59 (void)aFile.Write(buf);
60 (void)aFile.Write(KCrLf);
61 (void)aFile.Write(KObjType);
62 iPOType == EPOTDatabase ? (void)aFile.Write(KDatabase) : (void)aFile.Write(KTable);
63 (void)aFile.Write(KCrLf);
67 } //end of - namespace DBSC