1 /* |
|
2 * Copyright (c) 2002 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 #ifndef MMMADIRECTCONTENT_H |
|
20 #define MMMADIRECTCONTENT_H |
|
21 |
|
22 class MMMAContainer; |
|
23 |
|
24 /** |
|
25 * Content, such as a video clip or camera view finder, which is displayed on |
|
26 * a container. |
|
27 */ |
|
28 class MMMADirectContent |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * Notify content that container visiblity has changed. The content must not |
|
33 * be displayed when it's container is invisible. |
|
34 * @param "aVisible" ETrue if the container is visible, EFalse if it is invisible. |
|
35 */ |
|
36 virtual void MdcContainerVisibilityChanged(TBool aVisible) = 0; |
|
37 |
|
38 /** |
|
39 * Notify content that content rect is changed. |
|
40 * @param aContentRect Maximum area the content can occupy in screen |
|
41 * co-ordinates. |
|
42 * @param aParentRect area that can be used to draw content in screen |
|
43 * co-ordinates. |
|
44 */ |
|
45 virtual void MdcContentRectChanged(const TRect& aContentRect, |
|
46 const TRect& aParentRect) = 0; |
|
47 |
|
48 /** |
|
49 * Notify content that container is about to be destoryed. |
|
50 */ |
|
51 virtual void MdcContainerDestroyed() = 0; |
|
52 |
|
53 /** |
|
54 * Sets new container for content. Content may not support changing |
|
55 * container. |
|
56 * @parma aContainer New container for content |
|
57 */ |
|
58 virtual void MdcSetContainer(MMMAContainer* aContainer) = 0; |
|
59 |
|
60 /** |
|
61 * This is used in bitmap mode. DSA mode content return allways NULL. |
|
62 * @return Bitmap to draw or NULL if not available. |
|
63 */ |
|
64 virtual CFbsBitmap* MdcFrameBuffer() const = 0; |
|
65 |
|
66 /** |
|
67 * This is used get preferred size when container need content size |
|
68 * @return source size which preferred size for container |
|
69 */ |
|
70 virtual TSize MdcSourceSize() = 0; |
|
71 |
|
72 /** |
|
73 * Notify content that the rect of a window has changed. |
|
74 * |
|
75 * @param aRect New rect of a window. |
|
76 */ |
|
77 virtual void MdcContainerWindowRectChanged(const TRect& aRect) = 0; |
|
78 }; |
|
79 |
|
80 #endif // MMMADIRECTCONTENT_H |
|