localconnectivityservice/generichid/tsrc/GenericHidTest/inc/tdialclient.h
branchRCL_3
changeset 19 0aa8cc770c8a
equal deleted inserted replaced
18:453dfc402455 19:0aa8cc770c8a
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Dialhandling class for hid test application
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TDIALCLIENT_H_
       
    20 #define TDIALCLIENT_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <Etel3rdParty.h>
       
    24 
       
    25 NONSHARABLE_CLASS ( CDialClient ): public CActive
       
    26     {
       
    27 
       
    28 public:
       
    29 
       
    30     static CDialClient* NewL();
       
    31     static CDialClient* NewLC();
       
    32     
       
    33     void ConstructL();
       
    34     ~CDialClient();
       
    35     
       
    36     void CreateCall(const TDesC& aNumber);
       
    37     void HangUp();
       
    38     
       
    39     
       
    40 private:
       
    41      void RunL();
       
    42      void DoCancel();
       
    43 
       
    44 private:
       
    45      CDialClient(); 
       
    46      
       
    47  private:     
       
    48      CTelephony*                         iTelephony;
       
    49      CTelephony::TCallId                 iCallId;
       
    50      CTelephony::TCallParamsV1           iCallParams;
       
    51      CTelephony::TCallParamsV1Pckg       iCallParamsPckg;
       
    52      CActiveSchedulerWait                iSyncWaiter;
       
    53      TBool                               iCallStarted;
       
    54     };
       
    55 
       
    56 #endif /*TDIALCLIENT_H_*/