videoplayerapp/lwplayer/src/lwplayerdocument.cpp
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     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 CLWPlayerDocument
       
    15  *
       
    16 */
       
    17 
       
    18 // Version : %version: 4 %
       
    19 
       
    20 
       
    21 #include <apgwgnam.h>
       
    22 #include <AiwGenericParam.h>
       
    23 #include "lwplayerdocument.h"
       
    24 #include "lwplayerappui.h"
       
    25 #include "mpxvideo_debug.h"
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 //  CLWPlayerDocument::CLWPlayerDocument
       
    29 //  C++ default constructor can NOT contain any code, that
       
    30 //  might leave.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CLWPlayerDocument::CLWPlayerDocument(CEikApplication& aApp)
       
    34     : CAiwGenericParamConsumer(aApp)
       
    35 {
       
    36     MPX_DEBUG(_L("CLWPlayerDocument::CLWPlayerDocument()"));
       
    37 }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // CLWPlayerDocument::~CLWPlayerDocument
       
    41 // Destructor
       
    42 // Frees reserved resources
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 CLWPlayerDocument::~CLWPlayerDocument()
       
    46 {
       
    47     MPX_DEBUG(_L("CLWPlayerDocument::~CLWPlayerDocument()"));
       
    48 }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CLWPlayerDocument::ConstructL
       
    52 // Symbian 2nd phase constructor can leave.
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 void
       
    56 CLWPlayerDocument::ConstructL()
       
    57 {
       
    58     MPX_DEBUG(_L("CLWPlayerDocument::ConstructL()"));
       
    59 }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // CLWPlayerDocument::NewL
       
    63 // Two-phased constructor.
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 CLWPlayerDocument* CLWPlayerDocument::NewL(CEikApplication& aApp)
       
    67 {
       
    68     MPX_DEBUG(_L("CLWPlayerDocument::NewL()"));
       
    69 
       
    70     CLWPlayerDocument* self = new (ELeave) CLWPlayerDocument( aApp );
       
    71     CleanupStack::PushL( self );
       
    72     self->ConstructL();
       
    73     CleanupStack::Pop();
       
    74     return self;
       
    75 }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CLWPlayerDocument::CreateAppUiL()
       
    79 // constructs CLWPlayerAppUi
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 CEikAppUi* CLWPlayerDocument::CreateAppUiL()
       
    83 {
       
    84     MPX_DEBUG(_L("CLWPlayerDocument::CreateAppUiL()"));
       
    85 
       
    86     return new (ELeave) CLWPlayerAppUi;
       
    87 }
       
    88 
       
    89 // -----------------------------------------------------------------------------
       
    90 // CLWPlayerDocument::UpdateTaskNameL()
       
    91 // Hides the icon from the task list
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 void CLWPlayerDocument::UpdateTaskNameL(CApaWindowGroupName* aWgName)
       
    95 {
       
    96     CEikDocument::UpdateTaskNameL(aWgName);
       
    97     aWgName->SetHidden(ETrue);
       
    98 }
       
    99 
       
   100 // End of File