multimediacommsengine/mmcesrv/mmceserver/tsrc/ut_server/stubs/src/CMCEEventContextStub.cpp
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:    Base class for event contexts. Contains methods for
       
    15 *                creating the state array and controlling current state.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #include "cmcecomevent.h"
       
    23 #include "cmceeventcontext.h"
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CMCEMoEventSubscribeContext::NewL
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CMceEventContext* CMceEventContext::NewL( CMceComEvent& /*aEvent*/ )
       
    30 	{
       
    31 	CMceEventContext* self = new( ELeave ) CMceEventContext;
       
    32     return self;
       
    33 	}
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // CMceEventContext::CMceEventContext
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 CMceEventContext::CMceEventContext():
       
    40     iCurrentState( KMceIdleEventStateIndex )
       
    41     {
       
    42     }
       
    43 // -----------------------------------------------------------------------------
       
    44 // CMceEventContext::~CMceEventContext
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 CMceEventContext::~CMceEventContext()
       
    48 	{
       
    49 	}
       
    50 	
       
    51 // -----------------------------------------------------------------------------
       
    52 // CMceEventContext::CurrentState()
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 TMceEventStateIndex CMceEventContext::CurrentState()
       
    56 	{
       
    57 	return iCurrentState;
       
    58 	}
       
    59 
       
    60 // End of file
       
    61