Update contrib.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Server-side classes which are used to implement the SecSettings server.
25 #ifndef SECSETTINGSSERVER_H
26 #define SECSETTINGSSERVER_H
29 #include <scs/scsserver.h>
30 #include "secsettingscommon.h"
33 namespace SecuritySettingsServer
36 inline TVersion Version();
38 // forward declarations
39 class CSecSettingsServer;
42 class CSecSettingsSession : public CScsSession
44 This session object is used to generate sessions for the client
45 which wants to access the SecSettings Server.
49 static CSecSettingsSession* NewL(CSecSettingsServer &aServer);
50 virtual ~CSecSettingsSession();
52 // implement CScsSession
53 virtual TBool DoServiceL(TInt aFunction, const RMessage2& aMessage);
55 inline CSecSettingsServer *SecSettingsServer();
58 CSecSettingsSession(CSecSettingsServer &aServer);
63 class CSecSettingsServer : public CScsServer
65 A single instance of this object is used to generate server-side
66 sessions for the SecSettings client.
70 static CSecSettingsServer* NewLC();
71 virtual ~CSecSettingsServer();
73 // implement CScsServer
74 virtual CScsSession* DoNewSessionL(const RMessage2& aMessage);
84 inline CSecSettingsServer *CSecSettingsSession::SecSettingsServer()
86 // Calls base class function and cast to correct type.
87 return &static_cast<CSecSettingsServer &>(iServer);
90 } // End of namespace SecuritySettingsServer
93 #endif // #ifndef SECSETTINGSSERVER_H