messagingapp/msgservices/msgserviceapp/inc/msgserviceviewmanager.h
changeset 72 6f657153cbc5
parent 70 a15d9966050f
equal deleted inserted replaced
70:a15d9966050f 72:6f657153cbc5
   114      * Switch to settings view.
   114      * Switch to settings view.
   115      */
   115      */
   116     void switchToMsgSettings(const QVariantList& data);
   116     void switchToMsgSettings(const QVariantList& data);
   117 
   117 
   118     /**
   118     /**
   119      * Handle sms and mms messge
   119      * Show information popup dialog
   120      * @param msgId message id
   120      * @param dispText, text to be displayed
   121      */
   121      */
   122     void handleSmsMmsMsg(int msgId,int msgType);
   122     void showPopup(const QString& dispText);
       
   123 
       
   124     /**
       
   125      * Handle Draft messages
       
   126      * @param msgId, message id
       
   127      * @param msgType, type of message e.g. sms or mms etc
       
   128      */
       
   129     void handleDraftMsg(int msgId, int msgType);
       
   130 
       
   131     /**
       
   132      * Handle Business Card messages (for view)
       
   133      * @param msgId, message id
       
   134      */
       
   135     void handleVCardMsg(int msgId);
       
   136 
       
   137     /**
       
   138      * Handle sms and mms message
       
   139      * @param msgId, message id
       
   140      */
       
   141     void handleSmsMmsMsg(int msgId);
       
   142 
       
   143     /**
       
   144      * Handle MMS notification message
       
   145      * @param msgId, message id
       
   146      */
       
   147     void handleMmsNotification(int msgId);
   123 
   148 
   124     /**
   149     /**
   125      * Handle ringtone message
   150      * Handle ringtone message
   126      * @param msgId message id
   151      * @param msgId message id
   127      */
   152      */
   136     /**
   161     /**
   137      * Handle bluetooth message
   162      * Handle bluetooth message
   138      * @param msgId message id
   163      * @param msgId message id
   139      */
   164      */
   140     void handleBTMessage(int msgId);
   165     void handleBTMessage(int msgId);
   141     
   166 
   142     /**
   167     /**
   143      * Start a custom effect animation
   168      * Start a custom effect animation
   144      * e.g. editor's send effect
   169      * e.g. editor's send effect
   145      * @param effectEvent, effect type for animation
   170      * @param effectEvent, effect type for animation
   146      */
   171      */
   165      * find and return animation file for an effect
   190      * find and return animation file for an effect
   166      * @param effectEvent, effect for which file definition needs to be found
   191      * @param effectEvent, effect for which file definition needs to be found
   167      * @return QString, animation definition file path
   192      * @return QString, animation definition file path
   168      */
   193      */
   169     QString getAnimationFile(QString effectEvent);
   194     QString getAnimationFile(QString effectEvent);
   170     
   195 
   171 private slots:
   196 private slots:
   172     /**
   197     /**
   173      * This slot is called on mainwindows back action.
   198      * This slot is called on mainwindows back action.
   174      */
   199      */
   175     void onBackAction();
   200     void onBackAction();
   177     /**
   202     /**
   178      * This slot is called when switchView signal is emitted from a view.
   203      * This slot is called when switchView signal is emitted from a view.
   179      * @param data data required to switch the views.
   204      * @param data data required to switch the views.
   180      */
   205      */
   181     void switchView(const QVariantList& data);
   206     void switchView(const QVariantList& data);
   182     
   207 
   183 	/**
   208     /**
   184      * This slot is called delete message dialog launched.
   209      * This slot sets the current view on view-ready signal of mainwindow.
   185      * @param action selected action (yes or no).
   210      * This is needed to show the default transitions correctly.
   186      */
   211      */
   187     void onDialogDeleteMsg(HbAction* action);
   212     void showOnViewReady();
   188 
       
   189     /**
       
   190      * This slot is called save tone dialog launched.
       
   191      * @param action selected action (yes or no)
       
   192      */
       
   193     void onDialogSaveTone(HbAction* action);
       
   194     
   213     
   195     /**
   214     /**
   196      * Handle a custom effect animation complete signal
   215      * Handle a custom effect animation complete signal
   197      * e.g. editor's send effect complete
   216      * e.g. editor's send effect complete
   198      * @param status, status information of the effect that has finished
   217      * @param status, status information of the effect that has finished
   237     MsgStoreHandler* mStoreHandler;
   256     MsgStoreHandler* mStoreHandler;
   238     
   257     
   239     /**
   258     /**
   240      * Current view value.
   259      * Current view value.
   241      */
   260      */
   242     int mCurrentView;
   261     int mCurrentView;    
   243     
       
   244 	/**
       
   245 	 * message Id
       
   246 	 */
       
   247     int mMessageId;    
       
   248 };
   262 };
   249 
   263 
   250 #endif /* MSGSERVICEVIEWMANAGER_H_ */
   264 #endif /* MSGSERVICEVIEWMANAGER_H_ */