|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Declaration of class CFsEmailMessageQueryDialog |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_FSEMAILMESSAGEQUERYDIALOG_H |
|
20 #define C_FSEMAILMESSAGEQUERYDIALOG_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <aknmessagequerydialog.h> |
|
25 |
|
26 //<cmail> |
|
27 #include "fsmailserverconst.h" |
|
28 //</cmail> |
|
29 |
|
30 // FORWARD DECLARATION |
|
31 class CFsEmailMessageQueryPlugin; |
|
32 |
|
33 |
|
34 // CLASS DECLARATION |
|
35 /** |
|
36 * Class implementing MessageQuery (username and password) dialog |
|
37 */ |
|
38 class CFsEmailMessageQueryDialog : public CAknMessageQueryDialog |
|
39 { |
|
40 public: |
|
41 /** |
|
42 * NewL function |
|
43 * @param aStatus active object's status variable |
|
44 */ |
|
45 |
|
46 static CFsEmailMessageQueryDialog* NewLC( TRequestStatus& aStatus, |
|
47 TDesC& aMailboxName, |
|
48 TFsEmailNotifierSystemMessageType aMessageType, |
|
49 const TDesC& aCustomMessageText = KNullDesC ); |
|
50 |
|
51 /** |
|
52 * ~CFsEmailMessageQueryDialog destructor |
|
53 * @param - |
|
54 */ |
|
55 ~CFsEmailMessageQueryDialog(); |
|
56 |
|
57 private: // From base class CAknMessageQueryDialog |
|
58 /** |
|
59 * OkToExitL destructor |
|
60 * @param aButtonId button exit id |
|
61 * @return TBool exit or no |
|
62 */ |
|
63 virtual TBool OkToExitL( TInt aButtonId ); |
|
64 |
|
65 private: // Own functions |
|
66 /** |
|
67 * CFsEmailMessageQueryDialog default constructor |
|
68 * @param aStatus active object's status variable |
|
69 */ |
|
70 CFsEmailMessageQueryDialog( TRequestStatus& aStatus, |
|
71 TDesC& aMailboxName, |
|
72 TFsEmailNotifierSystemMessageType aMessageType ); |
|
73 |
|
74 void PrepareDialogLC( const TDesC& aCustomMessageText = KNullDesC ); |
|
75 |
|
76 TBool GetResourceIdsL(); |
|
77 void SetMessageTextAndCbaToDialogL(); |
|
78 void SetMessageTextAndCbaToDialogL( const TDesC& aText ); |
|
79 void SetDialogHeadingL(); |
|
80 |
|
81 private: |
|
82 |
|
83 TRequestStatus* iRequest; |
|
84 |
|
85 TFsEmailNotifierSystemMessageType iMessageType; |
|
86 TDesC& iMailboxName; |
|
87 TInt iMsgTxtResourceId; // Message text resource id |
|
88 TInt iCbaResourceId; // Cba buttons resource id |
|
89 TBool iAddMailboxNameToText; |
|
90 |
|
91 }; |
|
92 |
|
93 |
|
94 #endif // C_FSEMAILMESSAGEQUERYDIALOG_H |
|
95 |
|
96 // End of File |