mmaudio_plat/telephony_audio_routing_client_api/TelephonyAudioRouting_TestApp/inc/myplayerappview.h
changeset 5 b220a9341636
equal deleted inserted replaced
4:9d4397b300d1 5:b220a9341636
       
     1 /*
       
     2 * Copyright (c) 2002 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:  TelephonyAudioRouting Test Application
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MYPLAYERAPPVIEW_h__
       
    19 #define __MYPLAYERAPPVIEW_h__
       
    20 
       
    21 // INCLUDES
       
    22 #include <coecntrl.h>
       
    23 
       
    24 // CLASS DECLARATION
       
    25 class CMyPlayerAppView : public CCoeControl
       
    26     {
       
    27 public:
       
    28     // New methods
       
    29 
       
    30     /**
       
    31      * NewL.
       
    32      * Two-phased constructor.
       
    33      * Create a CMyPlayerAppView object, which will draw itself to aRect.
       
    34      * @param aRect The rectangle this view will be drawn to.
       
    35      * @return a pointer to the created instance of CMyPlayerAppView.
       
    36      */
       
    37     static CMyPlayerAppView* NewL(const TRect& aRect);
       
    38 
       
    39     /**
       
    40      * NewLC.
       
    41      * Two-phased constructor.
       
    42      * Create a CMyPlayerAppView object, which will draw itself
       
    43      * to aRect.
       
    44      * @param aRect Rectangle this view will be drawn to.
       
    45      * @return A pointer to the created instance of CMyPlayerAppView.
       
    46      */
       
    47     static CMyPlayerAppView* NewLC(const TRect& aRect);
       
    48 
       
    49     /**
       
    50      * ~CMyPlayerAppView
       
    51      * Virtual Destructor.
       
    52      */
       
    53     virtual ~CMyPlayerAppView();
       
    54 
       
    55 public:
       
    56     // Functions from base classes
       
    57 
       
    58     /**
       
    59      * From CCoeControl, Draw
       
    60      * Draw this CMyPlayerAppView to the screen.
       
    61      * @param aRect the rectangle of this view that needs updating
       
    62      */
       
    63     void Draw(const TRect& aRect) const;
       
    64 
       
    65     /**
       
    66      * From CoeControl, SizeChanged.
       
    67      * Called by framework when the view size is changed.
       
    68      */
       
    69     virtual void SizeChanged();
       
    70 
       
    71     /**
       
    72      * From CoeControl, HandlePointerEventL.
       
    73      * Called by framework when a pointer touch event occurs.
       
    74      * Note: although this method is compatible with earlier SDKs, 
       
    75      * it will not be called in SDKs without Touch support.
       
    76      * @param aPointerEvent the information about this event
       
    77      */
       
    78     virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    79 
       
    80 private:
       
    81     // Constructors
       
    82 
       
    83     /**
       
    84      * ConstructL
       
    85      * 2nd phase constructor.
       
    86      * Perform the second phase construction of a
       
    87      * CMyPlayerAppView object.
       
    88      * @param aRect The rectangle this view will be drawn to.
       
    89      */
       
    90     void ConstructL(const TRect& aRect);
       
    91 
       
    92     /**
       
    93      * CMyPlayerAppView.
       
    94      * C++ default constructor.
       
    95      */
       
    96     CMyPlayerAppView();
       
    97 
       
    98     };
       
    99 
       
   100 #endif // __MYPLAYERAPPVIEW_h__
       
   101 // End of File