realtimenetprots/sipfw/ClientResolver/Resolver/inc/CSIPClientResolver2.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2007-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          : CSIPClientResolver2.h
       
    16 * Part of       : SIP Client Resolver
       
    17 * Version       : 1.0
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef CSIPCLIENTRESOLVER2_H
       
    29 #define CSIPCLIENTRESOLVER2_H
       
    30 
       
    31 #include <e32base.h>
       
    32 #include <ecom/ecom.h>
       
    33 #include "sipresolvedclient2.h"
       
    34 #include "_sipcodecdefs.h"
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 // CLASS DEFINITIONS
       
    38 class CSipClientResolverConfig;
       
    39 class CSIPRequest;
       
    40 class TSipClient;
       
    41 class CSipHeaderStrategyBase;
       
    42 /**
       
    43  *
       
    44  */
       
    45 NONSHARABLE_CLASS(CSIPClientResolver2) 
       
    46 : public CBase
       
    47     {
       
    48     public: // Constructors and destructor
       
    49 	
       
    50         static CSIPClientResolver2* NewL( CSIPRequest& aRequest );
       
    51         
       
    52         static CSIPClientResolver2* NewLC( CSIPRequest& aRequest );
       
    53 
       
    54     
       
    55         ~CSIPClientResolver2 ();
       
    56 
       
    57 	public: //New methods		
       
    58 		RArray< TSipClient >& ClientsData();
       
    59 		RPointerArray< CSIPResolvedClient2 >& Clients();
       
    60 		TBool GetSipClientDataL( RArray< TSipClient >& aUids );
       
    61 		void FetchMatchingUidsL( CSIPRequest& aRequest, 
       
    62 								 CSipHeaderStrategyBase& aStrategy );
       
    63 								 
       
    64 	    static void PushLC(RPointerArray<CSIPResolvedClient2>* aArray);
       
    65 	    static void ResetAndDestroyArray(TAny* anArray);
       
    66 
       
    67     private: // New methods
       
    68 		RArray <TUid> UIDsForUserNameL( CSIPRequest& aRequest );
       
    69 		void ListImplementationsL();
       
    70 		void AddClientDataL( CImplementationInformation& aInfo );
       
    71 		void LoadImplementationsL();
       
    72 		
       
    73     private:  // Constructors
       
    74 
       
    75         /// Default constructor
       
    76         CSIPClientResolver2();
       
    77     
       
    78         /// 2nd phase constructor.
       
    79         void ConstructL( CSIPRequest& aRequest );
       
    80     
       
    81     private: // private data
       
    82 
       
    83 		RArray< TUid > 						 iUids;
       
    84 		RArray< TSipClient > 				 iClientsData;
       
    85 		RPointerArray< CSIPResolvedClient2 > iResolvedClients;
       
    86 		CSipClientResolverConfig* 			 iClientResolverConfig;
       
    87 		
       
    88     private: // For testing purposes
       
    89 
       
    90          UNIT_TEST(CSIPClientResolver2_test)
       
    91     };
       
    92 
       
    93 #endif // CSIPCLIENTRESOLVER2_H
       
    94 
       
    95 // End of File