classicui_plat/notes_api/tsrc/inc/testsdknotescontrol.h
changeset 45 667edd0b8678
equal deleted inserted replaced
37:89c890c70182 45:667edd0b8678
       
     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 AknNoteWrappers.h
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_TESTSDKNOTESCONTROL_H
       
    20 #define C_TESTSDKNOTESCONTROL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <coecntrl.h>
       
    24 #include <e32std.h>
       
    25 #include <testclassassert.h>
       
    26 #include <stifitemparser.h>
       
    27 #include <aknlocationed.h>
       
    28 #include <lbsposition.h>
       
    29 
       
    30 /**
       
    31  *  CTestNotesControl is used to add setting page control in its window
       
    32  */
       
    33 class CTestNotesControl : public CCoeControl
       
    34     {
       
    35 public:
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      */
       
    39     static CTestNotesControl* NewL();
       
    40     
       
    41     /**
       
    42      * Destructor.
       
    43      */
       
    44     ~CTestNotesControl();
       
    45     
       
    46 private:
       
    47     
       
    48     /**
       
    49      * Constructor.
       
    50      */
       
    51     CTestNotesControl();
       
    52     
       
    53     /**
       
    54      * By default Symbian 2nd phase constructor is private.
       
    55      */
       
    56     void ConstructL();
       
    57     
       
    58     /**
       
    59      * Receive key events.
       
    60      */
       
    61     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    62     
       
    63     /**
       
    64      * Draw control.
       
    65      */
       
    66     void Draw(const TRect& aRect) const;
       
    67     
       
    68     /**
       
    69      * Return number of controls in its window.
       
    70      */
       
    71     TInt CountComponentControls() const;
       
    72     
       
    73     /**
       
    74      * Controls in its window.
       
    75      */
       
    76     CCoeControl* ComponentControl(TInt aIndex) const;
       
    77     
       
    78     /**
       
    79      * Resize screen.
       
    80      */
       
    81     void SizeChanged();
       
    82     
       
    83     };
       
    84 
       
    85 
       
    86 #endif /*C_TESTSDKNOTESCONTROL_H*/