sipvoipprovider/svphold/inc/svpholdinestablishingstate.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2006-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:  Establishing state class for incoming hold/resume requests.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SVPHOLDINESTABLISHINGSTATE_H
       
    20 #define SVPHOLDINESTABLISHINGSTATE_H
       
    21 
       
    22 #include    "svpholdstatebase.h"
       
    23 #include    "svpholdcontext.h"
       
    24 #include    "svputdefs.h"
       
    25 
       
    26 /**
       
    27 *  Establishing state for incoming hold/resume requests
       
    28 *  @lib svp.dll
       
    29 *  @since Series 60 3.2
       
    30 */
       
    31 class CSVPHoldInEstablishingState : public CSVPHoldStateBase
       
    32     {
       
    33 public:  // Constructors and destructor
       
    34     
       
    35     /**
       
    36     * Two-phased constructor.
       
    37     */
       
    38     static CSVPHoldInEstablishingState* NewLC();
       
    39     
       
    40     /**
       
    41     * Destructor.
       
    42     */
       
    43     virtual ~CSVPHoldInEstablishingState();
       
    44     
       
    45 
       
    46 protected:  // Functions from base classes
       
    47     
       
    48     /**
       
    49     * From CSVPHoldStateBase Apply concrete state.
       
    50     */
       
    51     void DoApplyL( CSVPHoldContext& aContext );
       
    52 
       
    53     /**
       
    54     * From CSVPHoldStateBase Called when the state is entered.
       
    55     */
       
    56     void DoEnter( CSVPHoldContext& aContext );
       
    57 
       
    58     /**
       
    59     * Checks if OutEstablishingState is active.
       
    60     */
       
    61     TBool IsOutEstablishingStateActive();
       
    62     
       
    63 
       
    64 private:
       
    65 
       
    66     /**
       
    67     * C++ default constructor.
       
    68     */
       
    69     CSVPHoldInEstablishingState();
       
    70 
       
    71     /**
       
    72     * Handles local hold case.
       
    73     */
       
    74     void HandleRemoteHolding( TSVPHoldStateIndex& aNextState,
       
    75                               TSVPHoldStateIndex aState = 0 );
       
    76 
       
    77     /**
       
    78     * Handles local resume case.
       
    79     */
       
    80     void HandleRemoteResuming( TSVPHoldStateIndex& aNextState,
       
    81                                TSVPHoldStateIndex aState = 0 );
       
    82 
       
    83     /**
       
    84     * Checks acceptability of direction attribute from request.
       
    85     */
       
    86     TInt CheckAttribute( MDesC8Array* aAttributeLines,
       
    87                          KSVPHoldAttributeIndex aNeededAttribute,
       
    88                          TSVPHoldStateIndex& aNextState,
       
    89                          CSVPHoldContext& aContext );
       
    90                          
       
    91     /**
       
    92     * Defines state change in basic schene.
       
    93     */
       
    94     TInt DefineDefaultCaseStateChange( CSVPHoldContext& aContext,
       
    95                                        TSVPHoldStateIndex& aNextState );
       
    96         
       
    97 private:
       
    98 
       
    99     // For testing
       
   100     SVP_UT_DEFS
       
   101     
       
   102     };
       
   103 
       
   104 #endif      // SVPHOLDINESTABLISHINGSTATE_H  
       
   105