messagingapp/msgservices/msgserviceapp/inc/msgserviceviewmanager.h
changeset 52 12db4185673b
parent 44 36f374c67aa8
child 70 a15d9966050f
equal deleted inserted replaced
44:36f374c67aa8 52:12db4185673b
    19 #ifndef MSGSERVICEVIEWMANAGER_H_
    19 #ifndef MSGSERVICEVIEWMANAGER_H_
    20 #define MSGSERVICEVIEWMANAGER_H_
    20 #define MSGSERVICEVIEWMANAGER_H_
    21 
    21 
    22 #include <QObject>
    22 #include <QObject>
    23 #include <QVariant>
    23 #include <QVariant>
    24 
    24 #include <HbEffect>
       
    25 
       
    26 class QGraphicsItem;
       
    27 class QGraphicsPixmapItem;
    25 class HbMainWindow;
    28 class HbMainWindow;
    26 class MsgUnifiedEditorView;
    29 class MsgUnifiedEditorView;
    27 class UnifiedViewer;
    30 class UnifiedViewer;
    28 class MsgBaseView;
    31 class MsgBaseView;
    29 class MsgSettingsView;
    32 class MsgSettingsView;
   121      * Handle bluetooth message
   124      * Handle bluetooth message
   122      * @param msgId message id
   125      * @param msgId message id
   123      */
   126      */
   124     void handleBTMessage(int msgId);
   127     void handleBTMessage(int msgId);
   125     
   128     
       
   129     /**
       
   130      * Start a custom effect animation
       
   131      * e.g. editor's send effect
       
   132      * @param effectEvent, effect type for animation
       
   133      */
       
   134     void startAnimation(QString effectEvent);
       
   135     
       
   136     /**
       
   137      * Reset a custom effect animation
       
   138      * e.g. editor's send effect
       
   139      * @param effectEvent, animation effect type which needs to be reset
       
   140      * @param item, QGraphicsItem on which the effect was run
       
   141      */
       
   142     void resetAnimation(QString effectEvent, QGraphicsItem* item);
       
   143     
       
   144     /**
       
   145      * Grab screenshot for animation purpose
       
   146      * e.g. editor's send effect animation
       
   147      * @return QGraphicsPixmapItem, item on which animation will run
       
   148      */
       
   149     QGraphicsPixmapItem *screenShot();
       
   150     
       
   151     /**
       
   152      * find and return animation file for an effect
       
   153      * @param effectEvent, effect for which file definition needs to be found
       
   154      * @return QString, animation definition file path
       
   155      */
       
   156     QString getAnimationFile(QString effectEvent);
       
   157     
   126 private slots:
   158 private slots:
   127     /**
   159     /**
   128      * This slot is called on mainwindows back action.
   160      * This slot is called on mainwindows back action.
   129      */
   161      */
   130     void onBackAction();
   162     void onBackAction();
   144     /**
   176     /**
   145      * This slot is called save tone dialog launched.
   177      * This slot is called save tone dialog launched.
   146      * @param action selected action (yes or no)
   178      * @param action selected action (yes or no)
   147      */
   179      */
   148     void onDialogSaveTone(HbAction* action);
   180     void onDialogSaveTone(HbAction* action);
   149 	
   181     
       
   182     /**
       
   183      * Handle a custom effect animation complete signal
       
   184      * e.g. editor's send effect complete
       
   185      * @param status, status information of the effect that has finished
       
   186      */
       
   187     void onAnimationComplete(const HbEffect::EffectStatus &status);
       
   188     
   150 private:
   189 private:
   151     /**
   190     /**
   152      * Main window pointer. 
   191      * Main window pointer. 
   153      * Not owned.
   192      * Not owned.
   154      */
   193      */
   190     int mCurrentView;
   229     int mCurrentView;
   191     
   230     
   192 	/**
   231 	/**
   193 	 * message Id
   232 	 * message Id
   194 	 */
   233 	 */
   195     int mMessageId;
   234     int mMessageId;    
   196   
       
   197 };
   235 };
   198 
   236 
   199 #endif /* MSGSERVICEVIEWMANAGER_H_ */
   237 #endif /* MSGSERVICEVIEWMANAGER_H_ */