smsprotocols/smsstack/wapprot/Inc/wappstor.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  * @internalAll 
       
    19 */
       
    20 
       
    21 
       
    22 #if !defined (WAPPSTOR_H__)
       
    23 #define WAPPSTOR_H__
       
    24 
       
    25 #include <e32base.h>
       
    26 #include "gsmubuf.h"
       
    27 #include "gsmustor.h"
       
    28 #include "WAPDGRM.H"
       
    29 
       
    30 //
       
    31 // class CWapReassemblyStore
       
    32 //
       
    33 
       
    34 /**
       
    35  *  @internalComponent
       
    36  */
       
    37 class CWapReassemblyStore : public CSARStore
       
    38 	{
       
    39 public:
       
    40 	static CWapReassemblyStore* NewL(RFs& aFs);
       
    41 	~CWapReassemblyStore();
       
    42 
       
    43         // Note !
       
    44         // if aDatagram.IsComplete() returns true, calling this method is not needed !
       
    45 	TBool AddMessageL(  TInt&                   aIndex,
       
    46                                 const CWapDatagram&     aDatagram);
       
    47 
       
    48 	void GetDatagramL(  TInt            aIndex,
       
    49                                 CWapDatagram&   aDatagram);
       
    50 	TBool FindAndDeleteDatagramL( CWapDatagram& aDatagram);
       
    51 private:
       
    52     void ConstructL();
       
    53 
       
    54 	void InternalizeEntryL( TStreamId                   aStreamId,
       
    55                             CWapDatagram&               aDatagram,
       
    56                             CArrayPtr<CWapDatagram::TSegmentData>&  aSmsBufferArray);
       
    57 
       
    58     void ExternalizeEntryL( TStreamId&                          aStreamId,
       
    59                             const CWapDatagram&                 aDatagram,
       
    60                             const CArrayPtr<CWapDatagram::TSegmentData>& aSmsBufferArray);
       
    61 
       
    62 	void PopulateEntry( TWapReassemblyEntry& aEntry,
       
    63                         const CWapDatagram& aDatagram,
       
    64                         TInt                aNumSmsBuffers);
       
    65 
       
    66 	void CreateEntryL(  const CWapDatagram&                 aDatagram,
       
    67                         const CArrayPtr<CWapDatagram::TSegmentData>& aSmsBufferArray);
       
    68 
       
    69     void OpenStoreL();
       
    70 private:
       
    71 	CWapReassemblyStore(RFs& aFs);
       
    72 private:
       
    73 	TFileName iFullPathBuf;
       
    74 	};
       
    75 
       
    76 
       
    77 #endif // !defined WAPPSTOR_H__
       
    78