javauis/amms_qt/mmacontrol/inc/cammsspectatororientationcontrol.h
branchRCL_3
changeset 24 0fd27995241b
equal deleted inserted replaced
20:f9bb0fca356a 24:0fd27995241b
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Manipulates the virtual orientation of the spectator.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMMSSPECTATORORIENTATIONCONTROL_H
       
    20 #define CAMMSSPECTATORORIENTATIONCONTROL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <ListenerOrientationBase.h>
       
    25 #include <CustomCommandUtility.h>
       
    26 #include "cammsorientationcontrol.h"
       
    27 
       
    28 // CONSTANTS
       
    29 _LIT(KAMMSSpectatorOrientationControl, "OrientationControl");
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *
       
    35 *  Controls for the Orientation Control effect for the Spectator.
       
    36 *  This class delegates Orientation Control effect method calls to
       
    37 *  CListenerOrientation.
       
    38 *
       
    39 *
       
    40 *  @since 3.0
       
    41 */
       
    42 NONSHARABLE_CLASS(CAMMSSpectatorOrientationControl): public CAMMSOrientationControl
       
    43 {
       
    44 public:  // Constructors and destructor
       
    45 
       
    46     /**
       
    47     * Two-phased constructor.
       
    48     * @param aPlayer Player that has this control.
       
    49     */
       
    50     static CAMMSSpectatorOrientationControl* NewLC(CMMAPlayer* aPlayer);
       
    51 
       
    52     /**
       
    53     * Destructor.
       
    54     */
       
    55     ~CAMMSSpectatorOrientationControl();
       
    56 
       
    57 public: // Functions from base classes
       
    58     const TDesC& ClassName() const;
       
    59 
       
    60     /**
       
    61     * Prepares the Control.
       
    62     */
       
    63     void PrepareControlL();
       
    64 
       
    65     /**
       
    66     * Deallocates the Control.
       
    67     */
       
    68     void DeallocateControl();
       
    69 
       
    70 private:
       
    71     /**
       
    72     * C++ constructor.
       
    73     * @param aPlayer Player that has this control.
       
    74     */
       
    75     CAMMSSpectatorOrientationControl(CMMAPlayer* aPlayer);
       
    76 
       
    77 };
       
    78 
       
    79 #endif // CAMMSSPECTATORORIENTATIONCONTROL_H
       
    80 
       
    81