persistentstorage/dbms/security/SC_StrmIn.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 // TPDStreamLoader class
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __SC_STRMIN_H__
       
    19 #define __SC_STRMIN_H__
       
    20 
       
    21 #include "SC_Policy.h"
       
    22 
       
    23 namespace DBSC
       
    24 {
       
    25 
       
    26 /**
       
    27 TPDStreamLoader class is an implementation of MPolicyDomainLoader interface and is used
       
    28 for loading security policies from a binary policy file. The class uses TPolicyDomainBuilder
       
    29 class functionality for adding loaded policies to the controlled by TPolicyDomainBuilder
       
    30 instance CPolicyDomain collection.
       
    31 @see MPolicyDomainLoader
       
    32 @see TPolicyDomainBuilder
       
    33 @see CPolicyBase::RPolicyCollection
       
    34 @see CPolicyDomain
       
    35 @internalComponent
       
    36 */
       
    37 NONSHARABLE_CLASS(TPDStreamLoader) : public MPolicyDomainLoader
       
    38 	{
       
    39 public:
       
    40 	inline TPDStreamLoader(RReadStream& aStream) :
       
    41 		iStream(aStream)
       
    42 		{
       
    43 		}
       
    44 	virtual void RunL(TPolicyDomainBuilder& aPolicyDomainBuilder);
       
    45 
       
    46 private:
       
    47 	void LoadPolicyCollectionL(CPolicyBase::RPolicyCollection& aPolicyColl);
       
    48 
       
    49 private:
       
    50 	RReadStream& iStream;
       
    51 	};
       
    52 
       
    53 } //end of - namespace DBSC
       
    54 
       
    55 #endif//__SC_STRMIN_H__