realtimenetprots/sipfw/SIP/Server/inc/CSipCSReceiveQueue.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Name          : CSipCSReceiveQueue.h
       
    16 * Part of       : SIPServerCore
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef CSIPCSRECEIVEQUEUE_H
       
    29 #define CSIPCSRECEIVEQUEUE_H
       
    30 
       
    31 #include <e32base.h>
       
    32 #include "TSipCSReceiveItem.h"
       
    33 #include "SipStackServerDefs.h"
       
    34 #include "_sipcodecdefs.h"
       
    35 
       
    36 class CSIPMessage;
       
    37 
       
    38 
       
    39 class CSipCSReceiveQueue : public CBase
       
    40 	{
       
    41 public:
       
    42 	
       
    43     CSipCSReceiveQueue ();
       
    44     ~CSipCSReceiveQueue ();
       
    45 
       
    46     TBool IsEmpty() const;
       
    47     
       
    48     TSipCSReceiveItem& First ();
       
    49 
       
    50     TInt AddLast (const TSipCSReceiveItem& aItem);
       
    51     
       
    52     void RemoveFirst ();
       
    53     
       
    54     void RemoveSIPRequestsWith (TTransactionId aTransactionId);
       
    55 
       
    56 private: // Data
       
    57 
       
    58     RArray<TSipCSReceiveItem> iReceiveItems;
       
    59 
       
    60 private: // For testing purposes
       
    61 
       
    62 	UNIT_TEST(CSipCSReceiveQueueTest)
       
    63 	UNIT_TEST(CSipCSReceiverBaseTest)
       
    64 	};
       
    65 
       
    66 #endif // CSIPCSRECEIVEQUEUE_H
       
    67 
       
    68 // End of File