realtimenetprots/sipfw/SIP/Server/src/CSIPRoutingRequest.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          : CSIPRoutingRequest.h
       
    16 * Part of       : SIP Server Core
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef CSIPROUTINGREQUEST_H
       
    30 #define CSIPROUTINGREQUEST_H
       
    31 
       
    32 #include <e32base.h>
       
    33 #include "_sipcodecdefs.h"
       
    34 
       
    35 class MSIPRequestRouterObserver;
       
    36 
       
    37 
       
    38 class CSIPRoutingRequest : public CBase
       
    39     {
       
    40 public: // Constructors and destructor
       
    41 
       
    42     static CSIPRoutingRequest* NewL (TUint32 aIapId,
       
    43                                      MSIPRequestRouterObserver& aObserver);
       
    44                                      
       
    45     static CSIPRoutingRequest* NewLC (TUint32 aIapId,
       
    46                                       MSIPRequestRouterObserver& aObserver);
       
    47 
       
    48     ~CSIPRoutingRequest ();
       
    49     
       
    50 public: // New functions
       
    51 
       
    52 	static TInt LinkOffset();
       
    53 	void SetRequestId(TUint32 aId);
       
    54     TUint32 RequestId() const;
       
    55     TUint32 IapId() const;
       
    56     MSIPRequestRouterObserver& Observer();
       
    57     
       
    58 private: // Second phase constructors
       
    59 
       
    60     CSIPRoutingRequest (TUint32 aIapId, MSIPRequestRouterObserver& aObserver);
       
    61 
       
    62 private: // Data
       
    63     
       
    64    	TSglQueLink iLink;    
       
    65     TUint32 iRequestId;
       
    66     TUint32 iIapId;
       
    67     MSIPRequestRouterObserver& iObserver;
       
    68 
       
    69 private: // For testing purposes
       
    70 
       
    71 	UNIT_TEST(CSIPRoutingRequestTest)
       
    72     };
       
    73 
       
    74 #endif // CSIPROUTINGREQUEST_H
       
    75 
       
    76 // End of File