imstutils/imconversationview/tsrc/imcvuiengine_test/dummytestadaptation/inc/creceivemessagehandler.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:  Implementation of reicive message handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CRECEIVEMESSAGEHANDLER_H__
       
    20 #define __CRECEIVEMESSAGEHANDLER_H__
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <ximpbase.h>
       
    26 
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 class MOSSProtocolConnectionManager;
       
    32 /*class MPEngXMLParser;
       
    33 class MPEngXmlSerializer;*/
       
    34 
       
    35 /**
       
    36  * CReceiveMessageHandler
       
    37  *
       
    38  *
       
    39  *
       
    40  * @lib ?library
       
    41  */
       
    42 
       
    43 class CReceiveMessageHandler: public CActive
       
    44 
       
    45 
       
    46 	{
       
    47 
       
    48 	public:
       
    49 
       
    50 		static CReceiveMessageHandler* NewL (
       
    51 		    MOSSProtocolConnectionManager& aConnMan
       
    52 		);
       
    53 
       
    54 
       
    55 		virtual ~CReceiveMessageHandler();
       
    56 
       
    57 	private:
       
    58 
       
    59 		CReceiveMessageHandler ( MOSSProtocolConnectionManager& aConnMan );
       
    60 		void ConstructL();
       
    61 	
       
    62 	private: // from CActive
       
    63 
       
    64 		void DoCancel();
       
    65 		void RunL();
       
    66 		TInt RunError ( TInt aError );
       
    67 
       
    68 	public:
       
    69         
       
    70     	/**
       
    71 		 * start listening recieved massages
       
    72 		 */    
       
    73 		void StartListeningL();
       
    74     	/**
       
    75 		 * parse the data and update the data cache of ximp.send event back to ximp
       
    76 		 */
       
    77 		void ProcessIncomingDataL();
       
    78 
       
    79 	private: // data
       
    80 
       
    81 		/**
       
    82 		 * Send data request to pure data handler generates the id
       
    83 		 */
       
    84 		TInt iSendId;
       
    85 		
       
    86 		/**
       
    87 		 * Oss Protocol Plugin Connection Manager
       
    88 		 * Not own.  *** Write "Not own" if some other class owns this object.
       
    89 		 */
       
    90 		MOSSProtocolConnectionManager& iConnMan;
       
    91 
       
    92 	};
       
    93 
       
    94 
       
    95 #endif // __CRECEIVEMESSAGEHANDLER_H__
       
    96