mmfenh/enhancedmediaclient/Client/src/Components/EventObjects/StateChangedEvent.cpp
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Implementation of StateChangedEvent class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "StateChangedEvent.h"
       
    20 
       
    21 using namespace multimedia;
       
    22 
       
    23 CStateChangedEvent::CStateChangedEvent(
       
    24     MStreamControl::TStreamState aState,
       
    25     TInt aReason):
       
    26     iState(aState),
       
    27     iReason(aReason)
       
    28     {
       
    29     // No impl
       
    30     }
       
    31 
       
    32 CStateChangedEvent::~CStateChangedEvent()
       
    33     {
       
    34     }
       
    35 
       
    36 TAny* CStateChangedEvent::GetInterface()
       
    37     {
       
    38     MStateChangedEvent* interface = this;
       
    39     return interface;
       
    40     }
       
    41 
       
    42 MStreamControl::TStreamState CStateChangedEvent::GetState()
       
    43     {
       
    44     return iState;
       
    45     }
       
    46 
       
    47 TInt CStateChangedEvent::GetErrorCode()
       
    48     {
       
    49     return iReason;        
       
    50     }
       
    51 // End of file