sl@0: // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // TPDStreamLoader class sl@0: // sl@0: // sl@0: sl@0: #ifndef __SC_STRMIN_H__ sl@0: #define __SC_STRMIN_H__ sl@0: sl@0: #include "SC_Policy.h" sl@0: sl@0: namespace DBSC sl@0: { sl@0: sl@0: /** sl@0: TPDStreamLoader class is an implementation of MPolicyDomainLoader interface and is used sl@0: for loading security policies from a binary policy file. The class uses TPolicyDomainBuilder sl@0: class functionality for adding loaded policies to the controlled by TPolicyDomainBuilder sl@0: instance CPolicyDomain collection. sl@0: @see MPolicyDomainLoader sl@0: @see TPolicyDomainBuilder sl@0: @see CPolicyBase::RPolicyCollection sl@0: @see CPolicyDomain sl@0: @internalComponent sl@0: */ sl@0: NONSHARABLE_CLASS(TPDStreamLoader) : public MPolicyDomainLoader sl@0: { sl@0: public: sl@0: inline TPDStreamLoader(RReadStream& aStream) : sl@0: iStream(aStream) sl@0: { sl@0: } sl@0: virtual void RunL(TPolicyDomainBuilder& aPolicyDomainBuilder); sl@0: sl@0: private: sl@0: void LoadPolicyCollectionL(CPolicyBase::RPolicyCollection& aPolicyColl); sl@0: sl@0: private: sl@0: RReadStream& iStream; sl@0: }; sl@0: sl@0: } //end of - namespace DBSC sl@0: sl@0: #endif//__SC_STRMIN_H__