1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
430 * Creates SMS_SB_SUBMIT subblock and appends it to ISI message |
430 * Creates SMS_SB_SUBMIT subblock and appends it to ISI message |
431 * @param aMsgData SMS TPDU |
431 * @param aMsgData SMS TPDU |
432 * @param aIsiMsg ISI message |
432 * @param aIsiMsg ISI message |
433 * @param aDestAddressLength Destination address length |
433 * @param aDestAddressLength Destination address length |
434 * @param aMsgOffset Offset of ISI message where to append subblock |
434 * @param aMsgOffset Offset of ISI message where to append subblock |
435 * @return void |
435 * @return length of composed subblock |
436 */ |
436 */ |
437 void BuildSmsSbSubmit( |
437 TUint16 BuildSmsSbSubmit( |
438 const TDesC8& aMsgData, |
438 const TDesC8& aMsgData, |
439 TIsiSend& aIsiMsg, |
439 TIsiSend& aIsiMsg, |
440 TUint8 aDestAddressLength, |
440 TUint8 aDestAddressLength, |
441 TUint8 aMsgOffset ) const; |
441 TUint aMsgOffset ) const; |
442 |
442 |
443 /** |
443 /** |
444 * Creates SMS_SB_COMMAND subblock and appends it to ISI message |
444 * Creates SMS_SB_COMMAND subblock and appends it to ISI message |
445 * @param aMsgData SMS TPDU |
445 * @param aMsgData SMS TPDU |
446 * @param aIsiMsg ISI message |
446 * @param aIsiMsg ISI message |
447 * @param aMsgOffset Offset of ISI message where to append subblock |
447 * @param aMsgOffset Offset of ISI message where to append subblock |
448 * @return void |
448 * @return length of composed subblock |
449 */ |
449 */ |
450 void BuildSmsSbCommand( |
450 TUint16 BuildSmsSbCommand( |
451 const TDesC8& aMsgData, |
451 const TDesC8& aMsgData, |
452 TIsiSend& aIsiMsg, |
452 TIsiSend& aIsiMsg, |
453 TUint8 aMsgOffset ) const; |
453 TUint aMsgOffset ) const; |
454 |
454 |
455 /** |
455 /** |
456 * Creates SMS_SB_ADDRESS subblock and appends it to ISI message |
456 * Creates SMS_SB_ADDRESS subblock and appends it to ISI message |
457 * @param aAddress Address data |
457 * @param aAddress Address data |
458 * @param aIsiMsg ISI message |
458 * @param aIsiMsg ISI message |
459 * @param aAddressType Address type |
459 * @param aAddressType Address type |
460 * @param aMsgOffset Offset of ISI message where to append subblock |
460 * @param aMsgOffset Offset of ISI message where to append subblock |
461 * @return Length of created subblock |
461 * @return Length of created subblock |
462 */ |
462 */ |
463 TUint8 BuildSmsSbAddress( |
463 TUint16 BuildSmsSbAddress( |
464 const TDesC8& aAddress, |
464 const TDesC8& aAddress, |
465 TIsiSend& aIsiMsg, |
465 TIsiSend& aIsiMsg, |
466 TUint8 aAddressType, |
466 TUint8 aAddressType, |
467 TUint8 aMsgOffset ) const; |
467 TUint aMsgOffset ) const; |
468 |
468 |
469 /** |
469 /** |
470 * Creates SMS_SB_USER_DATA subblock and appends it to ISI message |
470 * Creates SMS_SB_USER_DATA subblock and appends it to ISI message |
471 * @param aMsgData SMS TPDU |
471 * @param aMsgData SMS TPDU |
472 * @param aIsiMsg ISI message |
472 * @param aIsiMsg ISI message |
474 * @param aTpUserDataIndex Index of user data in TPDU |
474 * @param aTpUserDataIndex Index of user data in TPDU |
475 * @param aDefaultAlphabet Is 7-bit coding used |
475 * @param aDefaultAlphabet Is 7-bit coding used |
476 * @param aMsgOffset Offset of ISI message where to append subblock |
476 * @param aMsgOffset Offset of ISI message where to append subblock |
477 * @return Length of created subblock |
477 * @return Length of created subblock |
478 */ |
478 */ |
479 TUint8 BuildSmsSbUserData( |
479 TUint16 BuildSmsSbUserData( |
480 const TDesC8& aMsgData, |
480 const TDesC8& aMsgData, |
481 TIsiSend& aIsiMsg, |
481 TIsiSend& aIsiMsg, |
482 TUint8 aTpUdl, |
482 TUint8 aTpUdl, |
483 TUint8 aTpUserDataIndex, |
483 TUint8 aTpUserDataIndex, |
484 TBool aDefaultAlphabet, |
484 TBool aDefaultAlphabet, |
485 TUint8 aMsgOffset ) const; |
485 TUint aMsgOffset ) const; |
486 |
486 |
487 /** |
487 /** |
488 * Creates SMS_SB_VALIDITY_PERIOD subblock and appends it to ISI message |
488 * Creates SMS_SB_VALIDITY_PERIOD subblock and appends it to ISI message |
489 * @param aMsgData SMS TPDU |
489 * @param aMsgData SMS TPDU |
490 * @param aIsiMsg ISI message |
490 * @param aIsiMsg ISI message |
491 * @param aTpVpIndex Index of validity period in TPDU |
491 * @param aTpVpIndex Index of validity period in TPDU |
492 * @param aTpVpLength Length of validity period |
492 * @param aTpVpLength Length of validity period |
493 * @param aMsgOffset Offset of ISI message where to append subblock |
493 * @param aMsgOffset Offset of ISI message where to append subblock |
494 * @return void |
494 * @return Length of created subblock |
495 */ |
495 */ |
496 void BuildSmsSbValidityPeriod( |
496 TUint16 BuildSmsSbValidityPeriod( |
497 const TDesC8& aMsgData, |
497 const TDesC8& aMsgData, |
498 TIsiSend& aIsiMsg, |
498 TIsiSend& aIsiMsg, |
499 TUint8 aTpVpIndex, |
499 TUint8 aTpVpIndex, |
500 TUint8 aTpVpLength, |
500 TUint8 aTpVpLength, |
501 TUint8 aMsgOffset )const; |
501 TUint aMsgOffset )const; |
502 |
502 |
503 /** |
503 /** |
504 * Creates SMS_SB_CHECK_INFO sub block with SMS_CHECK_DISABLE_FDN and appends it |
504 * Creates SMS_SB_CHECK_INFO sub block with SMS_CHECK_DISABLE_FDN and appends it |
505 * to ISI message. |
505 * to ISI message. |
506 * @param aIsiMsg ISI message |
506 * @param aIsiMsg ISI message |
507 * @param aMsgOffset Offset of ISI message where to append subblock |
507 * @param aMsgOffset Offset of ISI message where to append subblock |
508 * @return void |
508 * @return Length of created subblock |
509 */ |
509 */ |
510 void BuildSmsCheckInfo( |
510 TUint16 BuildSmsCheckInfo( |
511 TIsiSend& aIsiMsg, |
511 TIsiSend& aIsiMsg, |
512 TUint8 aMsgOffset )const; |
512 TUint aMsgOffset )const; |
513 |
513 |
514 /** |
514 /** |
515 * Read SMS or EF SMS record count from SIM/USIM |
515 * Read SMS or EF SMS record count from SIM/USIM |
516 * @param aRecordId (If record count is requested this value has no |
516 * @param aRecordId (If record count is requested this value has no |
517 * effect => may be set e.g. 0 or FF) |
517 * effect => may be set e.g. 0 or FF) |
647 * Write SMSP entry to (U)SIM |
647 * Write SMSP entry to (U)SIM |
648 * @param aDataPackage Data containig SMSP entry |
648 * @param aDataPackage Data containig SMSP entry |
649 * @return Symbian error code |
649 * @return Symbian error code |
650 */ |
650 */ |
651 TInt UiccSmsUpdateParameterReq( const CMmDataPackage* aDataPackage ); |
651 TInt UiccSmsUpdateParameterReq( const CMmDataPackage* aDataPackage ); |
|
652 |
|
653 /** |
|
654 * Handles SMS resouce conf information |
|
655 * @param aIsiMsg message data |
|
656 * @return void |
|
657 */ |
|
658 void SmsResourceConfInd( const TIsiReceiveC& aIsiMsg ); |
|
659 |
|
660 /** |
|
661 * Sends SMS_RESOURCE_CONF_REQ for disabling resource control |
|
662 * @return void |
|
663 */ |
|
664 void SmsResourceConfReq(); |
|
665 |
652 //ATTRIBUTES |
666 //ATTRIBUTES |
653 public: |
667 public: |
654 //none |
668 //none |
655 |
669 |
656 private: |
670 private: |
705 CMmUiccMessHandler* iMmUiccMessHandler; |
719 CMmUiccMessHandler* iMmUiccMessHandler; |
706 |
720 |
707 // Flag to check is the case class 2 SMS write or EMobileStoreWrite |
721 // Flag to check is the case class 2 SMS write or EMobileStoreWrite |
708 TBool iSMSClass2Write; |
722 TBool iSMSClass2Write; |
709 |
723 |
710 // Client has no storage to receive anymore SM's |
|
711 TBool iMemoryCapacityExceeded; |
|
712 |
|
713 // Record number of EF smsp |
724 // Record number of EF smsp |
714 TUint8 iSmspRecordNumber; |
725 TUint8 iSmspRecordNumber; |
|
726 |
|
727 // pointer to phonet receiver |
|
728 CMmPhoNetReceiver* iPhonetReceiver; |
715 }; |
729 }; |
716 |
730 |
717 #endif // _CMMSMSMESSHANDLER_H_ |
731 #endif // _CMMSMSMESSHANDLER_H_ |
718 |
732 |
719 //End of file |
733 //End of file |