|
1 /* |
|
2 * Copyright (c) 2007 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: Base class for media readers. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "BMMediaReader.h" |
|
20 #include "BMMediaReaderObserver.h" |
|
21 |
|
22 |
|
23 // ======== MEMBER FUNCTIONS ======== |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // Constructor |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CBubbleMediaReader::CBubbleMediaReader() |
|
30 { |
|
31 |
|
32 } |
|
33 |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // Destructor |
|
37 // --------------------------------------------------------------------------- |
|
38 // |
|
39 CBubbleMediaReader::~CBubbleMediaReader() |
|
40 { |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // HandleReadingComplete |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 void CBubbleMediaReader::HandleReadingComplete() |
|
48 { |
|
49 if ( iObserver ) |
|
50 { |
|
51 iObserver->FrameBufferDataChanged(); |
|
52 } |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------------------------- |
|
56 // HandleReadingError |
|
57 // --------------------------------------------------------------------------- |
|
58 // |
|
59 void CBubbleMediaReader::HandleReadingError( TInt aError ) |
|
60 { |
|
61 if ( iObserver ) |
|
62 { |
|
63 iObserver->ReaderError( aError ); |
|
64 } |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // FrameBuffer |
|
69 // --------------------------------------------------------------------------- |
|
70 // |
|
71 const CFbsBitmap* CBubbleMediaReader::FrameBuffer() const |
|
72 { |
|
73 return iFrameBuffer; |
|
74 } |
|
75 |
|
76 // --------------------------------------------------------------------------- |
|
77 // Mask |
|
78 // --------------------------------------------------------------------------- |
|
79 // |
|
80 const CFbsBitmap* CBubbleMediaReader::Mask() const |
|
81 { |
|
82 return iMask; |
|
83 } |
|
84 |
|
85 |