equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-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 #ifndef AVRCPFRAGMENTER_H |
|
17 #define AVRCPFRAGMENTER_H |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 @released |
|
23 */ |
|
24 |
|
25 #define KAVRCPMinVendorDependentResponseLen 4 |
|
26 |
|
27 #include <e32base.h> |
|
28 |
|
29 NONSHARABLE_CLASS(CAVRCPFragmenter) : public CBase |
|
30 { |
|
31 public: |
|
32 static CAVRCPFragmenter* NewL(); |
|
33 void Reset(); |
|
34 void AssignPayload(const RBuf8& aPayload); |
|
35 TBool InFragmentedState(); |
|
36 TPtr8 GetNextFragmentHeader(); |
|
37 TPtr8 GetNextFragment(); |
|
38 TBool LastFragment(); |
|
39 TInt GetPDU(); |
|
40 ~CAVRCPFragmenter() { iPayload.Close(); } |
|
41 |
|
42 private: |
|
43 CAVRCPFragmenter() {} |
|
44 void Construct(); |
|
45 |
|
46 private: |
|
47 RBuf8 iPayload; |
|
48 TBool iInFragmentedState; |
|
49 TInt iStart; |
|
50 }; |
|
51 |
|
52 #endif // AVRCPFRAGMENTER_H |