|
1 /* |
|
2 * Copyright (c) 2005 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: DRM Notifier's client/server interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef DRMNOTIFIERCLIENTSERVER_H |
|
20 #define DRMNOTIFIERCLIENTSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32def.h> |
|
24 #include <e32uid.h> |
|
25 |
|
26 namespace DRMNotifier |
|
27 { |
|
28 // CONSTANTS |
|
29 const TUint8 KServerMajorVersion = 3; |
|
30 const TUint8 KServerMinorVersion = 0; |
|
31 const TUint16 KServerBuildVersion = 0; |
|
32 |
|
33 const TInt KDRMSizeOfMessage = 350; |
|
34 |
|
35 _LIT( KServerName, "!DRMNotifier" ); |
|
36 |
|
37 // MACROS |
|
38 // DATA TYPES |
|
39 |
|
40 enum TDRMNotifyCommand |
|
41 { |
|
42 /* |
|
43 Command: Notifies the clients of the server |
|
44 Params: |
|
45 TRequestStatus& aRequestStatus ( given by the user ) |
|
46 */ |
|
47 ENotifyClients = 0x01, |
|
48 |
|
49 /* |
|
50 Command: Waits for notifications from the server |
|
51 Params: |
|
52 TRequestStatus& aRequestStatus ( given by the client ) |
|
53 */ |
|
54 ERecieveNotification = 0x02, |
|
55 |
|
56 |
|
57 /* |
|
58 Command: Register to the specific session |
|
59 Used to reduce messages between client |
|
60 and server |
|
61 */ |
|
62 ERegister = 0x03, |
|
63 |
|
64 /* |
|
65 Command: Register to the specific session |
|
66 Used to reduce messages between client |
|
67 and server |
|
68 */ |
|
69 EUnRegister = 0x04, |
|
70 |
|
71 /* |
|
72 Command: Register the uri to the specific session |
|
73 Used to reduce messages between client |
|
74 and server |
|
75 */ |
|
76 ERegisterURI = 0x05, |
|
77 |
|
78 /* |
|
79 Command: Register the uri to the specific session |
|
80 Used to reduce messages between client |
|
81 and server |
|
82 */ |
|
83 EUnRegisterURI = 0x06, |
|
84 |
|
85 /* |
|
86 Command: Waits for notifications from the server |
|
87 Params: |
|
88 */ |
|
89 ECancelNotification = 0xFF |
|
90 }; |
|
91 } |
|
92 |
|
93 #endif // DRMNOTIFIERCLIENTSERVER_H |
|
94 |
|
95 // End of File |