Update contrib.
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 // TPDStreamPersister class
18 #ifndef __SC_STRMOUT_H__
19 #define __SC_STRMOUT_H__
21 #include "SC_Policy.h"
23 //Forward declarations
30 TPDStreamPersister class is an implementation of MPolicyDomainPersister interface and is used
31 for storing security policies to a binary policy file. The class uses TPolicyDomainReader
32 class functionality for retrieving the policies of the controlled by TPolicyDomainReader
33 instance CPolicyDomain collection.
34 @see MPolicyDomainPersister
35 @see TPolicyDomainReader
36 @see CPolicyBase::RPolicyCollection
40 class TPDStreamPersister : public MPolicyDomainPersister
43 inline TPDStreamPersister(RWriteStream& aStream) :
47 virtual void RunL(const TPolicyDomainReader& aPolicyDomainReader);
50 void ExternalizePolicyCollectionL(const CPolicyBase::RPolicyCollection& aPolicyCollection);
53 RWriteStream& iStream;
57 } //end of - namespace DBSC
59 #endif//__SC_STRMOUT_H__