imstutils/imconversationview/tsrc/imcvuiengine_test/dummytestadaptation/inc/cosssendmessagerequest.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     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 send massage request
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __COSSSENDMESSAGEREQUEST_H__
       
    20 #define __COSSSENDMESSAGEREQUEST_H__
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <ximpbase.h>
       
    26 #include "ossprotocloliterals.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 class MOSSProtocolConnectionManager;
       
    31 
       
    32 class MImConversationInfo;
       
    33 /**
       
    34  * COSSSendMessageRequest
       
    35  *
       
    36  * Issue Send Message Request to Network Server
       
    37  *
       
    38  * @lib ?library
       
    39  * @since S60 v4.0
       
    40  */
       
    41 
       
    42 class COSSSendMessageRequest: public CActive
       
    43 
       
    44 
       
    45 	{
       
    46 
       
    47 	public:
       
    48 
       
    49 		static COSSSendMessageRequest* NewL (
       
    50 		    MOSSProtocolConnectionManager& aConnMan,
       
    51 		    TXIMPRequestId aRequestId );
       
    52 
       
    53 		static COSSSendMessageRequest* NewLC (
       
    54 		    MOSSProtocolConnectionManager& aConnMan,
       
    55 		    TXIMPRequestId aRequestId );
       
    56 
       
    57 		virtual ~COSSSendMessageRequest();
       
    58 
       
    59 	private:
       
    60 
       
    61 		COSSSendMessageRequest (
       
    62 		    MOSSProtocolConnectionManager& aConnMan,
       
    63 		    TXIMPRequestId aRequestId  );
       
    64 		void ConstructL();
       
    65 
       
    66 	private: // from CActive
       
    67 
       
    68 		void DoCancel();
       
    69 		/*
       
    70 		 * RunL() function also deletes the request object once the activity is done
       
    71 		 *
       
    72 		 */
       
    73 		void RunL();
       
    74 		TInt RunError ( TInt aError );
       
    75 
       
    76 	public:
       
    77 		/**
       
    78 		  * Send message to the recipients
       
    79 		  * @param aImMessage stucture stores message,recipients
       
    80 		*/
       
    81 		void SendMessageL ( const MImConversationInfo& aImMessage );
       
    82 
       
    83 	private: // data
       
    84 
       
    85 		/**
       
    86 		 * Request Id from PrFw
       
    87 		 */
       
    88 		TXIMPRequestId iRequestId;
       
    89 		/**
       
    90 		 * Send data request to pure data handler generates the id
       
    91 		 */
       
    92 		TInt iSendId;
       
    93 	
       
    94 		HBufC16* iListId;
       
    95 		/**
       
    96 		 * Oss Protocol Plugin Connection Manager
       
    97 		 * Not own.  *** Write "Not own" if some other class owns this object.
       
    98 		 */
       
    99 		MOSSProtocolConnectionManager& iConnMan;
       
   100 
       
   101 	};
       
   102 
       
   103 
       
   104 #endif // __COSSSENDMESSAGEREQUEST_H__
       
   105