messagingapp/msgui/msgapp/inc/msgmainwindow.h
changeset 76 60a8a215b0ec
parent 73 ecf6a73a9186
equal deleted inserted replaced
73:ecf6a73a9186 76:60a8a215b0ec
    25 
    25 
    26 // FORWARD DECLARATIONS
    26 // FORWARD DECLARATIONS
    27 class MsgViewManager;
    27 class MsgViewManager;
    28 class MsgServiceInterface;
    28 class MsgServiceInterface;
    29 class MsgSendServiceInterface;
    29 class MsgSendServiceInterface;
       
    30 class MsgActivityHandler;
    30 
    31 
    31 /**
    32 /**
    32  * Main window of the messaging application. Activates the
    33  * Main window of the messaging application. Activates the
    33  * default view which is the messaging list view.
    34  * default view which is the messaging list view.
    34  */
    35  */
    38 
    39 
    39 public:
    40 public:
    40     /**
    41     /**
    41      * Constructor
    42      * Constructor
    42      */
    43      */
    43     MsgMainWindow(bool serviceRequest,
    44     MsgMainWindow(bool serviceRequest, 
       
    45                   MsgActivityHandler *handler,
    44                    QWidget *parent = 0);
    46                    QWidget *parent = 0);
    45 
    47 
    46     /**
    48     /**
    47      * Destructor
    49      * Destructor
    48      */
    50      */
    51     /**
    53     /**
    52      * Returns view manager.
    54      * Returns view manager.
    53      */
    55      */
    54     MsgViewManager* viewManager();
    56     MsgViewManager* viewManager();
    55     
    57     
       
    58 
    56 protected:
    59 protected:
    57 
    60 
    58     /**
    61     /**
    59      * Key press event handler
    62      * Key press event handler
    60      * @see QGraphicsItem
    63      * @see QGraphicsItem
    61      */
    64      */
    62     void keyPressEvent(QKeyEvent *event);
    65     void keyPressEvent(QKeyEvent *event);
    63     
    66 
       
    67     /**
       
    68      * Event filter on application
       
    69      */
       
    70     bool eventFilter(QObject *obj, QEvent *event);
       
    71 	    
    64 private:
    72 private:
    65     /**
    73     /**
    66      * This initializes the member objects
    74      * This initializes the member objects
    67      */
    75      */
    68     void initialize(bool serviceRequest);
    76     void initialize(bool serviceRequest);
    69     
    77     
    70 private:
    78 private:
    71     MsgServiceInterface* mMsgSI;
    79     MsgServiceInterface* mMsgSI;
    72     MsgSendServiceInterface* mMsgSendSI;
    80     MsgSendServiceInterface* mMsgSendSI;
    73     MsgViewManager* mViewManager;
    81     MsgViewManager* mViewManager;
       
    82 	/**
       
    83 	 * Not owned
       
    84 	 */
       
    85     MsgActivityHandler* mActivityHandler;
    74     
    86     
    75     /**
    87     /**
    76      * Unit Testing
    88      * Unit Testing
    77      */
    89      */
    78     #ifdef MSGUI_UNIT_TEST
    90     #ifdef MSGUI_MSGAPP_UNIT_TEST
    79       friend class TestMsgMainWindow;
    91       friend class TestMsgMainWindow;
    80     #endif
    92     #endif
    81     
    93     
    82 };
    94 };
    83 
    95