ipappsrv_plat/multimedia_comms_api/inc/mccdatasender.h
branchrcs
changeset 49 64c62431ac08
child 50 1d8943dd8be6
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     1 /*
       
     2 * Copyright (c) 2007 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 
       
    21 
       
    22 
       
    23 #ifndef MCCDATASENDER_H
       
    24 #define MCCDATASENDER_H
       
    25 #include <E32Base.h>
       
    26 #include <e32msgqueue.h>
       
    27 
       
    28 
       
    29 typedef TBuf8<50> TQueueBuffer;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  CMccPeriodicRunner class declaration
       
    35 */
       
    36 class CMccDataSender : public CActive
       
    37 	{
       
    38     public:
       
    39     
       
    40 	    static CMccDataSender* NewL();
       
    41 		
       
    42 	    ~CMccDataSender(); 
       
    43 		
       
    44 	public:
       
    45 	 
       
    46 	 	void Send( const TDesC8& aData );
       
    47 	 	
       
    48     public: // From CActive
       
    49 
       
    50 		void DoCancel();
       
    51 		void RunL();
       
    52 		TInt RunError(TInt aError);	
       
    53 
       
    54     private:
       
    55         CMccDataSender();
       
    56 	    void ConstructL(); // second construction phase
       
    57 	    TInt AssignNameToMessageQueueL(const TDes16 &aMessageBuffer);
       
    58 
       
    59     private:
       
    60 	    
       
    61 		RMsgQueue<TQueueBuffer> iSendMsgQueue;
       
    62 		RMsgQueue<TQueueBuffer> iSendMsgQueue1;
       
    63 		RMsgQueue<TQueueBuffer> iSendMsgQueue2;
       
    64 		TQueueBuffer iBuffer;
       
    65 		TBool iReady;
       
    66 		 
       
    67     };
       
    68 
       
    69 
       
    70 #endif