|
1 /* |
|
2 * Copyright (c) 2005-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: Small container for shortcut info. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAISCUTSHORTCUTINFO_H |
|
20 #define CAISCUTSHORTCUTINFO_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 /** |
|
25 * Implementation for a shortcut |
|
26 * |
|
27 * Handles parsing and launching an application shortcut |
|
28 * |
|
29 * @since S60 v3.2 |
|
30 */ |
|
31 class CAiScutShortcutInfo : public CBase |
|
32 { |
|
33 |
|
34 public: |
|
35 |
|
36 /** |
|
37 * First phase constructor |
|
38 * |
|
39 * @since S60 v3.2 |
|
40 * @param aId Shortcut id |
|
41 * @param aTarget The shortcut definition string |
|
42 */ |
|
43 static CAiScutShortcutInfo* NewL(TInt aId, const TDesC& aTarget); |
|
44 |
|
45 virtual ~CAiScutShortcutInfo(); |
|
46 |
|
47 /** |
|
48 * Returns the shortcut id |
|
49 * |
|
50 * @since S60 v3.2 |
|
51 * @return Shortcut id |
|
52 */ |
|
53 TInt32 Id() const; |
|
54 |
|
55 /** |
|
56 * Returns the shortcut target string. |
|
57 * |
|
58 * @since S60 v3.2 |
|
59 * @return Shortcut target string |
|
60 */ |
|
61 const TDesC& Target(); |
|
62 |
|
63 protected: |
|
64 |
|
65 private: |
|
66 |
|
67 CAiScutShortcutInfo(TInt aId); |
|
68 |
|
69 void ConstructL(const TDesC& aTarget); |
|
70 |
|
71 private: // data |
|
72 |
|
73 /** |
|
74 * Shortcut id. |
|
75 */ |
|
76 TInt32 iId; |
|
77 |
|
78 /** |
|
79 * Shortcut target string. |
|
80 * Own. |
|
81 */ |
|
82 HBufC* iTarget; |
|
83 |
|
84 }; |
|
85 |
|
86 #endif // CAISCUTSHORTCUTINFO_H |
|
87 |
|
88 // End of File. |