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: Class for messaging view shortcut target. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAISCUTTARGETMESSAGINGVIEW_H |
|
20 #define CAISCUTTARGETMESSAGINGVIEW_H |
|
21 |
|
22 #include <msvstd.h> |
|
23 |
|
24 #include "caiscuttarget.h" |
|
25 |
|
26 class CGulIcon; |
|
27 |
|
28 /** |
|
29 * Implements a mailbox shortcut target |
|
30 * |
|
31 * Handles parsing and launching a mailbox shortcut target |
|
32 * |
|
33 * @since S60 v3.2 |
|
34 */ |
|
35 class CAiScutTargetMessagingView : public CAiScutTarget |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * First phase constructor |
|
42 * |
|
43 * @since S60 v3.2 |
|
44 * @param aEngine Reference to the plug-in engine |
|
45 * @param aParser Shortcut definition parser |
|
46 */ |
|
47 static CAiScutTargetMessagingView* NewL( |
|
48 CAiScutEngine& aEngine, TShortcutType aType, const TAiScutParser& aParser); |
|
49 |
|
50 virtual ~CAiScutTargetMessagingView(); |
|
51 |
|
52 /** |
|
53 * Returns the shortcut definition string |
|
54 * |
|
55 * @since S60 v3.2 |
|
56 * @return Shortcut definition string |
|
57 */ |
|
58 TPtrC Definition() const; |
|
59 |
|
60 /** |
|
61 * See base class |
|
62 */ |
|
63 TInt GetCaption(TPtrC& aDes, TAiScutAppTitleType aTitleType) const; |
|
64 |
|
65 /** |
|
66 * See base class |
|
67 */ |
|
68 TInt GetIcon(CGulIcon*& aIcon) const; |
|
69 |
|
70 /** |
|
71 * See base class |
|
72 */ |
|
73 TBool IsAccessibleL(TInt aCheckType); |
|
74 |
|
75 /** |
|
76 * Launches the shortcut |
|
77 * |
|
78 * @since S60 v3.2 |
|
79 */ |
|
80 void LaunchL(); |
|
81 |
|
82 /** |
|
83 * Return application uid this target launches. |
|
84 * |
|
85 * @since S60 v3.2 |
|
86 */ |
|
87 TUid AppUid() const; |
|
88 |
|
89 protected: |
|
90 |
|
91 private: |
|
92 |
|
93 CAiScutTargetMessagingView(CAiScutEngine& aEngine, TShortcutType aType); |
|
94 |
|
95 void ConstructL(const TAiScutParser& aParser); |
|
96 |
|
97 /** |
|
98 * Tries to find a view id |
|
99 * |
|
100 * @since S60 v3.2 |
|
101 * @return Mailbox id |
|
102 */ |
|
103 TMsvId FindViewIdL(); |
|
104 |
|
105 /** |
|
106 * Leaving version of GetIcon. |
|
107 */ |
|
108 void GetIconL(CGulIcon*& aIcon) const; |
|
109 |
|
110 private: // data |
|
111 |
|
112 /** |
|
113 * View name. Contains the remote mailbox name or the messaging view name |
|
114 * Own. |
|
115 */ |
|
116 HBufC* iViewName; |
|
117 |
|
118 /** |
|
119 * Holds the shortcut definition string |
|
120 * Owned. |
|
121 */ |
|
122 HBufC* iDefinition; |
|
123 |
|
124 }; |
|
125 |
|
126 #endif // CAISCUTTARGETMESSAGINGVIEW_H |
|
127 |
|
128 // End of File. |
|