|
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: Implementation of the Helper Client session functionality |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <e32std.h> |
|
21 #include "RDRMHelper.h" |
|
22 #include "drmhelpercommon.h" |
|
23 |
|
24 // LOCAL CONSTANTS AND MACROS |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // RDRMHelper::RDRMHelper |
|
30 // C++ default constructor can NOT contain any code, that might leave. |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 RDRMHelper::RDRMHelper() : RSessionBase() |
|
34 { |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // RDRMHelper::Connect |
|
39 // |
|
40 // Connect to the server session |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 TInt RDRMHelper::Connect() |
|
44 { |
|
45 return KErrNone; |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // RDRMHelper::Version |
|
50 // |
|
51 // return server version |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 TVersion RDRMHelper::Version() const |
|
55 { |
|
56 return( TVersion( KDRMHSMajorVersionNumber, KDRMHSMinorVersionNumber, |
|
57 KDRMHSBuildVersionNumber ) ); |
|
58 } |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // RDRMHelper::SetAutomated |
|
62 // |
|
63 // Register one content uri to the helper server |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 TInt RDRMHelper::SetAutomated( |
|
67 const TDesC8& /*aUri*/, |
|
68 TBool /*aActive*/, |
|
69 TInt /*aAutomatedType*/, |
|
70 TInt /*aIntent*/ ) const |
|
71 { |
|
72 return KErrNone; |
|
73 } |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // RDRMHelper::RemoveAutomated |
|
77 // |
|
78 // Unregister one content uri |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 TInt RDRMHelper::RemoveAutomated( |
|
82 const TDesC8& /*aUri*/, |
|
83 TBool /*aActive*/, |
|
84 TInt /*aAutomatedType*/, |
|
85 TInt /*aIntent*/ ) const |
|
86 { |
|
87 return KErrNone; |
|
88 } |
|
89 |
|
90 // ----------------------------------------------------------------------------- |
|
91 // RDRMHelper::RemoveAutomatedAll |
|
92 // |
|
93 // Unregister one content uri |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 TInt RDRMHelper::RemoveAutomatedAll( |
|
97 const TDesC8& /*aUri*/, |
|
98 TBool /*aActive*/, |
|
99 TInt /*aAutomatedType*/, |
|
100 TInt /*aIntent*/ ) const |
|
101 { |
|
102 return KErrNone; |
|
103 } |
|
104 |
|
105 // ----------------------------------------------------------------------------- |
|
106 // RDRMHelper::IndicateIdle |
|
107 // ----------------------------------------------------------------------------- |
|
108 // |
|
109 TInt RDRMHelper::IndicateIdle() const |
|
110 { |
|
111 return KErrNone; |
|
112 } |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // RDRMHelper::IsAutomated |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 TInt RDRMHelper::IsAutomated( |
|
119 const TDesC8& /*aUri*/, |
|
120 TInt /*aAutomatedType*/, |
|
121 TInt /*aIntent*/, |
|
122 TBool& aAutomated, |
|
123 TInt& /*aType*/ ) const |
|
124 { |
|
125 aAutomated = EFalse; |
|
126 return KErrNone; |
|
127 } |
|
128 |
|
129 // ----------------------------------------------------------------------------- |
|
130 // RDRMHelper::StartServer |
|
131 // ----------------------------------------------------------------------------- |
|
132 // |
|
133 TInt RDRMHelper::StartServer() |
|
134 { |
|
135 return KErrNone; |
|
136 } |
|
137 |
|
138 // ----------------------------------------------------------------------------- |
|
139 // RDRMHelper::CreateServerProcess |
|
140 // ----------------------------------------------------------------------------- |
|
141 // |
|
142 TInt RDRMHelper::CreateServerProcess() |
|
143 { |
|
144 return KErrNone; |
|
145 } |
|
146 |
|
147 |
|
148 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
149 |
|
150 |
|
151 // End of File |