phonesrv_plat/call_remote_party_information_api/tsrc/src/cdialer.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Provides dialing services for tests.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CDIALER_H_
       
    19 #define CDIALER_H_
       
    20 
       
    21 #include <etelmm.h>
       
    22 #include <MPhCltEmergencyCallObserver.h>
       
    23 
       
    24 class CPhCltEmergencyCall;
       
    25 class CPhCltCommandHandler;
       
    26 
       
    27 
       
    28 NONSHARABLE_CLASS( CDialer ) : public CActive,
       
    29                                protected MPhCltEmergencyCallObserver
       
    30     {
       
    31 public:    
       
    32     static CDialer* NewL( RTelServer& aTelServer );    
       
    33     static CDialer* NewLC( RTelServer& aTelServer );    
       
    34     ~CDialer();    
       
    35     void Dial( const TDesC& aNumber );    
       
    36     void Dial();    
       
    37     void DialEmergency();    
       
    38     void Hangup();    
       
    39     void HangupEmergencyCall();    
       
    40     void WaitForRequest();
       
    41     
       
    42 protected:    
       
    43     void RunL();    
       
    44     void DoCancel();    
       
    45     void HandleEmergencyDialL( const TInt aStatus );
       
    46     
       
    47 private:    
       
    48     void ConstructL();    
       
    49     CDialer( RTelServer& aTelServer );
       
    50     
       
    51 private:
       
    52     RTelServer iTelServer;
       
    53     RMobileCall iCall;
       
    54     CActiveSchedulerWait* iWait;
       
    55     CPhCltEmergencyCall* iEmergency;
       
    56     CPhCltCommandHandler* iCmdHandler;
       
    57     };
       
    58 
       
    59 
       
    60 #endif /* CDIALER_H_ */