startupservices/startupanimation/tsrc/TSanimctrl/inc/sanimmockview.h
changeset 77 b01c07dfcf84
equal deleted inserted replaced
74:1505405bc645 77:b01c07dfcf84
       
     1 /*
       
     2 * Copyright (c) 2007 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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Declaration of CSAnimMockView class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SANIMMOCKVIEW_H
       
    20 #define SANIMMOCKVIEW_H
       
    21 
       
    22 #include <coecntrl.h>
       
    23 
       
    24 /**
       
    25 *  For testing CSAnimCtrl.
       
    26 *
       
    27 *  @lib None
       
    28 *  @since S60 3.2
       
    29 */
       
    30 class CSAnimMockView  : public CCoeControl
       
    31     {
       
    32 
       
    33 public:
       
    34 
       
    35     /**
       
    36     * Constructs a CSAnimMockView object.
       
    37     *
       
    38     * @since S60 3.2
       
    39     *
       
    40     * @return The new object
       
    41     */
       
    42     static CSAnimMockView* NewL();
       
    43 
       
    44     /**
       
    45     * Destructor.
       
    46     *
       
    47     * @since S60 3.2
       
    48     */
       
    49     virtual ~CSAnimMockView();
       
    50 
       
    51     /**
       
    52     * Set a sub-control to this control.
       
    53     *
       
    54     * @since S60 3.2
       
    55     */
       
    56     void SetComponent( CCoeControl& aComponent );
       
    57 
       
    58     /**
       
    59     * Remove the sub-control from this control.
       
    60     *
       
    61     * @since S60 3.2
       
    62     */
       
    63     void RemoveComponent();
       
    64 
       
    65 protected:
       
    66 
       
    67     /**
       
    68     * First phase constructor.
       
    69     *
       
    70     * @since S60 3.2
       
    71     */
       
    72     CSAnimMockView();
       
    73 
       
    74     /**
       
    75     * Second phase constructor.
       
    76     *
       
    77     * @since S60 3.2
       
    78     */
       
    79     void ConstructL();
       
    80 
       
    81     /**
       
    82     * From CCoeControl.
       
    83     *
       
    84     * @since S60 3.2
       
    85     *
       
    86     * @return The number of controls contained in this control.
       
    87     */
       
    88     TInt CountComponentControls() const;
       
    89 
       
    90     /**
       
    91     * From CCoeControl.
       
    92     *
       
    93     * @since S60 3.2
       
    94     *
       
    95     * @param aIndex Identifies the component control to return.
       
    96     * @return The component control at index given as parameter.
       
    97     */
       
    98     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    99 
       
   100     /**
       
   101     * From CCoeControl.
       
   102     *
       
   103     * @since S60 3.2
       
   104     *
       
   105     * @param aRect The rectangle to draw into.
       
   106     */
       
   107     void Draw( const TRect& aRect ) const;
       
   108 
       
   109 private:
       
   110 
       
   111     /** Component control. */
       
   112     CCoeControl* iComponent;
       
   113 
       
   114     };
       
   115 
       
   116 #endif // SANIMMOCKVIEW_H