mmsharing/livecommsui/lcui/tsrc/dummymusengineplugin/inc/mccdatasender.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     1 /*
       
     2 * Copyright (c) 2006 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 #ifndef MCCDATASENDER_H
       
    22 #define MCCDATASENDER_H
       
    23 #include <E32Base.h>
       
    24 #include <e32msgqueue.h>
       
    25 
       
    26 #include "mccdatastructures.h"
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  CMccPeriodicRunner class declaration
       
    33 */
       
    34 class CMccDataSender : public CActive
       
    35 	{
       
    36     public:
       
    37     
       
    38 	    static CMccDataSender* NewL();
       
    39 		
       
    40 	    ~CMccDataSender(); 
       
    41 		
       
    42 	public:
       
    43 	 
       
    44 	 	void Send( const TDataMessage& aData );
       
    45 	 	
       
    46     public: // From CActive
       
    47 
       
    48 		void DoCancel();
       
    49 		void RunL();
       
    50 		TInt RunError(TInt aError);	
       
    51 
       
    52     private:
       
    53         CMccDataSender();
       
    54 	    void ConstructL(); // second construction phase
       
    55 
       
    56     private:
       
    57 	    
       
    58 		RMsgQueue<TDataMessage> iMsgQueue;
       
    59 		TDataMessage iBuffer;
       
    60 		 
       
    61     };
       
    62 
       
    63 
       
    64 #endif