diff -r 7aa6007702af -r 61b27eec6533 rtsecuritymanager/rtsecuritymanagerserver/inc/rtsecmgrprotectiondomain.inl --- a/rtsecuritymanager/rtsecuritymanagerserver/inc/rtsecmgrprotectiondomain.inl Fri Apr 16 15:54:49 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -/* -* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "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: Definition of security protection domain inline functions - * -*/ - - - - - - - -/** - * Default private constructor - * - */ -inline CProtectionDomain::CProtectionDomain() : - iDomain(NULL) - { - } - -/** - * Two phased constructor - * - */ -inline void CProtectionDomain::ConstructL() - { - iPermSet = CPermissionSet::NewL (); - } - -/** - * Gets underlying permission set instance - * - * @return const CPermissionSet& permission set instance - * - */ -inline const CPermissionSet& CProtectionDomain::PermSet() const - { - return *iPermSet; - } - -/** - * Gets domain name - * - * @return const TDesC& domain name - * - */ -inline const TDesC& CProtectionDomain::DomainName() const - { - if ( iDomain) - return *iDomain; - else - return KNullDesC (); - } - -/** - * Sets domain name - * - * @param aDomainName const TDesC& input domain name string - */ -inline void CProtectionDomain::SetDomainName(const TDesC& aDomain) - { - if ( iDomain) - { - delete iDomain; - iDomain = NULL; - } - - iDomain = aDomain.AllocL (); - } - -/** - * Sets permission set - * - * @param aPermissionSet CPermissionSet* input permission set - */ -inline void CProtectionDomain::SetCapInfo(CPermissionSet* aPermissionSet) - { - if ( iPermSet) - { - delete iPermSet; - } - - iPermSet = aPermissionSet; - } \ No newline at end of file