multimediacommsengine/tsrc/MMCTestDriver/MCETester/ttcnresolverplugin/src/CTTCNResolverPluginBase.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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:    See class definition below.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CTTCNRESOLVERPLUGINBASE_H__
       
    21 #define __CTTCNRESOLVERPLUGINBASE_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include <apgcli.h>
       
    25 #include "SipResolvedClient.h"
       
    26 
       
    27 // CLASS DEFINITION
       
    28 /**
       
    29  * CTTCNResolverPluginBase base class for testing plugins of ClientResolver.
       
    30  */
       
    31 class CTTCNResolverPluginBase : public CSIPResolvedClient
       
    32 	{
       
    33 	public:	// Constructors and destructor
       
    34 
       
    35 		/// Destructor
       
    36 		virtual ~CTTCNResolverPluginBase();
       
    37 
       
    38 	public: // from CSIPResolvedClient
       
    39 	
       
    40 	    TUid ChannelL( RStringF aMethod,
       
    41                        const TDesC8& aRequestUri,
       
    42                        const RPointerArray<CSIPHeaderBase>& aHeaders,
       
    43                        const TDesC8& aContent,
       
    44                        const CSIPContentTypeHeader* aContentType=0);
       
    45 
       
    46 		void ConnectL( TUid aUid );
       
    47 
       
    48 	protected: // Constructors
       
    49 
       
    50 		inline CTTCNResolverPluginBase() {}
       
    51 		
       
    52 		// Second phase constructor
       
    53 		void ConstructL(); 
       
    54 	
       
    55 	protected: // derived class must implement:
       
    56 	
       
    57 	    virtual TInt32 MyUid() const = 0;
       
    58 	
       
    59 	private: // New functions
       
    60 
       
    61 		// Needed for cleanup of a RImplInfoPtrArray:
       
    62 		static void ResetAndDestroy( TAny* anArray );
       
    63 
       
    64 		// Name
       
    65 		RApaLsSession iApaSession;
       
    66 		TApaAppInfo iAppInfo;
       
    67 		
       
    68 		TUid iApplicationUID;
       
    69 	};
       
    70 
       
    71 #endif // __CTTCNRESOLVERPLUGIN_H__