|
1 /* |
|
2 * Copyright (c) 2007 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: Server definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SLOT_H |
|
20 #define __SLOT_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "wmdrmserver.h" |
|
24 |
|
25 class CWmDrmServer; |
|
26 class CEnumerator; |
|
27 class CSlotData; |
|
28 |
|
29 class CSlot: public CBase |
|
30 { |
|
31 public: |
|
32 |
|
33 static CSlot* NewL( CWmDrmServer* aServer, const TDesC8& aMessageBuffer ); |
|
34 |
|
35 static CSlot* NewL( CWmDrmServer* aServer, CEnumerator* aEnumerator ); |
|
36 |
|
37 void ConstructL( CWmDrmServer* aServer, const TDesC8& aMessageBuffer ); |
|
38 |
|
39 void ConstructL( CWmDrmServer* aServer, CEnumerator* aEnumerator ); |
|
40 |
|
41 ~CSlot(); |
|
42 |
|
43 void CreateL( TInt& aInitialSize ); |
|
44 |
|
45 TInt OpenL( TInt& aCurrentSize ); |
|
46 |
|
47 TInt SeekL( TInt& aOffset, TSeek aOrigin ); |
|
48 |
|
49 TInt Read( TDes8& aBuffer ); |
|
50 |
|
51 TInt WriteL( const TDesC8& aBuffer ); |
|
52 |
|
53 TInt ResizeL( TInt aNewSize ); |
|
54 |
|
55 TInt DeleteL(); |
|
56 |
|
57 TInt Size(); |
|
58 |
|
59 void Close(); |
|
60 |
|
61 TBuf8<KMaxWmDrmStoreNameSize> iStore; |
|
62 TBuf8<KMaxWmDrmNamespaceNameSize> iNamespace; |
|
63 TBuf8<KWmDrmIdSize> iHashKey; |
|
64 TBuf8<KWmDrmIdSize> iUniqueKey; |
|
65 CSlotData* iData; |
|
66 TInt iDataPosition; |
|
67 |
|
68 }; |
|
69 |
|
70 #endif |