|
1 /* |
|
2 * Copyright (c) 2008 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: The API supports attributes not present in MCS from SAT Api |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CASATHANDLER_H__ |
|
19 #define __CASATHANDLER_H__ |
|
20 |
|
21 #include <AknIconUtils.h> |
|
22 |
|
23 #include <rsatsession.h> |
|
24 #include <tsaticoninfo.h> |
|
25 #ifdef SIM_ATK_SERVICE_API_V1 |
|
26 #include <rsatservice.h>// MCL |
|
27 #else |
|
28 #include <RSatIcon.h> // 5.0 |
|
29 #endif |
|
30 |
|
31 /** |
|
32 * SAT Handler. |
|
33 * @lib mcssathandler.lib |
|
34 * @since S60 v5.0 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CCaSatHandler ): public CBase |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * Two-phased constructor. Leaves on failure. |
|
41 * @return The constructed object. |
|
42 */ |
|
43 IMPORT_C static CCaSatHandler* NewL(); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 * @since S60 v5.0 |
|
48 * @capability None. |
|
49 * @throws None. |
|
50 * @panic None. |
|
51 */ |
|
52 virtual ~CCaSatHandler(); |
|
53 |
|
54 IMPORT_C CAknIcon* LoadIconL(); |
|
55 |
|
56 IMPORT_C TInt GetName( TDes& aName ); |
|
57 |
|
58 IMPORT_C static TBool CheckVisibility(); |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * Constructor. |
|
64 */ |
|
65 CCaSatHandler(); |
|
66 |
|
67 /** |
|
68 * 2nd phase constructor. |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 /** |
|
73 * Gets best icon from aIconEF. |
|
74 */ |
|
75 CFbsBitmap* GetBitmapL( const RIconEf& aIconEF ); |
|
76 |
|
77 private: |
|
78 // data |
|
79 |
|
80 RSatSession iSatSession; |
|
81 |
|
82 #ifdef SIM_ATK_SERVICE_API_V1 |
|
83 RSatService iSatIcon; |
|
84 #else |
|
85 RSatIcon iSatIcon; |
|
86 #endif |
|
87 }; |
|
88 |
|
89 #endif // __CASATHANDLER_H__ |