realtimenetprots/sipfw/ClientResolver/Client/src/CSIPClientDiscoveryReceiver.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          : CSIPClientDiscoveryReceiver.h
       
    16 * Part of       : SIP Client Resolver
       
    17 * Version       : 1.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef CSIPCLIENTDISCOVERYRECEIVER_H
       
    29 #define CSIPCLIENTDISCOVERYRECEIVER_H
       
    30 
       
    31 //  INCLUDES
       
    32 #include <e32base.h>
       
    33 #include <s32mem.h>
       
    34 #include "sipCRclientserver.h"
       
    35 #include "_sipcodecdefs.h"
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 class MSIPClientDiscoveryObserver;
       
    39 class CSIPClientDiscoverySerializer;
       
    40 class MSIPClientDiscoveryITC;
       
    41 
       
    42 
       
    43 class CSIPClientDiscoveryReceiver : public CActive
       
    44 	{
       
    45 public: // Constructors and destructor
       
    46 
       
    47 	CSIPClientDiscoveryReceiver(MSIPClientDiscoveryITC& aITC, 
       
    48 	                            MSIPClientDiscoveryObserver& aObserver,
       
    49 	                            CSIPClientDiscoverySerializer& aSerializer);
       
    50 
       
    51 	~CSIPClientDiscoveryReceiver();
       
    52 
       
    53 protected: // From CActive:
       
    54     
       
    55     void RunL();
       
    56     TInt RunError(TInt aError);
       
    57 	void DoCancel();
       
    58 
       
    59 private: // New functions
       
    60 
       
    61 	void HandleClientNotFoundL();
       
    62 	void HandleChannelResolvedL();
       
    63 	void ErrorOccured(TInt aError);
       
    64 	void ReceiveNext();
       
    65     
       
    66 private: // Data
       
    67 
       
    68 	MSIPClientDiscoveryObserver& iObserver;
       
    69 	CSIPClientDiscoverySerializer& iSerializer;
       
    70     MSIPClientDiscoveryITC& iITC;
       
    71     TIpcArgs iITCMsgArgs;  
       
    72     TPckgBuf<TUint32> iIdsPckg;
       
    73     TPckgBuf<TUid> iResolverUid;
       
    74     TPckgBuf<TSIPCRMessageBufSizes> iSizesPckg;
       
    75     TPckgBuf<TInt> iClientResolved;
       
    76     
       
    77 private: // For testing purposes
       
    78 
       
    79 	UNIT_TEST(CSIPClientDiscoveryReceiverTest)
       
    80 	};
       
    81 	
       
    82 #endif // CSIPCLIENTDISCOVERYRECEIVER_H
       
    83 
       
    84 // End of File