|
1 /* |
|
2 * Copyright (c) 2004 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: DRM3 Notifier manages all notifications out of the system. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CRoapStorageServer_H |
|
21 #define CRoapStorageServer_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <f32file.h> |
|
26 #include "RoapStorageSession.h" |
|
27 |
|
28 // CONSTANTS |
|
29 // MACROS |
|
30 // DATA TYPES |
|
31 // FUNCTION PROTOTYPES |
|
32 TInt StartupRoapStorage( TAny* ); |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 // CLASS DECLARATION |
|
36 class CDRMContextDB; |
|
37 |
|
38 /** |
|
39 * This class implements the Roap Storage Server functionality. |
|
40 * |
|
41 * @lib RightsServer.exe |
|
42 * @since 3.0 |
|
43 */ |
|
44 NONSHARABLE_CLASS( CRoapStorageServer ) : public CServer2 |
|
45 { |
|
46 public: // Constructors and destructor |
|
47 |
|
48 /** |
|
49 * Two-phased constructor. |
|
50 * @since 3.0 |
|
51 * @return Pointer to newly created server instance. |
|
52 */ |
|
53 static CRoapStorageServer* NewL(); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 * @since 3.0 |
|
58 */ |
|
59 ~CRoapStorageServer(); |
|
60 |
|
61 /** |
|
62 * Returns CDRMContextDB handle |
|
63 * @since 3.0 |
|
64 */ |
|
65 CDRMContextDB* ContextDB(); |
|
66 |
|
67 public: // Functions from base classes |
|
68 |
|
69 protected: // New functions |
|
70 |
|
71 /** |
|
72 * Import PKI keys into the private directory |
|
73 * @since 3.0 |
|
74 */ |
|
75 void ImportKeysL(); |
|
76 |
|
77 protected: // Functions from base classes |
|
78 //class CServer |
|
79 /** |
|
80 * RunError. |
|
81 * @since 3.0 |
|
82 * @param aError Error code from RunL function. |
|
83 * @return An error is returned if RunError() cannot process the |
|
84 * error. |
|
85 */ |
|
86 TInt RunError( TInt aError ); |
|
87 |
|
88 private: |
|
89 /** |
|
90 * C++ default constructor. |
|
91 * @since 3.0 |
|
92 */ |
|
93 CRoapStorageServer(); |
|
94 |
|
95 /** |
|
96 * By default Symbian 2nd phase constructor is private. |
|
97 * @since 3.0 |
|
98 */ |
|
99 void ConstructL(); |
|
100 |
|
101 |
|
102 private: // Functions from base classes |
|
103 // Class CServer |
|
104 /** |
|
105 * NewSessionL |
|
106 * @since 3.0 |
|
107 */ |
|
108 CSession2* NewSessionL( const TVersion& aVersion, |
|
109 const RMessage2& aMessage) const; |
|
110 |
|
111 public: // Data |
|
112 |
|
113 protected: // Data |
|
114 |
|
115 private: // Data |
|
116 |
|
117 RFs iRFs; |
|
118 CDRMContextDB* iRoapStorage; |
|
119 |
|
120 public: // Friend classes |
|
121 |
|
122 protected: // Friend classes |
|
123 |
|
124 private: // Friend classes |
|
125 |
|
126 }; |
|
127 |
|
128 #endif // CDRMRIGHTSSERVER_H |
|
129 |
|
130 // End of File |