equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2006 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: Header file for direct use of cert provisioner info server. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef INFOSERVERCLIENT_H |
|
20 #define INFOSERVERCLIENT_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 #include <e32cons.h> |
|
26 #include <etelmm.h> |
|
27 #include <f32file.h> |
|
28 |
|
29 |
|
30 // CONSTANTS |
|
31 _LIT( KBTICCertProvInfoServer, "CertProvisionerInfoServer" ); |
|
32 _LIT( KBTICCPEmulatorSn, "123456789123456789" ); |
|
33 |
|
34 const TUid KBTICCertProvInfoServerUid3 = { 0x1027508A }; |
|
35 |
|
36 enum TPSMessages |
|
37 { |
|
38 EPSSerialNumber |
|
39 }; |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 /** |
|
44 * RInfoServerClient class |
|
45 * Class for using directly Certificate Provisioner Info Server. |
|
46 * |
|
47 * @lib |
|
48 * @since |
|
49 */ |
|
50 class RInfoServerClient : public RSessionBase |
|
51 { |
|
52 public: |
|
53 /** |
|
54 * Connects Certificate Provisioner Server |
|
55 * @param |
|
56 * @return |
|
57 **/ |
|
58 TInt Connect(); |
|
59 |
|
60 /** |
|
61 * Closes session to Certificate Provisioner Server |
|
62 * @param |
|
63 * @return |
|
64 **/ |
|
65 void Close(); |
|
66 |
|
67 /** |
|
68 * Gets Serial Number from Certificate Provisioner Info Server |
|
69 * @param |
|
70 * @return |
|
71 **/ |
|
72 TInt GetSerialNumber( TDes& aSerialNumber ); |
|
73 |
|
74 }; |
|
75 |
|
76 #endif // INFOSERVERCLIENT_H |