|
1 /* |
|
2 * Copyright (c) 2005 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 MUS application's UI class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSUIINVITATIONQUERY_H |
|
21 #define MUSUIINVITATIONQUERY_H |
|
22 |
|
23 #include "musuiactivetimerobserver.h" |
|
24 |
|
25 #include <e32base.h> |
|
26 |
|
27 class CAknGlobalConfirmationQuery; |
|
28 class CMusUiActiveTimer; |
|
29 class MMusUiInvitationQueryObserver; |
|
30 |
|
31 /** |
|
32 * |
|
33 * |
|
34 * |
|
35 * @lib musui.exe |
|
36 */ |
|
37 class CMusUiInvitationQuery : public CActive, |
|
38 public MMusUiActiveTimerObserver |
|
39 { |
|
40 |
|
41 public: // constructor |
|
42 |
|
43 static CMusUiInvitationQuery* NewL( MMusUiInvitationQueryObserver& aView ); |
|
44 |
|
45 ~CMusUiInvitationQuery(); |
|
46 |
|
47 private: |
|
48 |
|
49 CMusUiInvitationQuery( MMusUiInvitationQueryObserver& aView ); |
|
50 |
|
51 void ConstructL(); |
|
52 |
|
53 |
|
54 public: // new functions |
|
55 |
|
56 void ShowL( const TDesC& aContact ); |
|
57 |
|
58 |
|
59 public: // from: MMusUiActiveTimerObserver |
|
60 |
|
61 void TimerComplete( CMusUiActiveTimer* aTimer ); |
|
62 |
|
63 |
|
64 protected: // from CActive |
|
65 |
|
66 void RunL(); |
|
67 |
|
68 void DoCancel(); |
|
69 |
|
70 TInt RunError( TInt aError ); |
|
71 |
|
72 |
|
73 private: // data |
|
74 |
|
75 /** A global confirmation query. Own. */ |
|
76 CAknGlobalConfirmationQuery* iGlobalQuery; |
|
77 |
|
78 /** A descriptor buffer for prompting. Own. */ |
|
79 HBufC* iPrompt; |
|
80 |
|
81 CMusUiActiveTimer* iActiveTimer; |
|
82 |
|
83 /** Observer. */ |
|
84 MMusUiInvitationQueryObserver& iObserver; |
|
85 }; |
|
86 |
|
87 |
|
88 #endif // MUSUIINVITATIONQUERY_H |
|
89 |
|
90 // end of file |