camerauis/cameraapp/generic/inc/cambackupcontainer.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 0 1ddebce53859
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Base class for all camera application containers
       
    15 *
       
    16 *  Copyright © 2007-2008 Nokia.  All rights reserved.
       
    17 *  This material, including documentation and any related computer
       
    18 *  programs, is protected by copyright controlled by Nokia.  All
       
    19 *  rights are reserved.  Copying, including reproducing, storing,
       
    20 *  adapting or translating, any or all of this material requires the
       
    21 *  prior written consent of Nokia.  This material also contains
       
    22 *  confidential information which may not be disclosed to others
       
    23 *  without the prior written consent of Nokia.
       
    24 
       
    25 *
       
    26 *
       
    27 */
       
    28 
       
    29 
       
    30 
       
    31 
       
    32 #ifndef CAMBACKUPCONTAINER_H_
       
    33 #define CAMBACKUPCONTAINER_H_
       
    34 
       
    35 #include "CamContainerBase.h"
       
    36 
       
    37 class CCamBackupContainer : public CCamContainerBase
       
    38     {
       
    39 private:
       
    40     CCamBackupContainer();
       
    41     
       
    42 protected: 
       
    43 
       
    44     /**
       
    45     * C++ constructor
       
    46     * @since 5.1
       
    47     * @param aController reference to CCamAppController instance
       
    48     * @param aView reference to the view containing this container
       
    49     */
       
    50     CCamBackupContainer( CCamAppController& aController,
       
    51                        CAknView& aView );
       
    52     
       
    53     /**
       
    54     * Perform the second phase construction of a CCamBackupContainer object.
       
    55     * @since 5.1
       
    56     * @param aContainer Parent container
       
    57     */
       
    58     void ConstructL(const CCoeControl& aContainer);
       
    59 
       
    60 public:
       
    61     /**
       
    62     * Destructor.
       
    63     */
       
    64     virtual ~CCamBackupContainer();
       
    65     
       
    66     /**
       
    67     * Two-phased factory constructor
       
    68     * @since 5.1
       
    69     * @param aController reference to CCamAppController instance
       
    70     * @param aView reference to the view containing this container
       
    71     * @param aContainer Parent container
       
    72     * @return pointer to the created CCamBackupContainer object already pushed on the Cleanupstack
       
    73     */
       
    74     static CCamBackupContainer* NewLC(CCamAppController& aController,
       
    75                             CAknView& aView,
       
    76                             const CCoeControl& aContainer);
       
    77     
       
    78     /**
       
    79     * Two-phased factory constructor.
       
    80     * @since 5.1
       
    81     * @param aController reference to CCamAppController instance
       
    82     * @param aView reference to the view containing this container
       
    83     * @param aContainer Parent container
       
    84     * @return pointer to the created CCamBackupContainer object
       
    85     */
       
    86     static CCamBackupContainer* NewL(CCamAppController& aController,
       
    87                             CAknView& aView,
       
    88                             const CCoeControl& aContainer);
       
    89     
       
    90 public:
       
    91     /**
       
    92     * Performs the actual draw on the container 
       
    93     * @since 5.1
       
    94     * @param aRect area where to draw
       
    95     */
       
    96     virtual void Draw( const TRect& aRect ) const;
       
    97     
       
    98     };
       
    99 
       
   100 #endif /* CAMBACKUPCONTAINER_H_ */