creator/inc/creator_container.h
changeset 0 d6fe6244b863
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     1 /*
       
     2 * Copyright (c) 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CREATORAPPVIEW_H__
       
    22 #define __CREATORAPPVIEW_H__
       
    23 
       
    24 #include <coecntrl.h>
       
    25 
       
    26 /*! 
       
    27   @class CCreatorAppView
       
    28   
       
    29   @discussion An instance of the Application View object for the Creator 
       
    30   example application
       
    31   */
       
    32 class CCreatorAppView : public CCoeControl
       
    33     {
       
    34 public:
       
    35 
       
    36 
       
    37 
       
    38 /*!
       
    39   @function NewL
       
    40    
       
    41   @discussion Create a CCreatorAppView object, which will draw itself to aRect
       
    42   @param aRect the rectangle this view will be drawn to
       
    43   @result a pointer to the created instance of CCreatorAppView
       
    44   */
       
    45     static CCreatorAppView* NewL(const TRect& aRect);
       
    46 
       
    47 /*!
       
    48   @function NewLC
       
    49    
       
    50   @discussion Create a CCreatorAppView object, which will draw itself to aRect
       
    51   @param aRect the rectangle this view will be drawn to
       
    52   @result a pointer to the created instance of CCreatorAppView
       
    53   */
       
    54     static CCreatorAppView* NewLC(const TRect& aRect);
       
    55 
       
    56 
       
    57 /*!
       
    58   @function ~CCreatorAppView
       
    59   
       
    60   @discussion Destroy the object and release all memory
       
    61   */
       
    62      ~CCreatorAppView();
       
    63 
       
    64 /*!
       
    65   @function UserDraw
       
    66   
       
    67   @discussion Draw this CHelloWorldAppView to the screen
       
    68   @param aRect the rectangle of this view that needs updating
       
    69   */
       
    70     void UserDraw() const;
       
    71 
       
    72 
       
    73 public:  // from CCoeControl
       
    74 /*!
       
    75   @function Draw
       
    76   
       
    77   @discussion Draw this CCreatorAppView to the screen
       
    78   @param aRect the rectangle of this view that needs updating
       
    79   */
       
    80     void Draw(const TRect& aRect) const;
       
    81   
       
    82 
       
    83 /*!
       
    84   @function OfferKeyEventL
       
    85   
       
    86   @discussion Handle any user keypresses
       
    87   @param aKeyEvent holds the data for the event that occurred
       
    88   @param aType holds the type of key event that occured
       
    89   @result a TKeyResponse indicating if the key was consumed or not
       
    90   */
       
    91     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
       
    92 
       
    93 /*!
       
    94   @function InputCapabilities
       
    95   
       
    96   @discussion Return the capabilities of the OfferKeyEventL 
       
    97               method for this class
       
    98   @result a TCoeInputCapabilities indicating the capabilities 
       
    99           for this class
       
   100   */
       
   101 	TCoeInputCapabilities InputCapabilities() const;
       
   102 
       
   103 
       
   104 
       
   105 private:
       
   106 
       
   107 /*!
       
   108   @function ConstructL
       
   109   
       
   110   @discussion  Perform the second phase construction of a CCreatorAppView object
       
   111   @param aRect the rectangle this view will be drawn to
       
   112   */
       
   113     void ConstructL(const TRect& aRect);
       
   114 
       
   115 /*!
       
   116   @function CCreatorAppView
       
   117   
       
   118   @discussion Perform the first phase of two phase construction 
       
   119   */
       
   120     CCreatorAppView();
       
   121 
       
   122 
       
   123     TBool MMC_OK() const;
       
   124 
       
   125 public:
       
   126     void HandleResourceChange(TInt aType);
       
   127     };
       
   128 
       
   129 
       
   130 #endif // __CREATORAPPVIEW_H__