voiceui/vcommand/inc/vcsettingsengine.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Definition of the CVCSettingsEngine
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVCSETTINGSENGINE_H
       
    20 #define CVCSETTINGSENGINE_H
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <nssvasapi.h>
       
    26 #include <nssvasmresetfactorymodelsclient.h>
       
    27 #include <aknnotewrappers.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CAknKeySoundSystem;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 * Definition of CVCSettingsEngine
       
    36 */
       
    37 class CVCSettingsEngine : public CBase,
       
    38                               public MNssResetFactoryModelsClient
       
    39 
       
    40     {
       
    41     
       
    42     public:  // Constructors and destructor
       
    43 
       
    44          /**
       
    45          * Two-phased constructor.
       
    46          */
       
    47          static CVCSettingsEngine* NewL();
       
    48         
       
    49          /**
       
    50          * Destructor.
       
    51          */
       
    52          virtual ~CVCSettingsEngine();
       
    53 
       
    54     public:  // New Functions
       
    55 
       
    56         /**
       
    57         * Resets the adapted models
       
    58         * @return void
       
    59         */
       
    60         void ResetAdaptationL();
       
    61 
       
    62     protected: // Functions from base classes
       
    63 
       
    64         /**
       
    65         * From MNssResetFactoryModelsClient
       
    66         * @see MNssResetFactoryModelsClient for more information.
       
    67         */       
       
    68         void HandleResetComplete( TInt aErrorCode );
       
    69         
       
    70     private:	// Constructors
       
    71 
       
    72         /**
       
    73         * By default Symbian constructor is private.
       
    74         */
       
    75         void ConstructL();
       
    76 
       
    77         /**
       
    78         * C++ default constructor.
       
    79         */
       
    80         CVCSettingsEngine();
       
    81 
       
    82     private: // New functions
       
    83 
       
    84         /*
       
    85         * Displays error note.
       
    86         * @return void
       
    87         */
       
    88         void DisplayErrorNoteL();
       
    89 
       
    90         /**
       
    91         * Returns sound system
       
    92         * @return CAknKeySoundSystem
       
    93         */
       
    94         CAknKeySoundSystem* GetSoundSystem() const;
       
    95 
       
    96         /**
       
    97         * Plays the error sound
       
    98         * @param aSound the sound type
       
    99         * @return void
       
   100         */
       
   101         void PlaySound(TAvkonSystemSID aSound) const;
       
   102 
       
   103 		/**
       
   104 		* Called when HandleResetComplete() completes
       
   105 		* @return void
       
   106 		*/
       
   107         void DoHandleResetCompleteL();
       
   108 
       
   109         /**
       
   110         * Called when HandleResetComplete has an error in its parameter.
       
   111         *
       
   112         */
       
   113         void HandleResetFailed();
       
   114         
       
   115 
       
   116     private: // Data
       
   117     
       
   118         CNssVASDBMgr*           iVasDbManager;		// Owned
       
   119         MNssContextMgr*         iContextManager;    // Not owned
       
   120         CActiveSchedulerWait    iShedulerWait;
       
   121     };
       
   122 
       
   123 #endif  // CVCSETTINGSENGINE_H
       
   124 
       
   125 // End of File