emailuis/nmhswidget/inc/nmhswidgetemailrow.h
changeset 18 578830873419
child 20 ecc8def7944a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/emailuis/nmhswidget/inc/nmhswidgetemailrow.h	Fri Apr 16 14:51:52 2010 +0300
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description: 
+ *
+ */
+
+
+#ifndef NMHSWIDGETEMAILROW_H_
+#define NMHSWIDGETEMAILROW_H_
+
+#include <hbwidget.h>
+
+//FORWARD DECLARATIONS:
+class HbLabel;
+class NmMessageEnvelope;
+
+class NmHsWidgetEmailRow : public HbWidget
+{
+    Q_OBJECT
+  
+public:
+    NmHsWidgetEmailRow(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0);
+    ~NmHsWidgetEmailRow();
+
+public slots:
+    void updateMailData( const NmMessageEnvelope& envelope );
+    
+private:
+    void loadDocML();
+    void setIconsToWidget( const NmMessageEnvelope& envelope );
+    void hideIcons();
+    
+private:
+    HbLabel *mSenderLabel;
+    HbLabel *mSubjectLabel;
+    HbLabel *mTimeLabel;
+    HbLabel *mNewMailIcon;
+    QList <HbLabel*> mStatusIcons;  
+    
+};
+
+#endif // NMHSWIDGETEMAILROW_H_