1 /* |
|
2 * Copyright (c) 2007 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: Encapsulates the data specific to a single indicator.* |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef CAMINDICATORDATA_H |
|
19 #define CAMINDICATORDATA_H |
|
20 |
|
21 // INCLUDES |
|
22 |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * |
|
30 */ |
|
31 class CCamIndicatorData : public CBase |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * Symbian OS two-phased constructor |
|
37 * @since 2.8 |
|
38 * @param aReader reference to resource reader object |
|
39 */ |
|
40 static CCamIndicatorData* NewLC( TResourceReader& aReader ); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CCamIndicatorData(); |
|
46 |
|
47 private: |
|
48 /** |
|
49 * Symbian OS 2nd phase constructor. |
|
50 * @since 2.8 |
|
51 * @param aReader reference to resource reader object |
|
52 */ |
|
53 void ConstructL( TResourceReader& aReader ); |
|
54 |
|
55 /** |
|
56 * C++ constructor |
|
57 * @since 2.8 |
|
58 */ |
|
59 CCamIndicatorData(); |
|
60 |
|
61 public: // New functions |
|
62 /** |
|
63 * returns the indicator identifier |
|
64 * @since 2.8 |
|
65 * @return indicator id |
|
66 */ |
|
67 TInt IndicatorId() const; |
|
68 |
|
69 /** |
|
70 * returns the indicator rectangle |
|
71 * @since 2.8 |
|
72 * @return indicator rectangle |
|
73 */ |
|
74 TRect IndicatorRect() const; |
|
75 |
|
76 /** |
|
77 * returns the number of available bitmaps for the indicator |
|
78 * @since 2.8 |
|
79 * @return number of bitmaps |
|
80 */ |
|
81 TInt IndicatorBitmapCount() const; |
|
82 |
|
83 /** |
|
84 * returns a bitmap identifier |
|
85 * @since 2.8 |
|
86 * @param aIndex indx into array of available bitmaps |
|
87 * @return bitmap id at specified index |
|
88 */ |
|
89 TInt32 IndicatorBitmapId( TInt aIndex ) const; |
|
90 |
|
91 private: // Data |
|
92 TInt iIndicatorId; |
|
93 TRect iRect; |
|
94 TInt iIndicatorBitmapCount; |
|
95 RArray<TInt32> iBitmapIdArray; |
|
96 }; |
|
97 |
|
98 #endif |
|
99 |
|
100 // End of File |
|