classicui_pub/animation_api/tsrc/inc/testsdkacontrol.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002 - 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 "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:  Test AknBitmapAnimation.h
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_TESTSDKACONTROL_H
       
    19 #define C_TESTSDKACONTROL_H
       
    20 //  INCLUDES
       
    21 #include <coecntrl.h>
       
    22 #include <e32std.h>
       
    23 #include <testclassassert.h>
       
    24 #include <stifitemparser.h>
       
    25 #include <aknbitmapanimation.h>
       
    26 
       
    27 class CTestControl : public CCoeControl
       
    28     {
       
    29 public:
       
    30     /**
       
    31     * Two-phased constructor.
       
    32     */
       
    33     static CTestControl* NewL();
       
    34     
       
    35     /**
       
    36     * destructor
       
    37     */
       
    38     ~CTestControl();
       
    39     
       
    40     /**
       
    41     *  TestRunL test function for testing the 
       
    42     * Test TestRunL function
       
    43     */
       
    44     void TestRunL();
       
    45     
       
    46     /**
       
    47     *  SetFrameIndexL test function for testing the 
       
    48     * Test SetFrameIndexL function
       
    49     */
       
    50     void SetFrameIndexL( TInt aIndex );
       
    51     
       
    52     /**
       
    53     *  SetFrameIntervalL test function for testing the 
       
    54     * Test SetFrameIntervalL function
       
    55     */
       
    56     void SetFrameIntervalL( TInt aFrameIntervalInMilliSeconds );
       
    57     
       
    58     /**
       
    59     *  TestCancelL test function for testing the 
       
    60     * Test TestCancelL function
       
    61     */
       
    62     void TestCancelL();
       
    63 private:
       
    64     
       
    65     /**
       
    66     * Constructors
       
    67     */
       
    68     CTestControl();
       
    69     
       
    70     /**
       
    71     * By default Symbian 2nd phase constructor is private.
       
    72     */
       
    73     void ConstructL();
       
    74     
       
    75     /**
       
    76     * OfferKeyEventL
       
    77     */
       
    78     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType );
       
    79     
       
    80     /**
       
    81     * Draw
       
    82     */
       
    83     void Draw( const TRect& aRect ) const;
       
    84     
       
    85     /**
       
    86     * CountComponentControls
       
    87     */
       
    88     TInt CountComponentControls() const;
       
    89     
       
    90     /**
       
    91     * ComponentControl
       
    92     */
       
    93     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    94     
       
    95     /**
       
    96     * SizeChanged
       
    97     */
       
    98     void SizeChanged();
       
    99     
       
   100 private:
       
   101     //data
       
   102     CAknBitmapAnimation* iBitmapAnimation;
       
   103     };
       
   104 
       
   105 #endif /*C_TESTSDKACONTROL_H*/