phoneuis/TelephonyDeviceMode/inc/CTelDMHandlerImpl.h
changeset 37 ba76fc04e6c2
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Implementation class for for Telephony Device Mode
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CTELDMHANDLERIMPL_H
       
    21 #define CTELDMHANDLERIMPL_H
       
    22 
       
    23 #include    <e32base.h>
       
    24 #include    <cteldmhandler.h>
       
    25 #include    <bldvariant.hrh>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 class MPhoneDeviceModeObserver;
       
    30 class CTelDMCallStateListener;
       
    31 class CTelDMGripHandler;
       
    32 class CTelDMCommandHandler;
       
    33 class CTelDMAudioAccessoryListener;
       
    34 class MTelDMAccessory;
       
    35 
       
    36 
       
    37 // CLASS DECLARATION
       
    38  
       
    39  
       
    40 NONSHARABLE_CLASS( CTelDMHandlerImpl ) : public CTelDMHandler
       
    41     {
       
    42     public: // Constructors and destructors.
       
    43 
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         *
       
    47         * @return new instance of the class.
       
    48         */
       
    49         static CTelDMHandlerImpl* NewL();
       
    50         
       
    51         /** D'tor. */
       
    52         virtual ~CTelDMHandlerImpl();
       
    53 
       
    54     public: // From base classes.
       
    55 
       
    56         /**
       
    57         * Set call event observer
       
    58         * @return void
       
    59         */
       
    60         void SetObserverL( MPhoneDeviceModeObserver* aCallHandler );
       
    61  
       
    62     private:
       
    63 
       
    64         /**
       
    65         * C++ constructor.
       
    66         */
       
    67         CTelDMHandlerImpl();
       
    68         
       
    69         /**
       
    70         * Symbian OS default constructor.
       
    71         */
       
    72         void ConstructL();
       
    73     
       
    74     
       
    75     private:  
       
    76     
       
    77         /**
       
    78         * Grip handler, Owned 
       
    79         */
       
    80         CTelDMGripHandler* iGrip;
       
    81         
       
    82         /**
       
    83         * Accessory status, Owned 
       
    84         */
       
    85         CTelDMAudioAccessoryListener* iAccessory;
       
    86          
       
    87         /**
       
    88         * Call state listener, Owned 
       
    89         */
       
    90         CTelDMCallStateListener* iCallStateListener;
       
    91 
       
    92         /**
       
    93         * Commander, Owned 
       
    94         */      
       
    95         CTelDMCommandHandler* iCommandHandler;
       
    96 
       
    97     };
       
    98 
       
    99 
       
   100 #endif      // CTELDMHANDLERIMPL_H  
       
   101 
       
   102 // End of File