videoplayback/videoplaybackcontrols/src/mpxvideoplaybackcontrolpdl.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 12:00:59 +0200
changeset 1 6711b85517b7
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Implementation of CMPXVideoPlaybackControlPdl
*
*/

// Version : %version: 4 %



// INCLUDE FILES

#include "mpxvideoplaybackcontrolpdl.h"
#include "mpxvideo_debug.h"
#include "mpxvideoplaybackcontrolscontroller.h"

// ================= MEMBER FUNCTIONS ==============================================================

// -------------------------------------------------------------------------------------------------
//   CMPXVideoPlaybackControlPdl::CMPXVideoPlaybackControlPdl()
//   C++ default constructor can NOT contain any code, that might leave.
// -------------------------------------------------------------------------------------------------
//
CMPXVideoPlaybackControlPdl::CMPXVideoPlaybackControlPdl(
    CMPXVideoPlaybackControlsController* aController,
    CCoeControl* aControl,
    TMPXVideoPlaybackControls aControlIndex,
    TUint aProperties )
    : CMPXVideoPlaybackControl( aController, aControl, aControlIndex, aProperties )
{
}


// -------------------------------------------------------------------------------------------------
// CMPXVideoPlaybackControlPdl::NewL()
// Two-phased constructor.
// -------------------------------------------------------------------------------------------------
//
CMPXVideoPlaybackControlPdl* CMPXVideoPlaybackControlPdl::NewL(
    CMPXVideoPlaybackControlsController* aController,
    CCoeControl* aControl,
    TRect aRect,
    TMPXVideoPlaybackControls aControlIndex,
    TUint aProperties )
{
    MPX_DEBUG(_L("CMPXVideoPlaybackControlPdl::NewL()"));

    CMPXVideoPlaybackControlPdl* self = new (ELeave) CMPXVideoPlaybackControlPdl( aController, aControl, aControlIndex, aProperties );

    CleanupStack::PushL( self );
    self->ConstructL( aRect );
    CleanupStack::Pop();

    return self;
}

// -------------------------------------------------------------------------------------------------
//   CMPXVideoPlaybackControlPdl::~CMPXVideoPlaybackControlPdl()
// -------------------------------------------------------------------------------------------------
//
CMPXVideoPlaybackControlPdl::~CMPXVideoPlaybackControlPdl()
{
    MPX_DEBUG(_L("CMPXVideoPlaybackControlPdl::~CMPXVideoPlaybackControlPdl()"));
}

// -------------------------------------------------------------------------------------------------
//   CMPXVideoPlaybackControlPdl::MakeVisible()
// -------------------------------------------------------------------------------------------------
//
void CMPXVideoPlaybackControlPdl::MakeVisible( TBool aVisible )
{
    MPX_DEBUG(_L("CMPXVideoPlaybackControlPdl::MakeVisible(%d)"), aVisible);

    CCoeControl::MakeVisible( EFalse );
    CCoeControl::MakeVisible( ETrue );
}

// End of File