cryptomgmtlibs/securityutils/source/secsettings/secsettingsserver/secsettingsserver.cpp
changeset 31 5b5ca9f4f7b4
equal deleted inserted replaced
30:cf642210ecb7 31:5b5ca9f4f7b4
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * Implements CSecSettingsServer.	See class and function definitions for
       
    16 * more information.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23 */
       
    24 
       
    25 #include "secsettingsserver.h"
       
    26 #include <e32property.h>
       
    27 #include <sacls.h>
       
    28 
       
    29 namespace SecuritySettingsServer
       
    30 {
       
    31 CSecSettingsServer* CSecSettingsServer::NewLC()
       
    32 /**
       
    33 	Factory function allocates new, initialized instance of
       
    34 	CSecSettingsServer which is left on the cleanup stack.
       
    35 
       
    36 	@return					New, initialized instance of CSecSettingsServer
       
    37 							which is left on the cleanup stack.
       
    38  */
       
    39 	{
       
    40 	CSecSettingsServer* self = new(ELeave) CSecSettingsServer();
       
    41 	CleanupStack::PushL(self);
       
    42 	self->ConstructL();
       
    43 	return self;
       
    44 	}
       
    45 
       
    46 CSecSettingsServer::CSecSettingsServer()
       
    47 /**
       
    48 	Initializes the superclass with this server's version.
       
    49  */
       
    50 	:	CScsServer(SecuritySettingsServer::Version(), EPriorityStandard)
       
    51 	{
       
    52 	// empty.
       
    53 	}
       
    54 
       
    55 void CSecSettingsServer::ConstructL()
       
    56 /**
       
    57 	Second-phase construction initializes the superclass and
       
    58 	starts the server.
       
    59  */
       
    60 	{
       
    61 	CScsServer::ConstructL(SecuritySettingsServer::KShutdownPeriodUs);
       
    62 
       
    63 	StartL(SecuritySettingsServer::KSecSettingsServerName);
       
    64 	}
       
    65 
       
    66 
       
    67 
       
    68 CSecSettingsServer::~CSecSettingsServer()
       
    69 /**
       
    70 	Cleanup the server.
       
    71  */
       
    72 	{
       
    73 	}
       
    74 
       
    75 CScsSession* CSecSettingsServer::DoNewSessionL(const RMessage2& /*aMessage*/)
       
    76 /**
       
    77 	Implement CScsServer by allocating a new instance of CSecSettingsSession.
       
    78 
       
    79 	@param	aMessage		Standard server-side handle to message.	 Not used.
       
    80 	@return					New instance of CSecSettingsSession which is owned by the
       
    81 							caller.
       
    82  */
       
    83 	{
       
    84 	return CSecSettingsSession::NewL(*this);
       
    85 	}
       
    86 
       
    87 
       
    88 
       
    89 } // End of namespace SecuritySettingsServer
       
    90 // End of file