|
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: Internal data types for client/server communications. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef DRMGENERICCLIENTSERVER_H |
|
20 #define DRMGENERICCLIENTSERVER_H |
|
21 |
|
22 #include <caf/caf.h> |
|
23 #include "DRMPointerArray.h" |
|
24 |
|
25 const TUint8 KDRMKeyLength = 16; |
|
26 typedef TBuf8< KDRMKeyLength > TDRMKey; |
|
27 |
|
28 |
|
29 _LIT( KDRMEngCommonSemaphore, "rightsserver" ); |
|
30 |
|
31 |
|
32 enum KDRMErrors |
|
33 { |
|
34 EOk = KErrNone, |
|
35 EGeneralError = -30100, |
|
36 EUnknownMIME = -30101, |
|
37 EVersionNotSupported = -30102, |
|
38 ESessionError = -30103, |
|
39 ENoRights = KErrCANoRights, |
|
40 ERightsDBCorrupted = -30105, |
|
41 EUnsupported = KErrCANotSupported, |
|
42 ERightsExpired = KErrCANoPermission, |
|
43 EInvalidRights = -30108 |
|
44 }; |
|
45 #endif // DRMGENERICCLIENTSERVER_H |
|
46 |
|
47 // End of File |