uiacceltk/hitchcock/plugins/alftranseffect/alftranseffectplugin/src/uidblock.cpp
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     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:   State machine interface. Used for the statemachine in the 
       
    15 *                server drawer to keep track on when a transition should be made
       
    16 *                and when not.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #include "uidblock.h"
       
    22 
       
    23 CFullUidBlock::CFullUidBlock(const TUid& aUid) : 
       
    24 	iUid(aUid)
       
    25 	{
       
    26 	}
       
    27 	
       
    28 TBool CFullUidBlock::IsBlocked(const TUid& aFromUid, const TUid& aToUid)
       
    29 	{
       
    30 	if(aFromUid == iUid)
       
    31 	    {
       
    32 		return ETrue;
       
    33 	    }
       
    34 	if(aToUid == iUid)
       
    35 	    {
       
    36 		return ETrue;
       
    37 	    }
       
    38 	return EFalse;
       
    39 	}
       
    40 
       
    41 CPairedUidBlock::CPairedUidBlock(const TUid& aFromUid, const TUid& aToUid) : 
       
    42 	iFromUid(aFromUid),
       
    43 	iToUid(aToUid)
       
    44 	{
       
    45 	}
       
    46 	
       
    47 TBool CPairedUidBlock::IsBlocked(const TUid& aFromUid, const TUid& aToUid)
       
    48 	{
       
    49 	if((aFromUid == iFromUid) && (aToUid == iToUid))
       
    50 		return ETrue;
       
    51 	return EFalse;
       
    52 	}