messagingapp/msgui/conversationview/src/msgeditorwidget.cpp
changeset 72 6f657153cbc5
parent 70 a15d9966050f
equal deleted inserted replaced
70:a15d9966050f 72:6f657153cbc5
    63 //---------------------------------------------------------------
    63 //---------------------------------------------------------------
    64 // MsgEditorWidget::MsgEditorWidget
    64 // MsgEditorWidget::MsgEditorWidget
    65 // @see header
    65 // @see header
    66 //---------------------------------------------------------------
    66 //---------------------------------------------------------------
    67 MsgEditorWidget::MsgEditorWidget(QGraphicsItem *parent) :
    67 MsgEditorWidget::MsgEditorWidget(QGraphicsItem *parent) :
    68     HbWidget(parent), mMsgEditor(NULL),
    68     HbWidget(parent), mMsgEditor(0), mSendButton(0), mPluginInterface(0), mPluginLoader(0),
    69     mSendButton(NULL),mPluginLoader(NULL)
    69         mSmsCharLimitReached(false)
    70 {
    70 {
    71     //setting background.
    71     //setting background.
    72     HbFrameItem* backGround = new HbFrameItem(this);
    72     HbFrameItem* backGround = new HbFrameItem(this);
    73     backGround->frameDrawer().setFrameGraphicsName(BACKGROUND);
    73     backGround->frameDrawer().setFrameGraphicsName(BACKGROUND);
    74     backGround->frameDrawer().setFrameType(HbFrameDrawer::ThreePiecesVertical);
    74     backGround->frameDrawer().setFrameType(HbFrameDrawer::ThreePiecesVertical);
   198             }
   198             }
   199         }
   199         }
   200     
   200     
   201     //Check done for optimization
   201     //Check done for optimization
   202     //Only if content is deleted we need to call encodingsettings again
   202     //Only if content is deleted we need to call encodingsettings again
   203     if(mPrevBuffer.isEmpty() || str.size() <= mPrevBuffer.size())
   203     if (mPrevBuffer.isEmpty() || str.size() <= mPrevBuffer.size())
   204     {
   204     {
   205     mPluginInterface->setEncodingSettings(EFalse,ESmsEncodingNone,mCharSupportType);
   205         mPluginInterface->setEncodingSettings(EFalse,ESmsEncodingNone,mCharSupportType);
   206     }
   206     }
   207     
   207     
   208     TInt numOfRemainingChars;
   208     TInt numOfRemainingChars;
   209     TInt numOfPDUs;
   209     TInt numOfPDUs;
   210     TBool unicodeMode;
   210     TBool unicodeMode;