diff -r ecf6a73a9186 -r 60a8a215b0ec messagingapp/msgui/unifiededitor/inc/msgunieditorbody.h --- a/messagingapp/msgui/unifiededitor/inc/msgunieditorbody.h Tue Oct 05 13:58:47 2010 +0530 +++ b/messagingapp/msgui/unifiededitor/inc/msgunieditorbody.h Tue Oct 19 11:30:16 2010 +0530 @@ -22,14 +22,9 @@ #include #include "msgunieditorprocessimageoperation.h" -class HbTextEdit; -class HbTextItem; -class HbFrameItem; class CMsgMediaResolver; class CMsgImageInfo; class MmsConformanceCheck; -class UniEditorPluginInterface; -class UniEditorPluginLoader; class MsgUnifiedEditorPixmapWidget; class MsgUniFiedEditorAudioWidget; @@ -56,11 +51,6 @@ /** * Seeker method to return back data to editor's view */ - QString text(); - - /** - * Seeker method to return back data to editor's view - */ const QStringList mediaContent(); /** @@ -69,27 +59,6 @@ */ int bodySize(); - /* - * Returns value of mUnicode - * @return mUnicode - */ - bool isUnicode(); - - /* - * Disables char counter - */ - void disableCharCounter(); - - /* - * Enables char counter - */ - void enableCharCounter(); - - /** - * To set focus on editable field. - */ - void setFocus(); - /** * Get to find body already contains an image * @return bool @@ -108,13 +77,6 @@ */ void EditorOperationEvent( TUniEditorProcessImageOperationEvent aEvent, TFileName& aFileName ); - /** - * Function which tells whether the image resize process is in progress - */ - bool isImageResizing() - { - return mIsImageResizing; - } /** * remove media content.called when file is not avaialable @@ -128,37 +90,13 @@ * @param medialist list of absolute paths of media. * @param draftMessage specifies draft message */ - void setImage(QString& imagefile, bool draftMessage = false); + void setImage(const QString& imagefile, bool draftMessage = false); /** * Called to insert audio content in editor. * @param medialist list of absolute paths of media. */ - void setAudio(QString& audiofile); - - /** - * Called to insert body text in editor. - * @param text body text. - */ - void setText(QString& text); - -signals: - /** - * Emitted when send button from virtual ITUT is pressed. - */ - void sendMessage(); - - /** - * 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; - + void setAudio(const QString& audiofile); protected: // from HbWidget @@ -169,6 +107,10 @@ */ QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const; +signals: + //emitted to enable or disable menu options. + void enableMenuAction(int action, bool enable); + private slots: /** @@ -176,11 +118,6 @@ */ void removeMedia(); - /** - * handle text changes in body field - */ - void onTextChanged(); - private: /** @@ -193,11 +130,6 @@ * Set that body now contains an audio */ void setAudio(bool audio = false); - - /** - * size of the msg - */ - int messageSize(); /** * Handler for set image function @@ -228,11 +160,6 @@ bool mHasAudio; /** - * editor to in put text. - */ - HbTextEdit* mTextEdit; - - /** * icon item to preview images. */ MsgUnifiedEditorPixmapWidget* mPixmapItem; @@ -276,11 +203,6 @@ * Size of audio in body */ int mAudioSize; - - /** - * Size of video in body - */ - int mVideoSize; /** * CUniEditorProcessImageOperation object @@ -298,49 +220,6 @@ CMsgImageInfo *mImageInfo; /** - * Instance of HbTextItem - * Will be deleted automatically by parent. - * Own. - */ - HbTextItem *mCharCounter; - - /** - * Instance of HbFrameItem - * Will be deleted automatically by parent. - * Own. - */ - HbFrameItem* mBackgroundItem; - - /** - * Holds the previous buffer inside msgeditor - */ - QString mPrevBuffer; - - /** - * Holds char type supported - */ - int mCharSupportType; - - /** - * Instance of UniEditorPluginInterface - * Will be deleted automatically by parent. - * Own. - */ - UniEditorPluginInterface* mPluginInterface; - - /** - * Instance of UniEditorPluginLoader - * Will be deleted when UniEditorPluginInterface object is deleted - * Not Own. - */ - UniEditorPluginLoader* mPluginLoader; - - /* - * Maintains information if any unicode character has been entered or not - */ - bool mUnicode; - - /** * Content widget for processing animation. */ HbWidget* mProcessingWidget; @@ -350,11 +229,11 @@ */ bool mDraftMessage ; - /* - * Flag to indicate the state of image resizing process. - * true - resize in progress. false - resize is not underway. - */ - bool mIsImageResizing; +#ifdef UNIEDITOR_UNIT_TEST + friend class TestMsgUnifiedEditorBody; +#endif + + }; #endif //MSG_UNIFIED_EDITOR_BODY_H