sipvoipprovider/svphold/inc/svpholdconnectedstate.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:  Connected state class for hold state machine.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SVPHOLDCONNECTEDSTATE_H
       
    20 #define SVPHOLDCONNECTEDSTATE_H
       
    21 
       
    22 #include "svpholdstatebase.h"
       
    23 #include "svpholdcontext.h"
       
    24 #include "svputdefs.h"
       
    25 
       
    26 /**
       
    27 *  State for hold requests in session connected state
       
    28 *  @lib svp.dll
       
    29 *  @since Series 60 3.2
       
    30 */
       
    31 class CSVPHoldConnectedState : public CSVPHoldStateBase
       
    32     {
       
    33 public:  // Constructors and destructor
       
    34     
       
    35     /**
       
    36     * Two-phased constructor.
       
    37     */
       
    38     static CSVPHoldConnectedState* NewLC();
       
    39     
       
    40     /**
       
    41     * Destructor.
       
    42     */
       
    43     virtual ~CSVPHoldConnectedState();
       
    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 
       
    63 private:
       
    64 
       
    65     /**
       
    66     * C++ default constructor.
       
    67     */
       
    68     CSVPHoldConnectedState();
       
    69     
       
    70     /*
       
    71     * Performs hold/resume request
       
    72     */
       
    73     TSVPHoldStateIndex PerformRequestL( CSVPHoldContext& aContext,
       
    74                                         CMceMediaStream& aMediaStream,
       
    75                                         CMceSession& aSession );   
       
    76     /*
       
    77     * Holds session locally
       
    78     */
       
    79     void HoldSessionLocallyL( CSVPHoldContext& aContext,
       
    80                               CMceMediaStream& aMediaStream,
       
    81                               CMceSession& aSession );
       
    82     /*
       
    83     * Handles remote resume requests
       
    84     */
       
    85     void RemoteSessionHoldL( CSVPHoldContext& aContext,
       
    86                              CMceMediaStream& aMediaStream,
       
    87                              CMceSession& aSession );
       
    88 
       
    89 private:
       
    90     
       
    91     // For testing
       
    92     SVP_UT_DEFS
       
    93 
       
    94     };
       
    95 
       
    96 #endif      // SVPHOLDCONNECTEDSTATE_H  
       
    97