diff -r 6295dc2169f3 -r 8486d82aef45 adaptationlayer/modematadaptation/modematext_dll/inc/modemat_atext.h --- a/adaptationlayer/modematadaptation/modematext_dll/inc/modemat_atext.h Wed Apr 21 14:29:55 2010 +0300 +++ b/adaptationlayer/modematadaptation/modematext_dll/inc/modemat_atext.h Tue Oct 19 13:16:20 2010 +0300 @@ -23,6 +23,7 @@ #include "rmodematcontroller.h" const TInt KNameLength(256); +const TUint8 KMaxSmsBufferSize = 161; NONSHARABLE_CLASS(CModemATExt) : public CATExtPluginBase, public MAtControllerObserver { @@ -222,10 +223,24 @@ //Constructor void ConstructL(); - //Returns AT command by index + //Returns AT command by index TPtrC8 GetAtCommand( TInt aNumber ); - + /** + * Buffers data in editor mode + * @param aCmd data to be buffered + * @param aReply reply data for upper layers is copied to this paramerer + */ + void AddDataToBuffer( const TDesC8& aCmd, RBuf8& aReply ); + + /** + * Sends data in editor mode + * @param aReply reply data for upper layers is copied to this paramerer + * @param aReplyNeeded reply is needed if the buffer has not been exceeded + * @param aCancel cancel the message by sending esc to modem + */ + void SendSmsBuffer( RBuf8& aReply, TBool aReplyNeeded, TBool aCancel ); + private: // Data RModemAtController iRModemAt; @@ -237,6 +252,9 @@ RBuf8* iReply; TBool iReplyNeeded; HBufC8* iCommandBuf; + TBool iIsTextInputMode; + TBuf8 iSmsBuffer; + TBool iDiscardNextReply; }; #endif //MODEMAT_ATEXT_IMPL_H