multimediacommsengine/mmcesrv/mmcemediamanager/inc/mcemediaidle.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef TMCEMEDIAIDLE_H
       
    22 #define TMCEMEDIAIDLE_H
       
    23 
       
    24 #include "mcemediastate.h"
       
    25 
       
    26 
       
    27 /**
       
    28 *  Represents MM idle state 
       
    29 *
       
    30 */
       
    31 
       
    32 class TMceMediaIdle : public TMceMediaState
       
    33     {
       
    34     
       
    35 public: // Constructors
       
    36 
       
    37     /**
       
    38     * Consructor
       
    39     */
       
    40     TMceMediaIdle( CMceComSession& aSession );
       
    41 
       
    42     static void SetAsCurrentStateL( CMceComSession& aSession );
       
    43     
       
    44 
       
    45 public: // from TMceMediaState
       
    46 
       
    47     inline TMceMMState Id() 
       
    48         {
       
    49         return KMceMediaIdle;
       
    50         }
       
    51 
       
    52 public: // from TMceMediaState
       
    53 
       
    54     void UpdateL();
       
    55     
       
    56     TMceSipWarningCode DecodeL( CSdpDocument& aSdpDocument );
       
    57     
       
    58 private: 
       
    59 
       
    60     void OfferL();
       
    61 
       
    62     void AnswerL();
       
    63 
       
    64     };
       
    65 
       
    66 #endif//TMCEMEDIAIDLE_H
       
    67 
       
    68 // End of File