imstutils/imconversationview/tsrc/imcvuiengine_test/dummytestadaptation/inc/cossprotocolimfeatures.h
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  oss presence features implementation for XIMP Framework
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __COSSPROTOCOLIMFEATURES_H__
       
    20 #define __COSSPROTOCOLIMFEATURES_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <protocolimfeatures.h>
       
    25 //#include <protocolimgroup.h>
       
    26 //#include <protocolimconversation.h>
       
    27 //#include <protocolpresentitygroups.h>
       
    28 //#include <protocoliminvitation.h>
       
    29 //#include <protocolimsearch.h>
       
    30 #include "cossprotocolconnectionmanager.h"
       
    31 
       
    32 class COSSProtocolImConversation;
       
    33 /**
       
    34  * COSSProtocolImFeatures
       
    35  *
       
    36  * OSS Protocol Connection Object. Protocol Connection Object has connection Manager.
       
    37  *
       
    38  * @lib ?library
       
    39  * @since S60 v4.0
       
    40  */
       
    41 
       
    42 class COSSProtocolImFeatures :
       
    43 			public CBase,
       
    44 			public MProtocolImFeatures
       
    45 	{
       
    46 
       
    47 	public:
       
    48 
       
    49 		static COSSProtocolImFeatures* NewL ( COSSProtocolConnectionManager& aConnMan );
       
    50 
       
    51 
       
    52 		~COSSProtocolImFeatures();
       
    53 
       
    54 	private:
       
    55 
       
    56 		COSSProtocolImFeatures(COSSProtocolConnectionManager& aConnMan );
       
    57 
       
    58 
       
    59 		void ConstructL ( COSSProtocolConnectionManager& aConnMan );
       
    60 
       
    61 	public: // from MXIMPBase
       
    62 
       
    63 		TAny* GetInterface ( TInt32 aInterfaceId,
       
    64 		                     TIfGetOps  aOptions );
       
    65 
       
    66 		const TAny* GetInterface ( TInt32 aInterfaceId,
       
    67 		                           TIfGetOps  aOptions ) const;
       
    68 
       
    69 
       
    70 		TInt32 GetInterfaceId() const;
       
    71 
       
    72 	public :
       
    73 
       
    74 		// From MProtocolImFeatures.for comments,see MProtocolImFeatures
       
    75 		MProtocolImGroup& ImGroup();
       
    76 		MProtocolImConversation& ImConversation();
       
    77 		MProtocolImInvitation& ImInvitation();
       
    78 		MProtocolImSearch& ImSearch();
       
    79 		void SetHost(MProtocolImDataHost& aHost );
       
    80 
       
    81 	private : //data members
       
    82 		/**
       
    83 		* OWN:
       
    84 		*/
       
    85 		COSSProtocolImConversation* iImConversation;
       
    86 		
       
    87 		// not owned
       
    88 		MProtocolImDataHost *iHost ; 
       
    89 		// not owned
       
    90 		COSSProtocolConnectionManager &iConnMan ;
       
    91 
       
    92 	};
       
    93 
       
    94 #endif //__COSSPROTOCOLIMFEATURES_H__
       
    95 
       
    96 // end of file