smsprotocols/smsstack/smsprot/Inc/smspstor.inl
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Inline definitions for CSmsSegmentationStore.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalAll 
       
    21 */
       
    22 
       
    23 #include <gsmuelem.h>
       
    24 
       
    25 
       
    26 inline TBool CSmsSegmentationStore::IsPermanentStatus(TInt aStatus)
       
    27 	{
       
    28 	//
       
    29 	// The question is are the temporary2 errors really permanent in every case?
       
    30 	// Maybe this is depending from the SC as well?
       
    31 	// Or the problem is with some kind of timeouts due to our performance problems
       
    32 	// The log file will show it!
       
    33 	// the theoretical assumption is that the failed counter had be incremented
       
    34 	// but the recipient received the message
       
    35 	//
       
    36 	return (aStatus == TSmsStatus::ESmsShortMessageReceivedBySME  ||
       
    37 			(aStatus >= TSmsStatus::ESmsPermErrorRemoteProcedureError  &&
       
    38 		     aStatus <= TSmsStatus::ESmsPermErrorDoesNotExist));
       
    39 	} // CSmsSegmentationStore::IsPermanentStatus
       
    40 
       
    41 
       
    42 inline CSmsSegmentationStore::TSmsSegmentationStoreRefStatus::TSmsSegmentationStoreRefStatus(TInt aRef,
       
    43 																							 TInt aStatus /* = ENullStatus */)
       
    44   : iReference(aRef),
       
    45     iStatus(aStatus)
       
    46 	{
       
    47 	// NOP
       
    48 	} // CSmsSegmentationStore::TSmsSegmentationStoreRefStatus::TSmsSegmentationStoreRefStatus
       
    49 
       
    50 
       
    51 inline TInt CSmsSegmentationStore::TSmsSegmentationStoreRefStatus::Reference() const
       
    52 	{
       
    53 	return iReference;
       
    54 	} // CSmsSegmentationStore::TSmsSegmentationStoreRefStatus::Reference
       
    55 
       
    56 
       
    57 inline TInt CSmsSegmentationStore::TSmsSegmentationStoreRefStatus::Status() const
       
    58 	{
       
    59 	return iStatus;
       
    60 	} // CSmsSegmentationStore::TSmsSegmentationStoreRefStatus::Status
       
    61 
       
    62 
       
    63 inline void CSmsSegmentationStore::TSmsSegmentationStoreRefStatus::SetStatus(TInt aStatus)
       
    64 	{
       
    65 	iStatus = aStatus;
       
    66 	} // CSmsSegmentationStore::TSmsSegmentationStoreRefStatus::SetStatus
       
    67 
       
    68 
       
    69 inline CSmsSegmentationStore::RSmsSegmentationStoreRefStatusArray::RSmsSegmentationStoreRefStatusArray()
       
    70   : RArray<CSmsSegmentationStore::TSmsSegmentationStoreRefStatus>()
       
    71 	{
       
    72 	// NOP
       
    73 	} // CSmsSegmentationStore::RSmsSegmentationStoreRefStatusArray::RSmsSegmentationStoreRefStatusArray
       
    74