diff -r f5050f1da672 -r 04becd199f91 javacommons/security/legacysupport/midp2userpreferences/inc/MDomainPolicyFileParser.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javacommons/security/legacysupport/midp2userpreferences/inc/MDomainPolicyFileParser.h Tue Apr 27 16:30:29 2010 +0300 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +/** +@file +@publishedPartner +@released +*/ + +#ifndef MDOMAINPOLICYFILEPARSER_H +#define MDOMAINPOLICYFILEPARSER_H + +#include + +class RFile; + +namespace MIDP +{ +class MProtectionDomainTable; + +/** + * Interface to a class used to parse a Domain Policy File, and + * in doing so, create a list of protection domains contained within. + */ +class MDomainPolicyFileParser +{ +public: + + /** Destructor */ + virtual ~MDomainPolicyFileParser() = 0; + + /** + * Parse a Domain Policy File looking for Protection Domains. + * @param aFile + * Reference to an RFile object specifying the Domain Policy File. + * @return A pointer to a protection domains table, which the caller + * is responsible for deleting. + */ + virtual MProtectionDomainTable* ParseL(RFile& aFile) = 0; +}; + +inline MDomainPolicyFileParser::~MDomainPolicyFileParser() +{ +} + +} + +#endif // MDOMAINPOLICYFILEPARSER_H