javauis/amms_qt/ammscontrol/audio3D/inc/cammsaudio3dcontrolgroup.h
branchRCL_3
changeset 24 0fd27995241b
equal deleted inserted replaced
20:f9bb0fca356a 24:0fd27995241b
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Group for 3D audio controls
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMMSAUDIO3DCONTROLGROUP_H
       
    20 #define CAMMSAUDIO3DCONTROLGROUP_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "cammscontrolgroup.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  *  Group for 3D audio controls
       
    30  *
       
    31  *  @since 3.0
       
    32  */
       
    33 NONSHARABLE_CLASS(CAMMSAudio3DControlGroup): public CAMMSControlGroup
       
    34 {
       
    35 public:  // Constructors and destructor
       
    36 
       
    37     /**
       
    38      * Destructor.
       
    39      */
       
    40     ~CAMMSAudio3DControlGroup();
       
    41 
       
    42 protected: // New functions
       
    43 
       
    44     /**
       
    45      * Update the controls depending on commit mode
       
    46      *
       
    47      * @param aCommit   variable id that need to be commited
       
    48      */
       
    49     void UpdateL(TInt aCommit);
       
    50 
       
    51     /**
       
    52      * Transfers all the pending parameters to the audio processing system.
       
    53      *
       
    54      * @param aCommit   variable id that need to be commited
       
    55      */
       
    56     virtual void CommitL(TInt aCommit) = 0;
       
    57 
       
    58 public:  // From MAMMSControlGroup
       
    59     /**
       
    60      * Sets the mode of the CommitControl.
       
    61      *
       
    62      * @param aMode     commit mode
       
    63      */
       
    64     void SetModeL(TCommitMode aMode);
       
    65 
       
    66     /**
       
    67      * Commit all the controls in the group
       
    68      * in immediate mode commits, in deferred mode marks what variables
       
    69      * need to be commited later
       
    70      */
       
    71     void CommitGroupL();
       
    72 
       
    73 protected:
       
    74     /**
       
    75      * Constructor.
       
    76      *
       
    77      * @param aName     The name of the corresponding amms control
       
    78      * @param aControlType Special AMMS type of the Control
       
    79      */
       
    80     CAMMSAudio3DControlGroup(
       
    81         const TDesC& aName,
       
    82         TAMMSControlTypes aControlType = EAMMSBaseControl);
       
    83 
       
    84     /**
       
    85      * Symbian 2nd phase constructor.
       
    86      */
       
    87     void ConstructL();
       
    88 
       
    89 protected: // Data
       
    90 
       
    91     // Commit mode
       
    92     TCommitMode iCommitMode;
       
    93 
       
    94 private:     // Data
       
    95 
       
    96     // bit field of variables that have to be commited
       
    97     // (used in CommitL())
       
    98     TInt iCommit;
       
    99 };
       
   100 
       
   101 #endif // CAMMSAUDIO3DCONTROLGROUP_H