multimediacommsengine/mmcecli/inc/mcedatareceiver.h
branchrcs
changeset 49 64c62431ac08
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     1 /*
       
     2 * Copyright (c) 2005 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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MCEDATARECEIVER_H
       
    21 #define MCEDATARECEIVER_H
       
    22 #include <E32Base.h>
       
    23 #include <e32msgqueue.h>
       
    24 
       
    25 #include "mcedatasinkobserver.h"
       
    26 
       
    27 typedef TBuf8<50> TQueueBuffer;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  CMccDataReceiver class declaration
       
    33 */
       
    34 class CMceDataReceiver : public CActive
       
    35 	{
       
    36     public:
       
    37     
       
    38 	    static CMceDataReceiver* NewL( MMceDataSinkObserver& aObserver );
       
    39 		
       
    40 	    ~CMceDataReceiver(); 
       
    41 		
       
    42 	 	
       
    43     public: // From CActive
       
    44 
       
    45 		void DoCancel();
       
    46 		void RunL();
       
    47 		TInt RunError(TInt aError);	
       
    48 
       
    49     private:
       
    50         CMceDataReceiver( MMceDataSinkObserver& aObserver );
       
    51 	    void ConstructL(); // second construction phase
       
    52         TInt AssignNameToMessageQueueL(const TDes16 &aMessageBuffer);
       
    53 
       
    54     private:
       
    55 	    
       
    56 	    TBool iReady;
       
    57 		RMsgQueue<TQueueBuffer> iSendMsgQueue;		
       
    58 	    RMsgQueue<TQueueBuffer> iSendMsgQueue1;    
       
    59 	    RMsgQueue<TQueueBuffer> iSendMsgQueue2;
       
    60 		MMceDataSinkObserver* iObserver;
       
    61     };
       
    62 
       
    63 
       
    64 #endif