ImagePrint/ImagePrintEngine/ImagePrintServer/src/server/cimageprintscheduler.cpp
branchGCC_SURGE
changeset 25 59ea2209bb67
parent 23 08cc4cc059d4
parent 15 a92d00fca574
equal deleted inserted replaced
23:08cc4cc059d4 25:59ea2209bb67
     1 /*
       
     2 * Copyright (c) 2004-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 #include "cimageprintscheduler.h"
       
    20 #include "mprotprintingdevice.h"
       
    21 #include "tidleevent.h"
       
    22 #include "printmessagecodes.h"
       
    23 #include "clog.h"
       
    24 
       
    25 void CImagePrintScheduler::Error(TInt aError) const
       
    26 	{
       
    27 	LOG1("CImagePrintScheduler::Error aError: %d", aError);
       
    28 	if( iIdleObserver )
       
    29 		{
       
    30 		TEvent event;
       
    31 		event.iProtocol = iCurrentProtocol;
       
    32 		event.iSeverity = ESevere;
       
    33 		event.iEventType = EAsynchronousLeave;
       
    34 		LOG("CImagePrintScheduler::Error informing observer");		
       
    35 		iIdleObserver->StatusEvent( event, aError, ENoMessage );
       
    36 		}
       
    37 	LOG("CImagePrintScheduler::Error end");
       
    38 	}
       
    39 
       
    40 void CImagePrintScheduler::SetIdleObserver( MProtIdleObserver& aIdleObserver )
       
    41 	{
       
    42 	LOG("CImagePrintScheduler::SetIdleObserver begin");
       
    43 	iIdleObserver = &aIdleObserver;
       
    44 	LOG("CImagePrintScheduler::SetIdleObserver end");
       
    45 	}
       
    46 
       
    47 void CImagePrintScheduler::SetCurrentProtocol( TInt aProtocol )
       
    48 	{
       
    49 	LOG1("CImagePrintScheduler::SetCurrentProtocol aProtocol: %d", aProtocol);
       
    50 	iCurrentProtocol = aProtocol;
       
    51 	LOG("CImagePrintScheduler::SetCurrentProtocol end");
       
    52 	}
       
    53 
       
    54 //  End of File