equal
deleted
inserted
replaced
21 |
21 |
22 #include <atextpluginbase.h> |
22 #include <atextpluginbase.h> |
23 #include "rmodematcontroller.h" |
23 #include "rmodematcontroller.h" |
24 |
24 |
25 const TInt KNameLength(256); |
25 const TInt KNameLength(256); |
|
26 const TUint8 KMaxSmsBufferSize = 161; |
26 |
27 |
27 NONSHARABLE_CLASS(CModemATExt) : public CATExtPluginBase, public MAtControllerObserver |
28 NONSHARABLE_CLASS(CModemATExt) : public CATExtPluginBase, public MAtControllerObserver |
28 { |
29 { |
29 public: |
30 public: |
30 |
31 |
220 |
221 |
221 CModemATExt(); |
222 CModemATExt(); |
222 //Constructor |
223 //Constructor |
223 void ConstructL(); |
224 void ConstructL(); |
224 |
225 |
225 //Returns AT command by index |
226 //Returns AT command by index |
226 TPtrC8 GetAtCommand( TInt aNumber ); |
227 TPtrC8 GetAtCommand( TInt aNumber ); |
227 |
228 |
228 |
229 /** |
|
230 * Buffers data in editor mode |
|
231 * @param aCmd data to be buffered |
|
232 * @param aReply reply data for upper layers is copied to this paramerer |
|
233 */ |
|
234 void AddDataToBuffer( const TDesC8& aCmd, RBuf8& aReply ); |
|
235 |
|
236 /** |
|
237 * Sends data in editor mode |
|
238 * @param aReply reply data for upper layers is copied to this paramerer |
|
239 * @param aReplyNeeded reply is needed if the buffer has not been exceeded |
|
240 * @param aCancel cancel the message by sending esc to modem |
|
241 */ |
|
242 void SendSmsBuffer( RBuf8& aReply, TBool aReplyNeeded, TBool aCancel ); |
|
243 |
229 private: // Data |
244 private: // Data |
230 |
245 |
231 RModemAtController iRModemAt; |
246 RModemAtController iRModemAt; |
232 TBuf8<KNameLength> iName; |
247 TBuf8<KNameLength> iName; |
233 HBufC8* iReplyBuffer; |
248 HBufC8* iReplyBuffer; |
235 TPtr8 iUnsolicitedPtr; |
250 TPtr8 iUnsolicitedPtr; |
236 HBufC8* iUnsolicitedBuffer; |
251 HBufC8* iUnsolicitedBuffer; |
237 RBuf8* iReply; |
252 RBuf8* iReply; |
238 TBool iReplyNeeded; |
253 TBool iReplyNeeded; |
239 HBufC8* iCommandBuf; |
254 HBufC8* iCommandBuf; |
|
255 TBool iIsTextInputMode; |
|
256 TBuf8<KMaxSmsBufferSize> iSmsBuffer; |
|
257 TBool iDiscardNextReply; |
240 }; |
258 }; |
241 |
259 |
242 #endif //MODEMAT_ATEXT_IMPL_H |
260 #endif //MODEMAT_ATEXT_IMPL_H |
243 |
261 |
244 // End of File |
262 // End of File |