|
1 /* |
|
2 * Copyright (c) 2000 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 "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: Implementation of terminalsecurity components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __TERMINALCONTROL_SESSION_H__ |
|
20 #define __TERMINALCONTROL_SESSION_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "TerminalControlServer.h" |
|
25 |
|
26 class CTcTrustedSession; |
|
27 |
|
28 /** |
|
29 * CTerminalControlSession |
|
30 * Description. |
|
31 */ |
|
32 |
|
33 class CTerminalControlSession : public CSession2 |
|
34 { |
|
35 |
|
36 public: |
|
37 CTerminalControlSession(); |
|
38 void CreateL(); |
|
39 |
|
40 private: |
|
41 ~CTerminalControlSession(); |
|
42 CTerminalControlServer& Server(); |
|
43 |
|
44 void ServiceL ( const RMessage2& aMessage ); |
|
45 void DispatchMessageL ( const RMessage2& aMessage ); |
|
46 void ServiceError ( const RMessage2& aMessage, TInt aError ); |
|
47 |
|
48 void NewTrustedSessionL ( const RMessage2& aMessage ); |
|
49 CTcTrustedSession* TrustedSessionFromHandle ( const RMessage2& aMessage ); |
|
50 void DeleteTrustedSession ( const RMessage2& aMessage ); |
|
51 |
|
52 TInt SetDeviceLockParameterL ( const RMessage2 &aMessage ); |
|
53 TInt GetDeviceLockParameterSizeL ( const RMessage2 &aMessage ); |
|
54 TInt GetDeviceLockParameterL ( const RMessage2 &aMessage ); |
|
55 void GetDeviceLockParameterL ( TBuf8<MAX_NUMBER_OF_DIGITS_IN_10BASE_INT64> &sizeBuf, TInt aType ); |
|
56 |
|
57 HBufC8* CopyParameterL ( const RMessage2 &aMsg, TInt aIndex ); |
|
58 |
|
59 /** |
|
60 * Checks if device memory is encrypted or not. The check is only done for phone memory. |
|
61 * @return TBool. ETrue if phone memory is encrypted, otherwise EFalse. |
|
62 */ |
|
63 TBool IsDeviceMemoryEncrypted(); |
|
64 |
|
65 private: |
|
66 TInt iSubsessionCount; |
|
67 CObjectCon *iContainer; // object container for this session |
|
68 CObjectIx *iTrustedSessions; // object index which stores objects for this session |
|
69 }; |
|
70 |
|
71 #endif //__TERMINALCONTROL_SESSION_H__ |