author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2007-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 the License "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: This Class is used to create instance of CVideoPlayerUtility |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef MGMEDIACONTAINER_H_ |
|
20 |
#define MGMEDIACONTAINER_H_ |
|
21 |
||
22 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
23 |
#include<coecntrl.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
24 |
#include<w32std.h> |
19 | 25 |
#include<e32std.h> |
26 |
#include<e32base.h> |
|
27 |
// CLASS DECLARATION |
|
28 |
||
29 |
/** |
|
30 |
* CMediaContainer class This class can be used to create instance of CVideoPlayerUtility |
|
31 |
* |
|
32 |
* @since Series60 v3.2 |
|
33 |
*/ |
|
34 |
class CMediaContainer : public CCoeControl |
|
35 |
{ |
|
36 |
public: |
|
37 |
/** |
|
38 |
* Two-phased constructor |
|
39 |
* @return CImageResolution* Returns the instance of |
|
40 |
* CImageResolution. |
|
41 |
*/ |
|
42 |
||
43 |
static CMediaContainer* NewL(TRect& aRect); |
|
44 |
/** |
|
45 |
* Symbian ConstructL |
|
46 |
* |
|
47 |
*/ |
|
48 |
void ConstructL(TRect& aRect); |
|
49 |
/** |
|
50 |
* C++ Constructor |
|
51 |
||
52 |
* |
|
53 |
*/ |
|
54 |
CMediaContainer(); |
|
55 |
/** |
|
56 |
* Destructor |
|
57 |
* @since Series60 v3.2 |
|
58 |
* @param aUrl Url of the image file |
|
59 |
* |
|
60 |
*/ |
|
61 |
~CMediaContainer(); |
|
62 |
||
63 |
||
64 |
public: |
|
65 |
/** |
|
66 |
* Protectes members of CCoeControl class |
|
67 |
* @since Series60 v3.2 |
|
68 |
* |
|
69 |
*/ |
|
70 |
void Draw(const TRect& aRect) const; |
|
71 |
/** |
|
72 |
* Protectes members of CCoeControl class |
|
73 |
* @since Series60 v3.2 |
|
74 |
* |
|
75 |
*/ |
|
76 |
||
77 |
RWindow& ClientWindow(){ |
|
78 |
return Window(); |
|
79 |
} |
|
80 |
/** |
|
81 |
* Protectes members of CCoeControl class |
|
82 |
* @since Series60 v3.2 |
|
83 |
* |
|
84 |
*/ |
|
85 |
||
86 |
TRect VideoRect() const |
|
87 |
{ |
|
88 |
return iVideoRect; |
|
89 |
} |
|
90 |
/** |
|
91 |
* Protectes members of CCoeControl class |
|
92 |
* @since Series60 v3.2 |
|
93 |
* |
|
94 |
*/ |
|
95 |
||
96 |
RWsSession& ClientWsSession() |
|
97 |
{ |
|
98 |
return ControlEnv()->WsSession(); |
|
99 |
} |
|
100 |
/** |
|
101 |
* Protectes members of CCoeControl class |
|
102 |
* @since Series60 v3.2 |
|
103 |
* |
|
104 |
*/ |
|
105 |
||
106 |
CWsScreenDevice& ScreenDevice() |
|
107 |
{ |
|
108 |
return *(ControlEnv()->ScreenDevice()); |
|
109 |
} |
|
110 |
private: |
|
111 |
/** |
|
112 |
*Instance of TRect |
|
113 |
*/ |
|
114 |
||
115 |
TRect iVideoRect; |
|
116 |
}; |
|
117 |
||
118 |
#endif /* MGMEDIACONTAINER_H_ */ |