mmsengine/mmsserver/src/mmsreceivemessage.cpp
branchRCL_3
changeset 26 ebe688cedc25
parent 0 72b543305e3a
child 27 7fdbb852d323
equal deleted inserted replaced
25:fa1df4b99609 26:ebe688cedc25
   503 
   503 
   504     // Now we must check if the message should be rejected or deferred
   504     // Now we must check if the message should be rejected or deferred
   505     // The function IsNotificationInsaneL() checks if the notification
   505     // The function IsNotificationInsaneL() checks if the notification
   506     // has incorrect message type or incorrect major version number.
   506     // has incorrect message type or incorrect major version number.
   507     // If the message is unrecognized, the response will be "unrecognized"
   507     // If the message is unrecognized, the response will be "unrecognized"
   508     // The funtion sets the status, and later the response will be sent
   508     // The function sets the status, and later the response will be sent
   509     // but there is no need to check for expiration or disk space in
   509     // but there is no need to check for expiration or disk space in
   510     // case the message will be rejected anyway.
   510     // case the message will be rejected anyway.
   511     
   511     
   512     if ( !IsNotificationInsaneL() )
   512     if ( !IsNotificationInsaneL() )
   513         {
   513         {
  2991         }
  2991         }
  2992         
  2992         
  2993     // Check if we fond enough old messages to free space.
  2993     // Check if we fond enough old messages to free space.
  2994     if ( deleteCount > 0 )
  2994     if ( deleteCount > 0 )
  2995         {
  2995         {
  2996         for ( i = selection->Count(); i > deleteCount; i-- )
  2996         for ( i = selection->Count(); i > deleteCount; ++i )
  2997             {
  2997             {
  2998             // We may be able to leave some entries
  2998             // We may be able to leave some entries
  2999             selection->Delete( i - 1 );
  2999             selection->Delete( i - 1 );
  3000             }
  3000             }
  3001         
  3001