|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Waits for sink buffer flushing in datapaths |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <mmf/common/mmfcontroller.h> |
|
23 #include "Mcccompletecallback.h" |
|
24 #include "Mcculdatapath.h" |
|
25 #include "Mccdldatapath.h" |
|
26 |
|
27 // EXTERNAL DATA STRUCTURES |
|
28 |
|
29 // EXTERNAL FUNCTION PROTOTYPES |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 // MACROS |
|
34 |
|
35 // LOCAL CONSTANTS AND MACROS |
|
36 |
|
37 // MODULE DATA STRUCTURES |
|
38 |
|
39 // LOCAL FUNCTION PROTOTYPES |
|
40 |
|
41 // FORWARD DECLARATIONS |
|
42 |
|
43 // ============================= LOCAL FUNCTIONS =============================== |
|
44 |
|
45 // ============================ MEMBER FUNCTIONS =============================== |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CCompleteCallback::CCompleteCallback |
|
49 // Constructor |
|
50 // ----------------------------------------------------------------------------- |
|
51 CCompleteCallback::CCompleteCallback( MAsyncEventHandler& aEventhandler, |
|
52 TBool aWaitForSink ) : CActive( EPriorityNormal ), |
|
53 iEventhandler( aEventhandler ), |
|
54 iWaitForSink( aWaitForSink ) |
|
55 { |
|
56 |
|
57 } |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // CCompleteCallback::~CCompleteCallback |
|
61 // Destructor |
|
62 // ----------------------------------------------------------------------------- |
|
63 CCompleteCallback::~CCompleteCallback() |
|
64 { |
|
65 |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // CCompleteCallback::SignalDataPathComplete |
|
70 // Signals that datapath is completed |
|
71 // ----------------------------------------------------------------------------- |
|
72 void CCompleteCallback::SignalDataPathComplete( TInt /*aDataPathError*/ ) |
|
73 { |
|
74 |
|
75 } |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // CCompleteCallback::ActiveStatus |
|
79 // Sets the object active and returns it's status |
|
80 // ----------------------------------------------------------------------------- |
|
81 TRequestStatus& CCompleteCallback::ActiveStatus() |
|
82 { |
|
83 return iStatus; |
|
84 } |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // CCompleteCallback::DoCancel |
|
88 // Cancel worker functions |
|
89 // ----------------------------------------------------------------------------- |
|
90 void CCompleteCallback::DoCancel() |
|
91 { |
|
92 } |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // CCompleteCallback::RunL |
|
96 // Active object event handling |
|
97 // ----------------------------------------------------------------------------- |
|
98 void CCompleteCallback::RunL() |
|
99 { |
|
100 |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // CCompleteCallback::RunError |
|
105 // Active object event handling |
|
106 // ----------------------------------------------------------------------------- |
|
107 TInt CCompleteCallback::RunError( TInt /*aError*/ ) |
|
108 { |
|
109 return KErrNone; |
|
110 } |
|
111 |
|
112 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
113 |
|
114 // End of File |