messagingapp/msgnotifications/msgnotifier/inc/msgnotifier_p.h
changeset 51 3507212d340e
parent 48 4f501b74aeb1
child 62 fdbe8253b596
--- a/messagingapp/msgnotifications/msgnotifier/inc/msgnotifier_p.h	Tue Aug 03 21:34:40 2010 +0530
+++ b/messagingapp/msgnotifications/msgnotifier/inc/msgnotifier_p.h	Fri Aug 06 23:19:50 2010 +0530
@@ -20,6 +20,7 @@
 #define MSGNOTIFIER_PRIVATE_H
 
 #include <mcsconversationlistchangeobserver.h>
+#include <QRunnable>
 
 // CLASS DECLARATION
 class MsgNotifier;
@@ -30,6 +31,18 @@
 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
  */
 
@@ -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