diff -r 36f374c67aa8 -r 12db4185673b messagingapp/msgnotifications/msgnotifier/inc/msgnotifier_p.h --- a/messagingapp/msgnotifications/msgnotifier/inc/msgnotifier_p.h Tue Jul 06 14:12:40 2010 +0300 +++ b/messagingapp/msgnotifications/msgnotifier/inc/msgnotifier_p.h Wed Aug 18 09:45:25 2010 +0300 @@ -20,6 +20,7 @@ #define MSGNOTIFIER_PRIVATE_H #include +#include // CLASS DECLARATION class MsgNotifier; @@ -30,10 +31,22 @@ class XQSystemToneService; /** + * Structure to hold the details of a class 0 SMS + */ +struct Class0Info +{ + QString body; + QString address; + QString alias; + QString time; + int messageId; +}; + +/** * @class MsgNotifierPrivate */ -class MsgNotifierPrivate : public MCsConversationListChangeObserver +class MsgNotifierPrivate : public CBase, public MCsConversationListChangeObserver { public: @@ -114,6 +127,13 @@ */ void displayFailedNote(MsgInfo msgInfo); + /** + * ShowClass0Message + * Popups a Dialog with Class 0 SMS message... + * @param msgInfo MsgInfo The message information object + */ + void ShowClass0Message(Class0Info& aClass0Info); + private: /** * Does all the initializations. @@ -180,5 +200,35 @@ XQSystemToneService* mSts; }; + +/** + * Class for launching the Class0 SMS dialog in a separate thread.. + */ +class Class0SmsServiceTask : public QRunnable +{ +public: + /** + * Constructor + */ + Class0SmsServiceTask(Class0Info& class0info); + + /** + * Destructor + */ + ~Class0SmsServiceTask(); + + /** + * create and send service request + */ + void run(); + +private: + Class0Info mClass0info; +}; + + + + + #endif // MSGNOTIFIER_PRIVATE_H //EOF