realtimenetprots/sipfw/SIP/RequestHandler/src/CSIPRequestHandler.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          : CSIPRequestHandler.h
       
    16 * Part of       : SIP Request Handler
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef CSIPREQUESTHANDLER_H
       
    29 #define CSIPREQUESTHANDLER_H
       
    30 
       
    31 #include "SipRequestHandlerBase.h"
       
    32 #include "sipclientdiscoveryobserver.h"
       
    33 #include <stringpool.h>
       
    34 class CSIPClientDiscovery;
       
    35 
       
    36 
       
    37 class CSIPRequestHandler : public CSIPRequestHandlerBase,
       
    38                            public MSIPClientDiscoveryObserver
       
    39     {
       
    40 	public: // Constructors and destructor
       
    41 	    
       
    42     	static CSIPRequestHandler* NewL(TAny* aInitParams);
       
    43     	
       
    44     	~CSIPRequestHandler ();
       
    45     	
       
    46     	
       
    47     public: // From CSIPRequestHandlerBase
       
    48 
       
    49 		void RegisterL(TUid aChannel);
       
    50 
       
    51 		TInt Deregister(TUid aChannel);
       
    52 
       
    53 		TUint32 ChannelL(CSIPRequest& aSIPRequest);
       
    54 		
       
    55 		void Cancel(TUint32 aRequestId);
       
    56 		
       
    57 		
       
    58 	public: // From MSIPClientDiscoveryObserver
       
    59 	
       
    60 		void ChannelResolvedL(TUid aChannel, TUint32 aRequestId);
       
    61 
       
    62 		void ClientNotFoundL(TUint32 aRequestId,
       
    63 						     TUint aStatusCode, 
       
    64 						     RStringF aReasonPhrase, 
       
    65 						     RPointerArray<CSIPHeaderBase> aHeaders,
       
    66 						     HBufC8* aContent);
       
    67 
       
    68 		void ErrorOccurred(TInt aError,
       
    69 						   TUint32 aRequestId);
       
    70 
       
    71 	private:
       
    72 	
       
    73 		void ConstructL(TUid aUid);
       
    74 		CSIPRequestHandler(MSIPRequestHandlerObserver& aObserver);
       
    75 		
       
    76 	private: // Data
       
    77 	
       
    78 		CSIPClientDiscovery* iSIPClientDiscovery;
       
    79 		RStringF iContentTypeHeaderName;
       
    80     };
       
    81 
       
    82 #endif // CSIPREQUESTHANDLER_H