|
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: Inline methods from PslnUi. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ----------------------------------------------------------------------------- |
|
20 // Returns current status of given state. |
|
21 // ----------------------------------------------------------------------------- |
|
22 // |
|
23 inline TBool CPslnUi::GetStatus( TInt aInternalState ) const |
|
24 { |
|
25 return ( iPslnUiStatus & aInternalState ); |
|
26 } |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // Checks if state is off and then sets it on. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 inline void CPslnUi::SetStateOn( TInt aInternalState ) |
|
33 { |
|
34 if ( !( iPslnUiStatus & aInternalState ) ) |
|
35 { |
|
36 iPslnUiStatus += aInternalState; |
|
37 } |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // Checks if state is on and then sets it off. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 inline void CPslnUi::SetStateOff( TInt aInternalState ) |
|
45 { |
|
46 if ( iPslnUiStatus & aInternalState ) |
|
47 { |
|
48 iPslnUiStatus &= ~aInternalState; |
|
49 } |
|
50 } |