imservices/ossprotocoladaptation/inc/cossprotocolimfeatures.h
branchRCL_3
changeset 14 7797b2f86d2b
parent 13 b6f2a363adf7
child 16 cfe5eb8bb9ca
equal deleted inserted replaced
13:b6f2a363adf7 14:7797b2f86d2b
     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 <cprotocolimfeatures.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  */
       
    39 
       
    40 class COSSProtocolImFeatures :
       
    41 			public CProtocolImFeatures
       
    42 	{
       
    43 
       
    44 	public:
       
    45 
       
    46 		static COSSProtocolImFeatures* NewL ( COSSProtocolConnectionManager& aConnMan );
       
    47 
       
    48 
       
    49 		~COSSProtocolImFeatures();
       
    50 
       
    51 	private:
       
    52 
       
    53 		COSSProtocolImFeatures(COSSProtocolConnectionManager& aConnMan );
       
    54 
       
    55 
       
    56 		void ConstructL ( COSSProtocolConnectionManager& aConnMan );
       
    57 
       
    58 	public: // from MXIMPBase
       
    59 
       
    60 		TAny* GetInterface ( TInt32 aInterfaceId,
       
    61 		                     TIfGetOps  aOptions );
       
    62 
       
    63 		const TAny* GetInterface ( TInt32 aInterfaceId,
       
    64 		                           TIfGetOps  aOptions ) const;
       
    65 
       
    66 
       
    67 		TInt32 GetInterfaceId() const;
       
    68 
       
    69 	public :// From MProtocolImFeatures
       
    70 
       
    71 		/**
       
    72 		 * @see MProtocolImFeatures
       
    73 		 */
       
    74 		MProtocolImGroup& ImGroup();
       
    75 		/**
       
    76 		 * @see MProtocolImFeatures
       
    77 		 */
       
    78 		MProtocolImConversation& ImConversation();
       
    79 		/**
       
    80 		 * @see MProtocolImFeatures
       
    81 		 */
       
    82 		/**
       
    83 		 * @see MProtocolImFeatures
       
    84 		 */
       
    85 		MProtocolImInvitation& ImInvitation();
       
    86 		/**
       
    87 		 * @see MProtocolImFeatures
       
    88 		 */
       
    89 		MProtocolImSearch& ImSearch();
       
    90 		/**
       
    91 		 * @see MProtocolImFeatures
       
    92 		 */
       
    93 		void SetHost(MProtocolImDataHost& aHost );
       
    94 		
       
    95 	    TInt SupportedSubInterfaces() const;
       
    96 
       
    97 	private : //data members
       
    98 		/**
       
    99 		* im conversation
       
   100 		* Own:
       
   101 		*/
       
   102 		COSSProtocolImConversation* iImConversation;
       
   103 
       
   104 		/**
       
   105 		* Protocol im data hodt
       
   106 		* Not own:
       
   107 		*/
       
   108 		MProtocolImDataHost *iHost ; 
       
   109 		
       
   110 		/**
       
   111 	     * Connection manager
       
   112 	     * Not own:
       
   113 	     */
       
   114 		COSSProtocolConnectionManager &iConnMan ;
       
   115 	};
       
   116 
       
   117 #endif //__COSSPROTOCOLIMFEATURES_H__
       
   118 
       
   119 // end of file