|
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: Class stores basic information about application |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef BSAPPLICATIONINFO_H |
|
20 #define BSAPPLICATIONINFO_H |
|
21 |
|
22 /** |
|
23 * Simple helper class used for keeping basic information in back stepping stack |
|
24 * |
|
25 * @since S60 3.2 |
|
26 */ |
|
27 class CBSApplicationInfo : public CBase |
|
28 { |
|
29 public: |
|
30 |
|
31 static CBSApplicationInfo* NewL(); |
|
32 static CBSApplicationInfo* NewLC(); |
|
33 |
|
34 /** |
|
35 * Destructor. |
|
36 */ |
|
37 ~CBSApplicationInfo(); |
|
38 |
|
39 /** |
|
40 * Set application UID |
|
41 * |
|
42 * @since S60 3.2 |
|
43 * @param aApp application UID |
|
44 */ |
|
45 void SetAppUid( const TUid& aApp ); |
|
46 |
|
47 /** |
|
48 * Get application UID |
|
49 * |
|
50 * @since S60 3.2 |
|
51 * @return application UID |
|
52 */ |
|
53 TUid AppUid(); |
|
54 |
|
55 /** |
|
56 * Set previous application UID |
|
57 * It is application that started application in question |
|
58 * |
|
59 * @since S60 3.2 |
|
60 * @param aApp previous application UID |
|
61 */ |
|
62 void SetPrevAppUid( const TUid& aApp ); |
|
63 |
|
64 /** |
|
65 * Get previous application UID |
|
66 * |
|
67 * @since S60 3.2 |
|
68 * @return previous application UID |
|
69 */ |
|
70 TUid PrevAppUid(); |
|
71 |
|
72 /** |
|
73 * Set item state of application. |
|
74 * It is a state that was activated when application gained focus |
|
75 * Item state is encoded in simple descriptor |
|
76 * |
|
77 * @since S60 3.2 |
|
78 * @param aState application item state |
|
79 */ |
|
80 void SetItemStateL( const TDesC8& aState ); |
|
81 |
|
82 /** |
|
83 * Get item state of application. |
|
84 * It is a state that was activated when application gained focus |
|
85 * Item state is encoded in simple descriptor |
|
86 * |
|
87 * @since S60 3.2 |
|
88 * @return application item state |
|
89 */ |
|
90 const TDesC8& ItemState(); |
|
91 |
|
92 private: |
|
93 |
|
94 CBSApplicationInfo(); |
|
95 |
|
96 void ConstructL(); |
|
97 |
|
98 private: |
|
99 // data |
|
100 /** |
|
101 * Applicatin UID |
|
102 */ |
|
103 TUid iAppUid; |
|
104 |
|
105 /** |
|
106 * Previous applicatin UID |
|
107 */ |
|
108 TUid iPrevAppUid; |
|
109 |
|
110 /** |
|
111 * Item State of application |
|
112 * Own. |
|
113 */ |
|
114 HBufC8* iItemState; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // BSAPPLICATIONINFO_H |