equal
deleted
inserted
replaced
26 |
26 |
27 //--------------------------------------------------------------- |
27 //--------------------------------------------------------------- |
28 // MsgMainWindow::MsgMainWindow |
28 // MsgMainWindow::MsgMainWindow |
29 // Constructor |
29 // Constructor |
30 //--------------------------------------------------------------- |
30 //--------------------------------------------------------------- |
31 MsgMainWindow::MsgMainWindow(bool serviceRequest, QWidget *parent) : |
31 MsgMainWindow::MsgMainWindow(bool serviceRequest,int activityMsgId,QWidget *parent) : |
32 HbMainWindow(parent), mMsgSI(0), mMsgSendSI(0) |
32 HbMainWindow(parent), mMsgSI(0), mMsgSendSI(0) |
33 { |
33 { |
34 MsgViewManager* viewManager = new MsgViewManager(serviceRequest,this,this); |
34 mViewManager = new MsgViewManager(serviceRequest,this,this,activityMsgId); |
35 mMsgSI = new MsgServiceInterface(NULL,viewManager); |
35 mMsgSI = new MsgServiceInterface(NULL,mViewManager); |
36 mMsgSendSI = new MsgSendServiceInterface(NULL,viewManager); |
36 mMsgSendSI = new MsgSendServiceInterface(NULL,mViewManager); |
37 |
37 |
38 //Model creation |
38 //Model creation |
39 ConversationsEngine::instance(); |
39 ConversationsEngine::instance(); |
40 |
40 |
41 } |
41 } |
58 } |
58 } |
59 |
59 |
60 delete ConversationsEngine::instance(); |
60 delete ConversationsEngine::instance(); |
61 } |
61 } |
62 |
62 |
|
63 //--------------------------------------------------------------- |
|
64 // MsgMainWindow::viewManager |
|
65 // Constructor |
|
66 //--------------------------------------------------------------- |
|
67 MsgViewManager* MsgMainWindow::viewManager() |
|
68 { |
|
69 return mViewManager; |
|
70 } |
63 // End of file |
71 // End of file |