javauis/amms_akn/mmacontrol/inc/cammsspectatorlocationcontrol.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     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 location of the spectator.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMMSSPECTATORLOCATIONCONTROL_H
       
    20 #define CAMMSSPECTATORLOCATIONCONTROL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <ListenerLocationBase.h>
       
    25 #include <CustomCommandUtility.h>
       
    26 #include "cammslocationcontrol.h"
       
    27 
       
    28 // CONSTANTS
       
    29 _LIT(KAMMSSpectatorLocationControl, "LocationControl");
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *
       
    35 *  Controls for the Location Control effect for the Spectator.
       
    36 *  This class delegates Location Control effect method calls to
       
    37 *  CListenerLocation.
       
    38 *
       
    39 *
       
    40 *  @since 3.0
       
    41 */
       
    42 NONSHARABLE_CLASS(CAMMSSpectatorLocationControl): public CAMMSLocationControl
       
    43 {
       
    44 public:  // Constructors and destructor
       
    45 
       
    46     /**
       
    47     * Two-phased constructor.
       
    48     * @param aPlayer Player that has this control.
       
    49     */
       
    50     static CAMMSSpectatorLocationControl* NewLC(CMMAPlayer* aPlayer);
       
    51 
       
    52     /**
       
    53     * Destructor.
       
    54     */
       
    55     ~CAMMSSpectatorLocationControl();
       
    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     CAMMSSpectatorLocationControl(CMMAPlayer* aPlayer);
       
    76 
       
    77 };
       
    78 
       
    79 #endif // CAMMSSPECTATORLOCATIONCONTROL_H
       
    80 
       
    81