camerauis/cameraapp/generic/src/cambackupcontainer.cpp
branchRCL_3
changeset 24 bac7acad7cb3
parent 0 1ddebce53859
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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:  Base class for all camera application containers*
       
    15 */
       
    16 
       
    17 #include "cambackupcontainer.h"
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // CCamBackupContainer::CCamBackupContainer
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 CCamBackupContainer::CCamBackupContainer( CCamAppController& aController,
       
    24                        CAknView& aView)
       
    25 : CCamContainerBase(aController, aView)
       
    26     {
       
    27     
       
    28     }
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // CCamBackupContainer::ConstructL
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 void CCamBackupContainer::ConstructL(const CCoeControl& aContainer)
       
    35     {
       
    36     SetContainerWindowL(aContainer);
       
    37     DrawableWindow()->SetOrdinalPosition(-1);
       
    38     }
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // CCamBackupContainer::~CCamBackupContainer
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 CCamBackupContainer::~CCamBackupContainer()
       
    45     {
       
    46     //Do nothing
       
    47     }
       
    48 
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CCamBackupContainer::NewLC
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 CCamBackupContainer* CCamBackupContainer::NewLC(CCamAppController& aController,
       
    55                             CAknView& aView,
       
    56                             const CCoeControl& aContainer)
       
    57     {
       
    58     CCamBackupContainer* self = new(ELeave) CCamBackupContainer(aController,aView);
       
    59     CleanupStack::PushL(self);
       
    60     self->ConstructL(aContainer);
       
    61     return self;
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CCamBackupContainer::NewL
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 CCamBackupContainer* CCamBackupContainer::NewL(CCamAppController& aController,
       
    69                             CAknView& aView,
       
    70                             const CCoeControl& aContainer)
       
    71     {
       
    72     CCamBackupContainer* self = CCamBackupContainer::NewLC(aController,aView,aContainer);
       
    73     CleanupStack::Pop(self);
       
    74     return self;
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CCamBackupContainer::Draw
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 void CCamBackupContainer::Draw( const TRect& aRect ) const
       
    82     {
       
    83     CWindowGc& gc = SystemGc();
       
    84     gc.SetBrushColor(KRgbBlack);
       
    85     gc.Clear();
       
    86     }
       
    87