realtimenetprots/sipfw/SIP/ServerResolver/inc/CSIPQueryA_AAAA.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          : CSipQueryA_AAAA.h
       
    16 * Part of       : ServerResolver
       
    17 * Version       : SIP/6.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 #ifndef CSIPQUERYA_AAAA_H
       
    28 #define CSIPQUERYA_AAAA_H
       
    29 
       
    30 //INCLUDES
       
    31 #include <dns_qry.h>
       
    32 #include "CSIPQueryBase.h"
       
    33 #include "_sipcodecdefs.h"
       
    34 
       
    35 // CLASS DEFINITION
       
    36 /**
       
    37  * CSIPQueryA_AAAA implements a
       
    38  */
       
    39 class CSIPQueryA_AAAA : public CSIPQueryBase
       
    40 	{
       
    41 	public:
       
    42 
       
    43 		static CSIPQueryA_AAAA* NewL( const TDesC8& aTarget );
       
    44 		
       
    45 		~CSIPQueryA_AAAA();
       
    46 
       
    47 	public:
       
    48 
       
    49 		TInetAddr QueryResultBuf(); 
       
    50 		
       
    51 		void SetTargetL( const TDesC8& aTarget );
       
    52 		
       
    53 		void Query( MSIPHostResolver& aResolver );
       
    54 		
       
    55 		TBool QueryNext( MSIPHostResolver& aResolver );
       
    56 		
       
    57 		void HandleQueryResultL( MSIPHostResolver& aResolver );
       
    58 		
       
    59 		TBool DnsNoRoute() const;
       
    60 			
       
    61 	private:// Constructors and destructor
       
    62 
       
    63 		void ConstructL( const TDesC8& aTarget );
       
    64 
       
    65 		CSIPQueryA_AAAA();
       
    66 		
       
    67 	private:// Data
       
    68 		
       
    69 		HBufC* iTarget;
       
    70 		
       
    71 		TInetAddr iResult;
       
    72 		
       
    73 		TNameEntry iNResult;
       
    74 
       
    75 	private: // For testing purposes
       
    76 
       
    77 		UNIT_TEST(CSIPQueryA_AAAATest)
       
    78 		
       
    79 		UNIT_TEST(CSIPQueryA_AAAAStub)
       
    80 		
       
    81 		UNIT_TEST(CSIPA_AAAAOrigDomainTest)	
       
    82 	};
       
    83 #endif // end of CSIPQUERYA_AAAA_H
       
    84 
       
    85 // End of File