realtimenetprots/sipfw/ClientResolver/Server/inc/CSIPCRResponseQueue.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2004-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          : CSIPCRResponseQueue.h
       
    16 * Part of       : SIP Client Resolver
       
    17 * Version       : 1.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 #ifndef CSIPCRRESPONSEQUEUE_H
       
    28 #define CSIPCRRESPONSEQUEUE_H
       
    29 
       
    30 // INCLUDES
       
    31 #include <e32base.h>
       
    32 #include "CSIPCRResponseItem.h"
       
    33 #include "_sipcodecdefs.h"
       
    34 
       
    35 
       
    36 class CSIPCRResponseQueue : public CBase
       
    37     {
       
    38 public:
       
    39 	
       
    40 	CSIPCRResponseQueue ();
       
    41 	
       
    42 	~CSIPCRResponseQueue ();
       
    43 	
       
    44 	TBool IsEmpty () const;
       
    45 	
       
    46 	CSIPCRResponseItem& First();
       
    47 
       
    48 	TInt AddLast (const CSIPCRResponseItem* aItem);
       
    49 
       
    50 	void RemoveFirst ();
       
    51 
       
    52 	void RemoveByRequestId (TUint32 aRequestId);
       
    53 	
       
    54 	void RemoveAll ();
       
    55 
       
    56 private: // Data
       
    57 
       
    58     RPointerArray<CSIPCRResponseItem> iResponseItems;
       
    59 
       
    60 private: // For testing purposes
       
    61 
       
    62 	UNIT_TEST(CSIPCRResponseQueueTest)      
       
    63     };
       
    64 
       
    65 #endif // CSIPCRRESPONSEQUEUE_H
       
    66 
       
    67 // End of File