|
1 /* |
|
2 * Copyright (c) 2002-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <E32base.h> |
|
21 #include <vedmovie.h> |
|
22 #include <mmcctranscoder.h> |
|
23 #include <mmcccodecinformation.h> |
|
24 #include <mmccinterfacedef.h> |
|
25 |
|
26 #include "transcoderimpl.h" |
|
27 #include "mcctranscoderlogs.h" |
|
28 |
|
29 |
|
30 |
|
31 // ============================= LOCAL FUNCTIONS =============================== |
|
32 |
|
33 // ============================ MEMBER FUNCTIONS =============================== |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // CMccTranscoder::CMccTranscoder |
|
37 // |
|
38 // CMccTranscoder default constructor, can NOT contain any code, |
|
39 // that might leave |
|
40 // Phase #1 of 2-phase constructor |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 CMccTranscoder::CMccTranscoder() |
|
44 { |
|
45 |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CMccTranscoder::NewL |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 CMccTranscoder* CMccTranscoder::NewL() |
|
53 { |
|
54 CMccTranscoder* self = new ( ELeave ) CMccTranscoder; |
|
55 CleanupStack::PushL ( self ); |
|
56 self->ConstructL(); |
|
57 CleanupStack::Pop( self ); |
|
58 return self; |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CMccTranscoder::ConstructL |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 void CMccTranscoder::ConstructL() |
|
66 { |
|
67 iTranscoderImpl = CMccTranscoderImpl::NewL(); |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // CMccTranscoder::~CMccTranscoder |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 CMccTranscoder::~CMccTranscoder() |
|
75 { |
|
76 delete iTranscoderImpl; |
|
77 } |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CMccTranscoder::RegisterEventObserver |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 void CMccTranscoder::RegisterEventObserver( MMccTranscoderObserver& aObserver ) |
|
84 { |
|
85 __TRANSCODER( "CMccTranscoder::RegisterEventObserver" ) |
|
86 |
|
87 if ( iTranscoderImpl ) |
|
88 { |
|
89 iTranscoderImpl->RegisterEventObserver( aObserver ); |
|
90 } |
|
91 } |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // CMccTranscoder::UnregisterEventObserver |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 void CMccTranscoder::UnregisterEventObserver() |
|
98 { |
|
99 __TRANSCODER( "CMccTranscoder::UnregisterEventObserver" ) |
|
100 |
|
101 if ( iTranscoderImpl ) |
|
102 { |
|
103 iTranscoderImpl->UnregisterEventObserver(); |
|
104 } |
|
105 } |
|
106 |
|
107 // ----------------------------------------------------------------------------- |
|
108 // CMccTranscoder::TranscodeFile |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 void CMccTranscoder::TranscodeFileL( TUint32& aSessionId, const TDesC8& aVal ) |
|
112 { |
|
113 __ASSERT_ALWAYS( iTranscoderImpl, User::Leave( KErrNotReady ) ); |
|
114 |
|
115 iTranscoderImpl->TranscodeFileL( aSessionId, aVal); |
|
116 } |
|
117 |
|
118 // ----------------------------------------------------------------------------- |
|
119 // CMccTranscoder::CancelTranscodeFile |
|
120 // ----------------------------------------------------------------------------- |
|
121 // |
|
122 void CMccTranscoder::CancelTranscodeFileL( TUint32 aSessionId ) |
|
123 { |
|
124 __TRANSCODER( "CMccTranscoder::CancelTranscodeFileL" ) |
|
125 |
|
126 iTranscoderImpl->CancelTranscodeFileL( aSessionId ); |
|
127 } |
|
128 |
|
129 |
|
130 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
131 |
|
132 // End of File |