equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 __MNGPROCESSOR_H__ |
|
17 |
|
18 #define __MNGPROCESSOR_H__ |
|
19 |
|
20 /** @file |
|
21 @internalTechnology */ |
|
22 |
|
23 #include "ChunkProcessor.h" |
|
24 |
|
25 class MInputStream; |
|
26 class TMngChunk; |
|
27 class CMngPlayer; |
|
28 |
|
29 class CMngProcessor: public CChunkProcessor |
|
30 { |
|
31 public: |
|
32 static CMngProcessor* NewL(CMngPlayer& aObjectList, TBool aMngSubframesNoLoops); //Subframes with No Loops |
|
33 ~CMngProcessor(); |
|
34 // MChunkProcessor // |
|
35 TBool OfferChunkType(const TChunkId& aChunkId); |
|
36 |
|
37 void Start(MInputStream& aInputStream, TRequestStatus& aRequest); |
|
38 |
|
39 TInt AddSubProcessor(MChunkProcessor& aSubProcessor); |
|
40 |
|
41 protected: |
|
42 void DoRunL(); |
|
43 |
|
44 private: |
|
45 CMngProcessor(CMngPlayer& aMngPlayer, TBool aMngSubframesNoLoops); //Subframes with No Loops |
|
46 |
|
47 private: |
|
48 TBool iMngSubframesNoLoops; //Subframes with No Loops |
|
49 TMngChunk* iCurrentChunk; |
|
50 enum TState |
|
51 { |
|
52 EReadMngSignature=0, |
|
53 ECheckSignature, |
|
54 EReadHeader, |
|
55 EReadChunk, |
|
56 EProcessStream |
|
57 } iState; |
|
58 TMngSignature iSignature; |
|
59 }; |
|
60 |
|
61 |
|
62 #endif // ndef __MNGPROCESSOR_H__ |