Msrp/MsrpServer/inc/CMSRPMessageChunkState.h
branchMSRP_FrameWork
changeset 58 cdb720e67852
parent 25 505ad3f0ce5c
child 59 b365c991829c
equal deleted inserted replaced
25:505ad3f0ce5c 58:cdb720e67852
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html."
       
     8 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 * Contributors:
       
    11 *
       
    12 * Description:
       
    13 * MSRP Implementation
       
    14 *
       
    15 */
       
    16 
       
    17 #ifndef CMSRPMESSAGECHUNKSTATE_H_
       
    18 #define CMSRPMESSAGECHUNKSTATE_H_
       
    19 
       
    20 // System Includes
       
    21 #include <e32base.h>
       
    22 #include <in_sock.h>
       
    23 
       
    24 const TInt KMaxLgthOfTransactionIdString = 100;
       
    25 
       
    26 
       
    27 class CMSRPMessageChunkState : public CBase
       
    28     {
       
    29     
       
    30 public: // Constructors and destructor
       
    31        IMPORT_C static CMSRPMessageChunkState* NewL( );  
       
    32        IMPORT_C ~CMSRPMessageChunkState();
       
    33        
       
    34        
       
    35        IMPORT_C TBool GetResponseReceived( );
       
    36        IMPORT_C void SetResponseReceived(TBool aResponseReceived);
       
    37        IMPORT_C TDesC8& GetTransactionId( );
       
    38        IMPORT_C void SetTransactionId(TDesC8& aTransactionId );
       
    39        IMPORT_C void SetStartPos(TInt aStartPos);
       
    40        IMPORT_C void SetEndPos(TInt aEndPos);
       
    41        IMPORT_C TInt GetStartPos( );
       
    42        IMPORT_C TInt GetEndPos( );
       
    43        IMPORT_C void SetResponseSent(TBool aResponseSent);
       
    44        IMPORT_C TBool GetResponseSent( );
       
    45        
       
    46 private:    
       
    47        
       
    48        CMSRPMessageChunkState();    
       
    49       // void ConstructL();
       
    50        
       
    51        
       
    52 
       
    53    
       
    54 private:
       
    55          TInt iStartPos;
       
    56          TInt iEndPos;
       
    57          TBuf8< KMaxLgthOfTransactionIdString > iTransactionId;
       
    58          TBool iResponseReceived;
       
    59          TBool iResponseSent;
       
    60     };
       
    61 
       
    62 
       
    63 
       
    64 
       
    65 
       
    66 #endif /* CMSRPMESSAGECHUNKSTATE_H_ */
       
    67 
       
    68 
       
    69 
       
    70 
       
    71