uiacceltk/hitchcock/plugins/alftranseffect/alftranseffectplugin/src/uidexception.cpp
equal
deleted
inserted
replaced
|
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 |
|
16 * always allowed. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #include "uidexception.h" |
|
22 |
|
23 |
|
24 CFullUidException::CFullUidException(const TUid& aUid) : |
|
25 iUid(aUid) |
|
26 { |
|
27 } |
|
28 |
|
29 TBool CFullUidException::IsAllowed(const TUid& aFromUid, const TUid& aToUid) |
|
30 { |
|
31 if(aFromUid == iUid) |
|
32 return ETrue; |
|
33 if(aToUid == iUid) |
|
34 return ETrue; |
|
35 return EFalse; |
|
36 } |
|
37 |
|
38 CPairedUidException::CPairedUidException(const TUid& aFromUid, const TUid& aToUid) : |
|
39 iFromUid(aFromUid), |
|
40 iToUid(aToUid) |
|
41 { |
|
42 } |
|
43 |
|
44 TBool CPairedUidException::IsAllowed(const TUid& aFromUid, const TUid& aToUid) |
|
45 { |
|
46 if((aFromUid == iFromUid) && (aToUid == iToUid)) |
|
47 return ETrue; |
|
48 return EFalse; |
|
49 } |