DirectPrint/DirectPrintServer/inc/directprintscheduler.h
changeset 19 2275db202402
parent 11 613a5ff70823
equal deleted inserted replaced
2:acc370d7f2f6 19:2275db202402
       
     1 /*
       
     2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // Protection against nested includes
       
    20 #ifndef CDIRECTPRINTSCHEDULER_H
       
    21 #define CDIRECTPRINTSCHEDULER_H
       
    22 
       
    23 // System include files
       
    24 #include <e32base.h>
       
    25 
       
    26 class MProtIdleObserver;
       
    27 
       
    28 class CDirectPrintScheduler : public CActiveScheduler
       
    29 	{
       
    30 	public: // from CActiveScheduler
       
    31 		void Error(TInt aError) const;
       
    32 	public:
       
    33 	
       
    34 		/**
       
    35          *	Idle observer setter. Asynchronous errors (leaves) will be
       
    36          *	propagated to this observer
       
    37          *
       
    38          *	@param aIdleObserver idle observer
       
    39          */
       
    40 		void SetIdleObserver( MProtIdleObserver& aIdleObserver );
       
    41 		
       
    42 		/**
       
    43          *	Current protocol id setter
       
    44          *
       
    45          *	@param aProtocol current protocol id
       
    46          */
       
    47 		void SetCurrentProtocol( TInt aProtocol );
       
    48 		
       
    49 	private:
       
    50 		MProtIdleObserver* iIdleObserver;
       
    51 		TInt iCurrentProtocol;						
       
    52 	};
       
    53 
       
    54 
       
    55 #endif // CDIRECTPRINTSCHEDULER_H
       
    56 
       
    57 //  End of File