|
1 /* |
|
2 * Copyright (c) 2008 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: Implementation of CMPXVideoPlaybackControlPdl |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 4 % |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDE FILES |
|
23 |
|
24 #include "mpxvideoplaybackcontrolpdl.h" |
|
25 #include "mpxvideo_debug.h" |
|
26 #include "mpxvideoplaybackcontrolscontroller.h" |
|
27 |
|
28 // ================= MEMBER FUNCTIONS ============================================================== |
|
29 |
|
30 // ------------------------------------------------------------------------------------------------- |
|
31 // CMPXVideoPlaybackControlPdl::CMPXVideoPlaybackControlPdl() |
|
32 // C++ default constructor can NOT contain any code, that might leave. |
|
33 // ------------------------------------------------------------------------------------------------- |
|
34 // |
|
35 CMPXVideoPlaybackControlPdl::CMPXVideoPlaybackControlPdl( |
|
36 CMPXVideoPlaybackControlsController* aController, |
|
37 CCoeControl* aControl, |
|
38 TMPXVideoPlaybackControls aControlIndex, |
|
39 TUint aProperties ) |
|
40 : CMPXVideoPlaybackControl( aController, aControl, aControlIndex, aProperties ) |
|
41 { |
|
42 } |
|
43 |
|
44 |
|
45 // ------------------------------------------------------------------------------------------------- |
|
46 // CMPXVideoPlaybackControlPdl::NewL() |
|
47 // Two-phased constructor. |
|
48 // ------------------------------------------------------------------------------------------------- |
|
49 // |
|
50 CMPXVideoPlaybackControlPdl* CMPXVideoPlaybackControlPdl::NewL( |
|
51 CMPXVideoPlaybackControlsController* aController, |
|
52 CCoeControl* aControl, |
|
53 TRect aRect, |
|
54 TMPXVideoPlaybackControls aControlIndex, |
|
55 TUint aProperties ) |
|
56 { |
|
57 MPX_DEBUG(_L("CMPXVideoPlaybackControlPdl::NewL()")); |
|
58 |
|
59 CMPXVideoPlaybackControlPdl* self = new (ELeave) CMPXVideoPlaybackControlPdl( aController, aControl, aControlIndex, aProperties ); |
|
60 |
|
61 CleanupStack::PushL( self ); |
|
62 self->ConstructL( aRect ); |
|
63 CleanupStack::Pop(); |
|
64 |
|
65 return self; |
|
66 } |
|
67 |
|
68 // ------------------------------------------------------------------------------------------------- |
|
69 // CMPXVideoPlaybackControlPdl::~CMPXVideoPlaybackControlPdl() |
|
70 // ------------------------------------------------------------------------------------------------- |
|
71 // |
|
72 CMPXVideoPlaybackControlPdl::~CMPXVideoPlaybackControlPdl() |
|
73 { |
|
74 MPX_DEBUG(_L("CMPXVideoPlaybackControlPdl::~CMPXVideoPlaybackControlPdl()")); |
|
75 } |
|
76 |
|
77 // ------------------------------------------------------------------------------------------------- |
|
78 // CMPXVideoPlaybackControlPdl::MakeVisible() |
|
79 // ------------------------------------------------------------------------------------------------- |
|
80 // |
|
81 void CMPXVideoPlaybackControlPdl::MakeVisible( TBool aVisible ) |
|
82 { |
|
83 MPX_DEBUG(_L("CMPXVideoPlaybackControlPdl::MakeVisible(%d)"), aVisible); |
|
84 |
|
85 CCoeControl::MakeVisible( EFalse ); |
|
86 CCoeControl::MakeVisible( ETrue ); |
|
87 } |
|
88 |
|
89 // End of File |