srsf/vcommandmanager/src/vcmanagervoiceheadsetlauncher.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2004-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:  Headset key observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VCMANAGERVOICEHEADSETLAUNCHER_H
       
    20 #define VCMANAGERVOICEHEADSETLAUNCHER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <e32property.h>
       
    25 #include <w32std.h> 
       
    26 #include <eikenv.h>
       
    27 #include <RemConCallHandlingTargetObserver.h>
       
    28 
       
    29 
       
    30 // CONSTANTS
       
    31 
       
    32 // MACROS
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CRemConInterfaceSelector;
       
    36 class CRemConCallHandlingTarget;
       
    37 
       
    38 /**
       
    39 * Class for starting Voice UI
       
    40 * @since 5.0
       
    41 */
       
    42 NONSHARABLE_CLASS( CVCommandManagerVoiceHeadSetLauncher ) : public CBase,
       
    43                                                             MRemConCallHandlingTargetObserver
       
    44     {
       
    45     public:  // Constructors and destructor
       
    46         
       
    47         /**
       
    48         * Two-phased constructor.
       
    49         */
       
    50         static CVCommandManagerVoiceHeadSetLauncher* NewL();
       
    51         
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         virtual ~CVCommandManagerVoiceHeadSetLauncher();
       
    56 
       
    57     public: // New functions
       
    58      
       
    59 
       
    60     public: // Functions from base classes
       
    61         
       
    62          
       
    63         /**
       
    64         * @see MRemConCallHandlingTargetObserver
       
    65         */
       
    66         void AnswerCall();
       
    67         
       
    68         /**
       
    69         * @see MRemConCallHandlingTargetObserver
       
    70         */
       
    71         void AnswerEndCall();
       
    72          
       
    73         /**
       
    74         * @see MRemConCallHandlingTargetObserver
       
    75         */
       
    76         void EndCall();
       
    77          
       
    78         /**
       
    79         * @see MRemConCallHandlingTargetObserver
       
    80         */
       
    81         void VoiceDial( const TBool aActivate );
       
    82          
       
    83         /**
       
    84         * @see MRemConCallHandlingTargetObserver
       
    85         */
       
    86         void LastNumberRedial();
       
    87          
       
    88          /**
       
    89         * @see MRemConCallHandlingTargetObserver
       
    90         */
       
    91         void DialCall( const TDesC8& aTelNumber );
       
    92     
       
    93         /**
       
    94         * @see MRemConCallHandlingTargetObserver
       
    95         */
       
    96         void MultipartyCalling( const TDesC8& aData );
       
    97     
       
    98         /**
       
    99         * @see MRemConCallHandlingTargetObserver
       
   100         */
       
   101         void GenerateDTMF( const TChar aChar );
       
   102     
       
   103         /**
       
   104         * @see MRemConCallHandlingTargetObserver
       
   105         */
       
   106         void SpeedDial( const TInt aIndex );
       
   107  
       
   108     private:
       
   109 
       
   110         /**
       
   111         * C++ default constructor.
       
   112         */
       
   113         CVCommandManagerVoiceHeadSetLauncher();
       
   114 
       
   115         /**
       
   116         * By default Symbian 2nd phase constructor is private.
       
   117         */
       
   118         void ConstructL();
       
   119         
       
   120         /**
       
   121         * Start voice ui
       
   122         * @param aDeviceLockMode ETrue if started in device lock mode else EFalse
       
   123         */        
       
   124         void LaunchVoiceUiL( TBool aDeviceLockMode );
       
   125         
       
   126         /**
       
   127         * Checks if call is active
       
   128         * @return Call state or KErrNotFound
       
   129         */
       
   130         TInt CheckCallState();
       
   131         
       
   132         /**
       
   133         * Checks if video call is active
       
   134         * @return ETrue if video call else EFalse
       
   135         */
       
   136         TBool IsVideoCall();
       
   137         
       
   138         /**
       
   139         * Checks if auto lock is active
       
   140         * @return Auto lock value or KErrNotFound
       
   141         */
       
   142         TInt GetAutoLockValue();
       
   143 
       
   144     private:    // Data
       
   145     
       
   146         CRemConInterfaceSelector*      iSelector;             // Owned
       
   147         CRemConCallHandlingTarget*     iCallHandlingTarget;   // Not owned
       
   148 
       
   149         RProperty                      iProperty;
       
   150     };
       
   151 
       
   152 #endif // VCMANAGERVOICEHEADSETLAUNCHER_H
       
   153             
       
   154 // End of File