diff -r 238255e8b033 -r 84d9eb65b26f messagingapp/msgnotifications/msgnotifier/inc/msgnotifier.h --- a/messagingapp/msgnotifications/msgnotifier/inc/msgnotifier.h Fri Apr 16 14:56:15 2010 +0300 +++ b/messagingapp/msgnotifications/msgnotifier/inc/msgnotifier.h Mon May 03 12:29:07 2010 +0300 @@ -23,6 +23,7 @@ #include #include #include +#include "msginfodefs.h" // CLASS DECLARATION class MsgNotifierPrivate; @@ -34,50 +35,51 @@ * private class to qt - class. */ class NotificationData - { +{ public: /** * constrcutor */ - NotificationData(): - mConversationId(-1),mMsgType(-1) - {}; + NotificationData() : + mConversationId(-1), mMsgType(-1) + { + } + /** * Conversation id */ int mConversationId; - + /** * Message type */ int mMsgType; - + /** * Description */ QString mDescription; /** - * First name + * Display name */ - QString mFirstName; - - /** - * Last name - */ - QString mLastName; + QString mDisplayName; /** * Contact Number */ QString mContactNum; + /** + * MsvEntry Id + */ + int msvEntryId; }; -class MsgNotifier : public QObject - { - Q_OBJECT +class MsgNotifier: public QObject +{ +Q_OBJECT public: /** @@ -98,23 +100,39 @@ */ void displayNewMessageNotification(NotificationData& data); - /** - * updateIndications + * updateUnreadIndications * Activate/Deactivate message indications based on unread message count. * if unreadCount is zero then deactivate else activate. * @param unreadCount unread count. */ - void updateIndications(int unreadCount); + void updateUnreadIndications(int unreadCount); + + /** + * updateOutboxIndications + * Activate/Deactivate message indications based on outbox + * message count. + * @param indicatorData The indicator data for displaying the indication. + */ + void updateOutboxIndications(MsgInfo& indicatorData); private: + + /** + * Get display-name of a contact from VCard. + * @param filePath, VCard file-path + * @return display-name + */ + QString getVcardDisplayName(const QString& filePath); + +private: /** * Object of private implementation. * Owned. */ - MsgNotifierPrivate* d_ptr; - + MsgNotifierPrivate* d_ptr; + /** * Sim settings handler */ @@ -122,5 +140,4 @@ }; #endif // MSGNOTIFIER_H - //EOF