48
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 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 the License "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 definition of CPushMessageInfoDialog.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef PUSHMESSAGEINFODIALOG_H
|
|
21 |
#define PUSHMESSAGEINFODIALOG_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
|
|
25 |
#include <AknPopup.h>
|
|
26 |
#include <msvstd.h>
|
|
27 |
#include <ConeResLoader.h>
|
|
28 |
|
|
29 |
// FORWARD DECLARATIONS
|
|
30 |
|
|
31 |
class CMsvSession;
|
|
32 |
class CAknSingleHeadingPopupMenuStyleListBox;
|
|
33 |
class CFont;
|
|
34 |
|
|
35 |
// CLASS DECLARATION
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Avkon environment is required.
|
|
39 |
* It executes a waiting dialog.
|
|
40 |
* Usage.
|
|
41 |
* #include "PushMessageInfoDialog.h"
|
|
42 |
* CPushMessageInfoDialog* dlg = new (ELeave) CPushMessageInfoDialog;
|
|
43 |
* CleanupStack::PushL( dlg );
|
|
44 |
* dlg->ExecuteLD( msvSession, id );
|
|
45 |
* CleanupStack::Pop( dlg );
|
|
46 |
*
|
|
47 |
* Note that this class is independent from CMsgInfoMessageInfoDialog defined
|
|
48 |
* in muiumsginfo.h. The mentioned class cannot be used, because it does not
|
|
49 |
* support Push message information.
|
|
50 |
*/
|
|
51 |
class CPushMessageInfoDialog : public CAknPopupList
|
|
52 |
{
|
|
53 |
public: // Constructors
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Constructor.
|
|
57 |
*/
|
|
58 |
CPushMessageInfoDialog();
|
|
59 |
|
|
60 |
/**
|
|
61 |
* Destructor.
|
|
62 |
*/
|
|
63 |
virtual ~CPushMessageInfoDialog();
|
|
64 |
|
|
65 |
public: // New functions
|
|
66 |
|
|
67 |
/**
|
|
68 |
* Execute the dialog with this member.
|
|
69 |
* @param aMsvSession Message Server session.
|
|
70 |
* @param aId The id of the entry.
|
|
71 |
* @return None.
|
|
72 |
*/
|
|
73 |
void ExecuteLD( CMsvSession& aMsvSession, TMsvId aId );
|
|
74 |
|
|
75 |
private: // Constructors and destructor
|
|
76 |
|
|
77 |
/**
|
|
78 |
* Symbian OS constructor.
|
|
79 |
* @param aMsvSession Message Server session.
|
|
80 |
* @param aId The id of the entry.
|
|
81 |
* @return None.
|
|
82 |
*/
|
|
83 |
void ConstructL( CMsvSession& aMsvSession, TMsvId aId );
|
|
84 |
|
|
85 |
private: // New functions
|
|
86 |
|
|
87 |
/**
|
|
88 |
* Add a message info item.
|
|
89 |
* @param aHeaderResourceId Res id of the header text.
|
|
90 |
* @param aText The value text of the item.
|
|
91 |
* @return None.
|
|
92 |
*/
|
|
93 |
void AddMessageInfoItemL
|
|
94 |
( TInt aHeaderResourceId, const TDesC& aText ) const;
|
|
95 |
|
|
96 |
/**
|
|
97 |
* Convert UTC time to Home Time.
|
|
98 |
* @param aUniversalTime Universal (UTC) time to be converted.
|
|
99 |
* @return Home time.
|
|
100 |
*/
|
|
101 |
TTime ConvertUniversalToHomeTime( const TTime& aUniversalTime ) const;
|
|
102 |
|
|
103 |
/**
|
|
104 |
* Add message info items to the dialog.
|
|
105 |
* @param aMsvSession Message Server session.
|
|
106 |
* @param aId The id of the entry.
|
|
107 |
* @return None.
|
|
108 |
*/
|
|
109 |
void AddMessageInfoItemsL( CMsvSession& aMsvSession,
|
|
110 |
TMsvId aId ) const;
|
|
111 |
|
|
112 |
private: // Data
|
|
113 |
|
|
114 |
CAknSingleHeadingPopupMenuStyleListBox* iListBox; ///< Owns.
|
|
115 |
CDesCArrayFlat* iListBoxModel; ///< Owns.
|
|
116 |
RConeResourceLoader iResourceLoader;
|
|
117 |
TFileName iResourceFile;
|
|
118 |
// The following members help wrapping text.
|
|
119 |
const CFont* iSecondColumnFont; ///< Reference to the font. Not owned.
|
|
120 |
TInt iSecondColumnWidth;
|
|
121 |
TInt iPushSLEnabled;
|
|
122 |
;
|
|
123 |
};
|
|
124 |
|
|
125 |
#endif // PUSHMESSAGEINFODIALOG_H
|
|
126 |
|
|
127 |
// End of file.
|