imservices/ossprotocoladaptation/inc/im/cossprotocolimconversation.h
changeset 46 860cd8a5168c
parent 35 085f765766a0
equal deleted inserted replaced
35:085f765766a0 46:860cd8a5168c
     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 protocol im conversation 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef COSSPROTOCOLIMCONVERSATION_H__
       
    19 #define COSSPROTOCOLIMCONVERSATION_H__
       
    20 
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <protocolimconversation.h>
       
    24 
       
    25 
       
    26 class MOSSProtocolConnectionManager;
       
    27 
       
    28 
       
    29 /**
       
    30  * COSSProtocolImConversation
       
    31  * implements MProtocolImConversation methods
       
    32  * these methods will called by ximp framework 
       
    33  */
       
    34 class COSSProtocolImConversation :   public CBase,
       
    35                                         public MProtocolImConversation
       
    36     {
       
    37 
       
    38 public:
       
    39 
       
    40     static COSSProtocolImConversation* NewL( MOSSProtocolConnectionManager& aConnManager );
       
    41     ~COSSProtocolImConversation();
       
    42 
       
    43 
       
    44 private:
       
    45 
       
    46     COSSProtocolImConversation( MOSSProtocolConnectionManager& aConnManager );
       
    47     void ConstructL();
       
    48 
       
    49 public:  //from MXIMPBase
       
    50 
       
    51 	/**
       
    52 	 * @see MXIMPBase
       
    53 	 */
       
    54     TAny* GetInterface( TInt32 aInterfaceId,
       
    55                         TIfGetOps  aOptions );
       
    56 	/**
       
    57 	 * @see MXIMPBase
       
    58 	 */
       
    59     const TAny* GetInterface( TInt32 aInterfaceId,
       
    60                               TIfGetOps aOptions ) const;
       
    61 
       
    62 	/**
       
    63 	 * @see MXIMPBase
       
    64 	 */
       
    65     TInt32 GetInterfaceId() const;
       
    66 
       
    67 public: // From MProtocolImConversation
       
    68     /**
       
    69 	 * @see MProtocolImConversation
       
    70 	 */
       
    71     void DoSendMessageL( 
       
    72               const MImConversationInfo& aImMessage,
       
    73               TXIMPRequestId aReqId );
       
    74     /**
       
    75 	 * @see MProtocolImConversation
       
    76 	 */          
       
    77     void DoForwardMessageL(
       
    78               const MImConversationInfo& aImMessage,
       
    79               TXIMPRequestId aReqId);
       
    80     /**
       
    81 	 * @see MProtocolImConversation
       
    82 	 */
       
    83     void DoSendMessageToGroupL( 
       
    84     					const MImConversationInfo& aImMessage,
       
    85     					const TDesC* aGroupId,TXIMPRequestId aReqId );
       
    86 	/**
       
    87 	 * @see MProtocolImConversation
       
    88 	 */
       
    89 	TXIMPRequestId DoBlockUsersL(
       
    90         		const MDesCArray* aUserIds,
       
    91         		TXIMPRequestId aReqId);
       
    92 	/**
       
    93 	 * @see MProtocolImConversation
       
    94 	 */
       
    95 	TXIMPRequestId DoUnBlockUsersL(
       
    96         	const MDesCArray* aUserIds,
       
    97         	TXIMPRequestId aReqId );
       
    98     /**
       
    99 	 * @see MProtocolImConversation
       
   100 	 */
       
   101     void DoGetBlockedListRequestL( 
       
   102     					const MXIMPIdentity& aImMessageId,
       
   103 	    				TXIMPRequestId aReqId );	        
       
   104 	/**
       
   105 	 * @see MProtocolImConversation
       
   106 	 */
       
   107 	void DoGetMessageListL( 
       
   108 						const MXIMPIdentity& aImMessageId,
       
   109 	 					const TDesC* aGroupId,
       
   110 						const TInt aMessageCount,
       
   111 						TBool aDeliveryReportWanted,
       
   112 						TXIMPRequestId aReqId);
       
   113 	/**
       
   114 	 * @see MProtocolImConversation
       
   115 	 */
       
   116 	void DoRejectMessageL( 
       
   117 						const MXIMPIdentity& aImMessageId,
       
   118 						const TDesC& aMessageID,
       
   119 						TXIMPRequestId aReqId );			
       
   120 private:
       
   121 	/**
       
   122      * Creates data handler
       
   123      */
       
   124 	void CreateDataHandlerL();
       
   125 	
       
   126 private:    // data members
       
   127 		/**
       
   128      * Oss Protocol Plugin Connection Manager
       
   129      * Not own.  *** Write "Not own" if some other class owns this object.
       
   130      */
       
   131     MOSSProtocolConnectionManager& iConnMan;
       
   132 
       
   133     };
       
   134 
       
   135 #endif // COSSPROTOCOLIMCONVERSATION_H__