srsf/vuiphandler/inc/nssvoiceuipluginhandler.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     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:  Interface definition for Voice UI plug-in Handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NSSVOICEUIPLUGINHANDLER_H
       
    20 #define NSSVOICEUIPLUGINHANDLER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <nssvoiceevent.h>
       
    25 #include <nssvoiceuiplugin.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  Class for handling voiceUI plug-ins
       
    31 *
       
    32 *  @lib NssVoiceUIPluginHandler.lib
       
    33 *  @since 3.1
       
    34 */
       
    35 class CNssVoiceUIPluginHandler : public CBase, MVoiceEventExecutor
       
    36     {
       
    37     public: // Constructors and destructor
       
    38         
       
    39         /**
       
    40         * Two-phased constructor.
       
    41         */
       
    42         IMPORT_C static CNssVoiceUIPluginHandler* NewL();
       
    43         
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         IMPORT_C virtual ~CNssVoiceUIPluginHandler();
       
    48         
       
    49     public: // Functions from base classes
       
    50         
       
    51         /**
       
    52         * From MVoiceEventExecutor
       
    53         * @since 3.1
       
    54         * @param aEventUID UID of voice event
       
    55         * @return One of the system wide error codes, KErrNone if successful.
       
    56         */
       
    57         TInt VoiceEvent( TUid aEventUID ); 
       
    58         
       
    59     private:
       
    60         
       
    61         /**
       
    62         * C++ default constructor.
       
    63         */
       
    64         CNssVoiceUIPluginHandler();
       
    65         
       
    66         /**
       
    67         * By default Symbian 2nd phase constructor is private.
       
    68         */
       
    69         void ConstructL();
       
    70         
       
    71         /**
       
    72         * Plug-in loading
       
    73         */
       
    74         void LoadPluginsL();
       
    75 
       
    76         /**
       
    77         * Plug-in unloading
       
    78         */
       
    79         void UnloadPlugins();
       
    80         
       
    81     private: // Data
       
    82         
       
    83         // Array for event plug-ins
       
    84         RPointerArray<CVoiceEventObserverPluginBase> iEventPlugins;
       
    85 
       
    86         // IDs in Ecom
       
    87         RArray<TUid> iEventPluginDtorIds;
       
    88 
       
    89         // Array for action plug-ins
       
    90         RPointerArray<CVoiceUiPluginBase> iActionPlugins;
       
    91 
       
    92         // IDs in Ecom
       
    93         RArray<TUid> iActionPluginDtorIds;
       
    94         
       
    95     };
       
    96 
       
    97 #endif // NSSVOICEUIPLUGINHANDLER_H   
       
    98 
       
    99 // End of File