equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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: This file contains TMuiuFlags class declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef TMuiuFlag_H |
|
21 #define TMuiuFlag_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 /** |
|
26 * Helper class for flags. |
|
27 */ |
|
28 class TMuiuFlags |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * constructor |
|
33 */ |
|
34 IMPORT_C TMuiuFlags( const TUint64 aFlags = 0 ); |
|
35 |
|
36 /** |
|
37 * Sets flag on |
|
38 * @since Series60 3.0 |
|
39 * @param aFlag: flag to be set |
|
40 */ |
|
41 inline void SetFlag( const TUint aFlag ); |
|
42 |
|
43 /** |
|
44 * Clear flag on |
|
45 * @since Series60 3.0 |
|
46 * @param aFlag: flag to be cleared |
|
47 */ |
|
48 inline void ClearFlag( const TUint aFlag ); |
|
49 |
|
50 /** |
|
51 * Query for the flag |
|
52 * @since Series60 3.0 |
|
53 * @param aFlag: flag to be checked |
|
54 */ |
|
55 inline TBool Flag( const TUint aFlag ) const; |
|
56 |
|
57 /** |
|
58 * Modifies the state of the flag |
|
59 * @since Series60 3.0 |
|
60 */ |
|
61 inline void ChangeFlag( |
|
62 const TUint aFlag, |
|
63 const TBool aNewState ); |
|
64 |
|
65 /** |
|
66 * Copies the flags |
|
67 * @since Series60 3.0 |
|
68 */ |
|
69 IMPORT_C TMuiuFlags& operator=( const TMuiuFlags& aFlags ); |
|
70 |
|
71 /** |
|
72 * Copies the flags |
|
73 * @since Series60 3.0 |
|
74 */ |
|
75 IMPORT_C TMuiuFlags& operator=( const TUint64 aFlags ); |
|
76 |
|
77 private: |
|
78 TUint64 iFlags; |
|
79 }; |
|
80 |
|
81 #include <muiuflags.inl> |
|
82 |
|
83 #endif |
|
84 |
|
85 // End of File |
|
86 |