phoneapp/phoneuivoipextension/inc/cphoneunattendedtransfercmdhandler.h
changeset 0 5f000ab63145
child 19 544e34b3255a
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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: Handles commands related to unattended transfer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CPHONEUNATTENDEDTRANSFERCMDHANDLER_H
       
    20 #define C_CPHONEUNATTENDEDTRANSFERCMDHANDLER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CPhoneTransferDialerController;
       
    25 class MPhoneStateMachine;
       
    26 class MPhoneViewCommandHandle;
       
    27 
       
    28 /**
       
    29  *  Handles commands related to unattended transfer.
       
    30  *
       
    31  *  @lib PhoneUIVoIPExtension.dll
       
    32  *  @since S60 v5.1
       
    33  */
       
    34 NONSHARABLE_CLASS( CPhoneUnattendedTransferCmdHandler ) : public CBase
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     /**
       
    40      * Two-phased constructor.
       
    41      * @param    aStateMachine       Handle to the state machine.
       
    42      * @param    aViewCommandHandle  Handle to the PhoneUIView.
       
    43      */
       
    44     static CPhoneUnattendedTransferCmdHandler* NewL( 
       
    45         MPhoneStateMachine& aStateMachine,
       
    46         MPhoneViewCommandHandle& aViewCommandHandle );
       
    47 
       
    48     /**
       
    49      * Two-phased constructor.
       
    50      * @param    aStateMachine       Handle to the state machine.
       
    51      * @param    aViewCommandHandle  Handle to the PhoneUIView.
       
    52      */
       
    53     static CPhoneUnattendedTransferCmdHandler* NewLC( 
       
    54         MPhoneStateMachine& aStateMachine,
       
    55         MPhoneViewCommandHandle& aViewCommandHandle );
       
    56     
       
    57     /**
       
    58      * Destructor.
       
    59      */
       
    60     virtual ~CPhoneUnattendedTransferCmdHandler();
       
    61 
       
    62     /**
       
    63      * Handles VoIP commands related to unattended transfer.
       
    64      * @param   aCommand    VoIP command identifier.
       
    65      */
       
    66     void HandleCommandL( TInt aCommand );
       
    67     
       
    68 private:
       
    69 
       
    70     CPhoneUnattendedTransferCmdHandler(         
       
    71         MPhoneStateMachine& aStateMachine,
       
    72         MPhoneViewCommandHandle& aViewCommandHandle );
       
    73 
       
    74     void ConstructL();
       
    75 
       
    76     /**
       
    77      * Shows customized dialer for adding unattended transfer target address. 
       
    78      */
       
    79     void ShowTransferDialerL();
       
    80      
       
    81     /**
       
    82      * Starts unattended transfer. 
       
    83      */
       
    84     void DoUnattendedTransferL();
       
    85      
       
    86     /**
       
    87      * Closes transfer dialer view.
       
    88      */
       
    89     void CloseTransferDialerL();
       
    90           
       
    91     /**
       
    92      * Opens single item contact fetch.
       
    93      * @param   aFetchType  Type of the fetch.
       
    94      */
       
    95     void OpenSingleItemContactFetchL( TInt aFetchType );
       
    96     
       
    97     /**
       
    98      * Shows "Waiting acceptance..."-note
       
    99      */
       
   100     void ShowWaitingAcceptanceNoteL();
       
   101     
       
   102 private: // data
       
   103 
       
   104     /**
       
   105      * Unattended transfer dialer customization.
       
   106      */
       
   107     CPhoneTransferDialerController* iTransferDialerController;
       
   108 
       
   109     /**
       
   110      * Interface to the state machine.
       
   111      * Not own.
       
   112      */
       
   113     MPhoneStateMachine& iStateMachine;
       
   114     
       
   115     /**
       
   116      * Interface to the phone ui view.
       
   117      * Not own.
       
   118      */
       
   119     MPhoneViewCommandHandle& iViewCommandHandle;
       
   120     };
       
   121 
       
   122 
       
   123 #endif // C_CPHONEUNATTENDEDTRANSFERCMDHANDLER_H