31
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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: This widget displays subject,timestamp & priority info
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef UNIVIEWERDETAILSWIDGET_H
|
|
19 |
#define UNIVIEWERDETAILSWIDGET_H
|
|
20 |
|
|
21 |
#include <hbwidget.h>
|
|
22 |
|
|
23 |
class HbTextItem;
|
|
24 |
class HbIconItem;
|
|
25 |
|
|
26 |
/*
|
|
27 |
*This widget displays subject,timestamp & priority info
|
|
28 |
*/
|
|
29 |
class UniViewerDetailsWidget: public HbWidget
|
|
30 |
{
|
|
31 |
Q_OBJECT
|
|
32 |
|
|
33 |
public:
|
|
34 |
|
|
35 |
/**
|
|
36 |
* Constructor
|
|
37 |
*/
|
|
38 |
explicit UniViewerDetailsWidget(QGraphicsItem *parent = 0);
|
|
39 |
|
|
40 |
/**
|
|
41 |
* Destructor
|
|
42 |
*/
|
|
43 |
virtual ~UniViewerDetailsWidget();
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Sets the subject inside widget
|
|
47 |
* @param subject
|
|
48 |
*/
|
|
49 |
void setSubject(const QString &subject);
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Sets the time stamp inside widget
|
|
53 |
* @param aTimeStamp
|
|
54 |
*/
|
|
55 |
void setTimeStamp(const QDateTime &aTimeStamp, const int &aSendingState);
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Sets the priority inside widget
|
|
59 |
* @param priority
|
|
60 |
*/
|
|
61 |
void setPriorityIcon(int priority);
|
|
62 |
|
|
63 |
/**
|
|
64 |
* Clears the content on the widget
|
|
65 |
*/
|
|
66 |
void clearContent();
|
|
67 |
|
|
68 |
private:
|
|
69 |
|
|
70 |
/**
|
|
71 |
* HbTextItem object
|
|
72 |
* Owned
|
|
73 |
*/
|
|
74 |
HbTextItem *mSubjectLabel;
|
|
75 |
|
|
76 |
/**
|
|
77 |
* HbIconItem object
|
|
78 |
* Owned
|
|
79 |
*/
|
|
80 |
HbIconItem* mPriorityIcon;
|
|
81 |
|
|
82 |
/*
|
|
83 |
* HbTextItem object
|
|
84 |
* Owned
|
|
85 |
*/
|
|
86 |
HbTextItem* mTime;
|
|
87 |
};
|
|
88 |
|
|
89 |
#endif // UNIVIEWERDETAILSWIDGET_H
|
|
90 |
// EOF
|