equal
deleted
inserted
replaced
|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef CMEDIASYNCDATAWRITER_H |
|
22 #define CMEDIASYNCSERVERSESSION_H |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 #include "cmediasyncserverdef.h" |
|
27 |
|
28 class CMediaSyncDataWriter : public CBase |
|
29 { |
|
30 public: |
|
31 static CMediaSyncDataWriter* NewLC(const RChunk& aChunk); |
|
32 /** virtual C++ destructor */ |
|
33 ~CMediaSyncDataWriter(); |
|
34 |
|
35 TInt FreeSpaceBytes(); |
|
36 void AppendEntryL(TUint32 aObjectId, TUint8 aType, const TDesC& aUri); |
|
37 |
|
38 private: |
|
39 /** C++ constructor initialises */ |
|
40 CMediaSyncDataWriter(); |
|
41 void ConstructL(const RChunk& aChunk); |
|
42 |
|
43 inline void CheckBufferCapacityL(TInt aReqSize); |
|
44 |
|
45 private: |
|
46 TDataHeaderInfo* iHeaderInfo; |
|
47 TUint8* iWriteBase; |
|
48 TInt iOffset; |
|
49 TInt iMaxSize; |
|
50 }; |
|
51 |
|
52 #endif /*CMEDIASYNCSERVERSESSION_H*/ |