sipvoipprovider/svphold/inc/svpholddhstate.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:  Double hold state class for hold state machine.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SVPHOLDDHSTATE_H
       
    20 #define SVPHOLDDHSTATE_H
       
    21 
       
    22 #include "svpholdstatebase.h"
       
    23 #include "svpholdcontext.h"
       
    24 #include "svputdefs.h"
       
    25 
       
    26 /**
       
    27 *  Hold state for doubleholded session.
       
    28 *  @lib svp.dll
       
    29 *  @since Series 60 3.2
       
    30 */
       
    31 class CSVPHoldDHState : public CSVPHoldStateBase
       
    32     {
       
    33 public:  // Constructors and destructor
       
    34     
       
    35     /**
       
    36     * Two-phased constructor.
       
    37     */
       
    38     static CSVPHoldDHState* NewLC();
       
    39     
       
    40     /**
       
    41     * Destructor.
       
    42     */
       
    43     virtual ~CSVPHoldDHState();
       
    44 
       
    45 protected:  // Functions from base classes
       
    46     
       
    47     /**
       
    48     * From CSVPHoldStateBase Apply concrete state.
       
    49     */
       
    50     void DoApplyL( CSVPHoldContext& aContext );
       
    51 
       
    52     /**
       
    53     * From CSVPHoldStateBase Called when the state is entered.
       
    54     */
       
    55     void DoEnter( CSVPHoldContext& aContext );
       
    56 
       
    57     /**
       
    58     * Checks if OutEstablishingState is active.
       
    59     */
       
    60     TBool IsOutEstablishingStateActive();
       
    61 
       
    62 private:
       
    63 
       
    64     /**
       
    65     * C++ default constructor.
       
    66     */
       
    67     CSVPHoldDHState();
       
    68             
       
    69     /*
       
    70     * Performs hold/resume request
       
    71     */
       
    72     TSVPHoldStateIndex PerformRequestL( CSVPHoldContext& aContext,
       
    73                                         CMceMediaStream& aMediaStream,
       
    74                                         CMceSession& aSession );   
       
    75     /*
       
    76     * Resumes locally doubleholded session
       
    77     */
       
    78     void ResumeDoubleHoldSessionLocallyL( CSVPHoldContext& aContext,
       
    79                                           CMceMediaStream& aMediaStream,
       
    80                                           CMceSession& aSession );
       
    81     /*
       
    82     * Handles remote doublehold resume requests
       
    83     */
       
    84     void RemoteDoubleHoldSessionResumeL( CSVPHoldContext& aContext,
       
    85                                          CMceMediaStream& aMediaStream,
       
    86                                          CMceSession& aSession );
       
    87     
       
    88 private:
       
    89 
       
    90     // For testing
       
    91     SVP_UT_DEFS
       
    92     
       
    93     };
       
    94 
       
    95 #endif      // SVPHOLDDHSTATE_H  
       
    96