messagingapp/msgui/msgapp/inc/msgactivityhandler.h
changeset 43 35b64624a9e7
parent 34 84197e66a4bd
child 70 a15d9966050f
equal deleted inserted replaced
34:84197e66a4bd 43:35b64624a9e7
    45      /**
    45      /**
    46       * Saves the current running activity.
    46       * Saves the current running activity.
    47       */
    47       */
    48     void saveActivity();
    48     void saveActivity();
    49     
    49     
    50     /**
       
    51      * Open the activity which is requested.
       
    52      * @param activitry data.
       
    53      */
       
    54     void handleActivity(const QVariant &activityData);
       
    55     
       
    56 public:   
    50 public:   
    57    /** 
    51    /** 
    58     * Set the message main window pointer.
    52     * Set the message main window pointer.
    59     * @param mainWindow message main window.
    53     * @param mainWindow message main window.
    60     */
    54     */
    63     /**
    57     /**
    64      * Clears all saved messaging activities. 
    58      * Clears all saved messaging activities. 
    65      */
    59      */
    66     void clearActivities();
    60     void clearActivities();
    67     
    61     
       
    62     /**
       
    63      * Parses the activity data.
       
    64      * @param activitry data.
       
    65      * @return valid message Id if its editor activity 
       
    66      * else Invalid message id( i.e. -1) for list view activity 
       
    67      */
       
    68     int parseActivityData(const QVariant &activityData);
       
    69     
    68 private:
    70 private:
    69     /**
    71     /**
    70      * main window reference not owned.
    72      * main window reference not owned.
    71      */
    73      */
    72     MsgMainWindow* mMainWindow;
    74     MsgMainWindow* mMainWindow;