--- a/messagingapp/msgui/conversationview/inc/msgcontactcardwidget.h Mon May 03 12:29:07 2010 +0300
+++ b/messagingapp/msgui/conversationview/inc/msgcontactcardwidget.h Fri May 14 15:49:35 2010 +0300
@@ -26,14 +26,15 @@
class HbTextItem;
class HbIcon;
class QGraphicsSceneMouseEvent;
-class HbGestureSceneFilter;
+//class HbGestureSceneFilter;
+class ThumbnailManager;
#include "convergedmessageaddress.h"
/**
* This class is a custom layout widget for Contact Card layout.
*/
-class MsgContactCardWidget : public HbWidget
+class MsgContactCardWidget: public HbWidget
{
Q_OBJECT
@@ -78,29 +79,29 @@
* Refreshes all the Contact card fields.
*/
void updateContents();
-
/**
* Clears all the Contact card fields.
*/
void clearContent();
-
+
/**
* for tactile feed back.
+ * Depricated
*/
- HbFeedback::InstantEffect overrideFeedback(Hb::InstantInteraction interaction) const;
-
+ // HbFeedback::InstantEffect overrideFeedback(Hb::InstantInteraction interaction) const;
+
/**
* To connect/disconnect clicked signal
*/
void connectSignals(bool yes);
-
+
protected:
/**
* reimplemented from base class.
*/
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
-
+
/**
* reimplemented from base class.
*/
@@ -117,65 +118,69 @@
* @param value phone number.
*/
int resolveContactId(const QString& value);
-
+
/**
* Helper method to set back ground.
*/
void setBackGround(const QString& bg);
-
+
private slots:
/**
* show longpress menu for attachment object
*/
void handleLongPress(QPointF position);
-
+
/**
* Helper method to initialize gesture.
*/
void initGesture();
-
+
/**
* Slot for handling valid returns from the framework.
* Updates the display name in the contact card widget.
* @param result const QVariant&
*/
void handleOk(const QVariant& result);
-
+
/**
* Slot for handling errors. Error ids are provided as
* 32-bit integers.
* @param errorCode qint32
*/
void handleError(int errorCode, const QString& errorMessage);
-
+
/**
* Called when clicked() signal is emitted
* Launches phonebook to view an existing contact
* or to add a new contact
*/
void openContactInfo();
-
+
/**
* Launches Dialer Service
*/
void call();
-
+
/**
* Adds unknown number to phonebook
*/
void addToContacts();
-
+
/**
* Called after service request is completed.
*/
void onServiceRequestCompleted();
+ /**
+ * Slot hit when the thumbnail is ready.
+ */
+ void thumbnailReady(const QPixmap& pixmap, void *data, int id, int error);
+
signals:
- /**
- * Emitted when contact card is short tapped.
- */
+ /**
+ * Emitted when contact card is short tapped.
+ */
void clicked();
-
private:
// Data
@@ -184,13 +189,13 @@
/**
* To supress short tap if long tap triggered.
*/
- bool mMenuShown;
-
- /**
+ bool mMenuShown;
+
+ /**
* Contact Number for the conversation
*/
QString mContactNumber;
-
+
/**
* Address string.
*/
@@ -213,15 +218,17 @@
* Own.
*/
HbTextItem *mAddressTextItem;
-
+
/**
* gesture filter for long press.
- */
- HbGestureSceneFilter* mGestureFilter;
-
+ */
+ // HbGestureSceneFilter* mGestureFilter;
-
-
+ /**
+ * ThumbnailManager
+ * Own.
+ */
+ ThumbnailManager *mThumbnailManager;
};
#endif // MSGCONTACTCARDWIDGET_H