diff -r ebfee66fde93 -r 84197e66a4bd messagingapp/msgui/unifiededitor/inc/msgunieditorbody.h --- a/messagingapp/msgui/unifiededitor/inc/msgunieditorbody.h Fri Jun 04 10:25:39 2010 +0100 +++ b/messagingapp/msgui/unifiededitor/inc/msgunieditorbody.h Fri Jun 11 13:35:48 2010 +0300 @@ -15,24 +15,23 @@ * */ -#ifndef UNIFIED_EDITOR_BODY_H -#define UNIFIED_EDITOR_BODY_H +#ifndef MSG_UNIFIED_EDITOR_BODY_H +#define MSG_UNIFIED_EDITOR_BODY_H -#include +#include #include #include "msgunieditorprocessimageoperation.h" class HbTextEdit; class HbTextItem; class HbFrameItem; -class HbIconItem; -class HbPushButton; -//class HbGestureSceneFilter; class CMsgMediaResolver; class CMsgImageInfo; class MmsConformanceCheck; class UniEditorPluginInterface; class UniEditorPluginLoader; +class MsgUnifiedEditorPixmapWidget; +class MsgUniFiedEditorAudioWidget; class MsgUnifiedEditorBody : public MsgUnifiedEditorBaseWidget, @@ -97,13 +96,21 @@ * @return bool */ bool hasAudio(); + + /** + * from MUniEditorProcessImageOperationObserver + * @see MUniEditorProcessImageOperationObserver + */ + void EditorOperationEvent( TUniEditorProcessImageOperationEvent aEvent, + TFileName aFileName ); public slots: /** * Called to insert image content in editor. * @param medialist list of absolute paths of media. + * @param draftMessage specifies draft message */ - void setImage(QString& imagefile); + void setImage(QString& imagefile, bool draftMessage = false); /** * Called to insert audio content in editor. @@ -127,14 +134,14 @@ * Emitted when msg-body content changes */ void contentChanged(); + + /** + * Emitted when image is being processed. + * @param enable, true to enable/ false to disable. + */ + void enableSendButton(bool enable) const; -public: // from MUniEditorProcessImageOperationObserver - - /* - * @see MUniEditorProcessImageOperationObserver - */ - void EditorOperationEvent( TUniEditorProcessImageOperationEvent aEvent, - TFileName aFileName ); + protected: // from HbWidget @@ -145,41 +152,17 @@ QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const; private slots: - /** - * called on long press on the media objects - */ - void longPressed(QPointF position); /** * called from the media object's item specific menu */ void removeMedia(); - - /** - * called from the media object's item specific menu - */ - void openMedia(); - - /** - * called from the media object's item specific menu - */ - void viewDetails(); /** * handle text changes in body field */ void onTextChanged(); - /** - * Service launch complete. - */ - void handleOk(const QVariant& result); - - /** - * Service launch errors. - */ - void handleError(int errorCode, const QString& errorMessage); - private: /** @@ -192,12 +175,6 @@ * Set that body now contains an audio */ void setAudio(bool audio = false); - - /** - * Get the region (image/audio/video) where longpress happened - * @return region - */ - QString getHitRegion(QPointF position); /** * size of the msg @@ -238,19 +215,14 @@ HbTextEdit* mTextEdit; /** - * frame for editor. - */ - HbFrameItem* mEditorFrame; - - /** * icon item to preview images. */ - HbIconItem* mIconItem; + MsgUnifiedEditorPixmapWidget* mPixmapItem; /** * inline audio item */ - HbPushButton* mAudioItem; + MsgUniFiedEditorAudioWidget* mAudioItem; /** * Image file contained inside body @@ -271,11 +243,6 @@ * Video file contained inside body */ QString mVideoFile; - - /** - * To setup longpress gesture on media objects - */ - //HbGestureSceneFilter* mGestureFilter; /** * MMs conformance check utility class @@ -359,6 +326,11 @@ * Content widget for processing animation. */ HbWidget* mProcessingWidget; + + /** + * boolean specifying a draft message + */ + bool mDraftMessage ; }; -#endif //UNIFIED_EDITOR_BODY_H +#endif //MSG_UNIFIED_EDITOR_BODY_H