|
1 /* |
|
2 * Copyright (c) 2004 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: ImLauncher plugin implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CIMLAUNCHERIMPLEMENTATION_H |
|
21 #define CIMLAUNCHERIMPLEMENTATION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "MCAAudioManagerObserver.h" |
|
25 |
|
26 #include <cimpspresenceconnectionuing.h> |
|
27 |
|
28 #include <IMLauncherPlugin.h> |
|
29 #include <bldvariant.hrh> |
|
30 |
|
31 // CLASS DECLARATION |
|
32 class CCAAudioManager; |
|
33 |
|
34 /** |
|
35 * IM Application launcher implementation |
|
36 * |
|
37 * @lib ImLauncher |
|
38 * @since 2.6 |
|
39 */ |
|
40 class CImLauncherImplementation |
|
41 : public CImLauncherPlugin, |
|
42 public MCAAudioManagerObserver |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 static CImLauncherImplementation* NewL(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CImLauncherImplementation(); |
|
55 |
|
56 public: // From CImLauncherInterface |
|
57 |
|
58 /** |
|
59 * From CImLauncherPlugin |
|
60 * Method for starting an application which can receive instant messages. |
|
61 * Asynchronous function. |
|
62 * @since 2.6 |
|
63 * @param aStatus Request status |
|
64 */ |
|
65 void StartApplicationL( TRequestStatus& aStatus, const TDesC& aSap, const TDesC& aUserId ); |
|
66 |
|
67 /** |
|
68 * From CImLauncherPlugin |
|
69 * Method for canceling the application start. |
|
70 * @since 2.6 |
|
71 */ |
|
72 void CancelStartApplication(); |
|
73 |
|
74 private: // from class MCAAudioManagerObserver |
|
75 |
|
76 /** |
|
77 * @see MCAAudioManagerObserver |
|
78 */ |
|
79 void PlayCompleted(); |
|
80 |
|
81 private: |
|
82 |
|
83 /** |
|
84 * C++ default constructor. |
|
85 */ |
|
86 CImLauncherImplementation(); |
|
87 |
|
88 /** |
|
89 * By default Symbian 2nd phase constructor is private. |
|
90 */ |
|
91 void ConstructL(); |
|
92 |
|
93 private: // new functions |
|
94 |
|
95 /** |
|
96 * Sets Instante Message indicator visible. |
|
97 */ |
|
98 void SetIMUIPIconL(); |
|
99 |
|
100 /** |
|
101 * Shows IM message soft notification |
|
102 */ |
|
103 void ShowSoftNotificationL(); |
|
104 |
|
105 |
|
106 /** |
|
107 * Add one to unread message count (PS key) |
|
108 */ |
|
109 void AddMessageCounterL(); |
|
110 |
|
111 private: // data |
|
112 |
|
113 // Audio player for playing incoming messages, owned |
|
114 CCAAudioManager* iAudioManager; |
|
115 |
|
116 // Status variable to be return |
|
117 TRequestStatus* iStatus; |
|
118 |
|
119 // Pending requst err status |
|
120 TInt iRequestErr; |
|
121 |
|
122 // Owns. Connection UI |
|
123 CIMPSPresenceConnectionUi* iConnUI; |
|
124 }; |
|
125 |
|
126 #endif // CIMLAUNCHERIMPLEMENTATION_H |
|
127 // End of File |