messagingapp/msgui/msgapp/src/msgmainwindow.cpp
branchGCC_SURGE
changeset 47 5b14749788d7
parent 27 e4592d119491
parent 43 35b64624a9e7
--- a/messagingapp/msgui/msgapp/src/msgmainwindow.cpp	Thu Jun 17 09:57:06 2010 +0100
+++ b/messagingapp/msgui/msgapp/src/msgmainwindow.cpp	Thu Jul 22 16:32:06 2010 +0100
@@ -28,12 +28,12 @@
 // MsgMainWindow::MsgMainWindow
 // Constructor
 //---------------------------------------------------------------
-MsgMainWindow::MsgMainWindow(bool serviceRequest, QWidget *parent) :
+MsgMainWindow::MsgMainWindow(bool serviceRequest,int activityMsgId,QWidget *parent) :
 HbMainWindow(parent), mMsgSI(0), mMsgSendSI(0)
 {
-    MsgViewManager* viewManager = new MsgViewManager(serviceRequest,this,this);
-    mMsgSI = new MsgServiceInterface(NULL,viewManager);
-    mMsgSendSI = new MsgSendServiceInterface(NULL,viewManager);
+    mViewManager = new MsgViewManager(serviceRequest,this,this,activityMsgId);
+    mMsgSI = new MsgServiceInterface(NULL,mViewManager);
+    mMsgSendSI = new MsgSendServiceInterface(NULL,mViewManager);
         
     //Model creation
     ConversationsEngine::instance();
@@ -60,4 +60,12 @@
     delete ConversationsEngine::instance();
 }
 
+//---------------------------------------------------------------
+// MsgMainWindow::viewManager
+// Constructor
+//---------------------------------------------------------------
+MsgViewManager* MsgMainWindow::viewManager()
+{   
+     return mViewManager; 
+}
 // End of file