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 made |
|
16 * and when not. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef _UIDBLOCK_H_ |
|
22 #define _UIDBLOCK_H_ |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 class CUidBlock : public CBase |
|
27 { |
|
28 public: |
|
29 virtual TBool IsBlocked(const TUid& aFromUid, const TUid& aToUid) = 0; |
|
30 }; |
|
31 |
|
32 |
|
33 class CFullUidBlock : public CUidBlock |
|
34 { |
|
35 public: |
|
36 CFullUidBlock(const TUid& aUid); |
|
37 TBool IsBlocked(const TUid& aFromUid, const TUid& aToUid); |
|
38 private: |
|
39 const TUid iUid; |
|
40 }; |
|
41 |
|
42 |
|
43 class CPairedUidBlock : public CUidBlock |
|
44 { |
|
45 public: |
|
46 CPairedUidBlock(const TUid& aUidFrom, const TUid& aToUid); |
|
47 TBool IsBlocked(const TUid& aFromUid, const TUid& aToUid); |
|
48 private: |
|
49 const TUid iFromUid; |
|
50 const TUid iToUid; |
|
51 }; |
|
52 |
|
53 #endif |