|
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: DRMClockServer manages the DRMTime in the System |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CDRMCLOCKSERVER_H |
|
21 #define CDRMCLOCKSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <f32file.h> |
|
26 #include "DRMClock.h" |
|
27 // #include "DRMClientServer.h" |
|
28 #include "DRMClockSession.h" |
|
29 |
|
30 // CONSTANTS |
|
31 // MACROS |
|
32 // DATA TYPES |
|
33 // FUNCTION PROTOTYPES |
|
34 TInt StartupClock( TAny* ); |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 |
|
41 /** |
|
42 * This class implements the DRM Clock Server functionality. |
|
43 * |
|
44 * @lib unipertar.exe |
|
45 * @since S60Rel2.6 |
|
46 */ |
|
47 NONSHARABLE_CLASS( CDRMClockServer ) : public CServer2 |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. |
|
53 * @since S60Rel2.6 |
|
54 * @return Pointer to newly created server instance. |
|
55 */ |
|
56 static CDRMClockServer* NewL(); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 * @since S60Rel2.6 |
|
61 */ |
|
62 ~CDRMClockServer(); |
|
63 |
|
64 public: // Functions from base classes |
|
65 |
|
66 protected: // New functions |
|
67 |
|
68 protected: // Functions from base classes |
|
69 //class CServer |
|
70 /** |
|
71 * RunError. |
|
72 * @since S60Rel2.6 |
|
73 * @param aError Error code from RunL function. |
|
74 * @return An error is returned if RunError() cannot process the |
|
75 * error. |
|
76 */ |
|
77 TInt RunError( TInt aError ); |
|
78 |
|
79 private: |
|
80 /** |
|
81 * C++ default constructor. |
|
82 * @since S60Rel2.6 |
|
83 */ |
|
84 CDRMClockServer(); |
|
85 |
|
86 /** |
|
87 * By default Symbian 2nd phase constructor is private. |
|
88 * @since S60Rel2.6 |
|
89 */ |
|
90 void ConstructL(); |
|
91 |
|
92 private: // Functions from base classes |
|
93 // Class CServer |
|
94 /** |
|
95 * NewSessionL |
|
96 * @since S60Rel2.6 |
|
97 */ |
|
98 |
|
99 CSession2* NewSessionL( const TVersion& aVersion, |
|
100 const RMessage2& aMessage) const; |
|
101 |
|
102 public: // Data |
|
103 |
|
104 protected: // Data |
|
105 |
|
106 private: // Data |
|
107 CDRMClock* iDRMClock; |
|
108 |
|
109 public: // Friend classes |
|
110 |
|
111 protected: // Friend classes |
|
112 |
|
113 private: // Friend classes |
|
114 |
|
115 }; |
|
116 |
|
117 #endif // CDRMCLOCKSERVER_H |
|
118 |
|
119 // End of File |