ImagePrint/ImagePrintUI/imageprinteng/inc/mprintjobobserver.h
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 #ifndef MPRINTJOBOBSERVER_H
       
    20 #define MPRINTJOBOBSERVER_H
       
    21 
       
    22 #include <e32def.h>
       
    23 
       
    24 /**
       
    25  *
       
    26  * Interface used to notify UI about the print progress
       
    27  *
       
    28  */
       
    29 class MPrintJobObserver
       
    30     {
       
    31 	public:		// Abstract methods
       
    32 
       
    33         /**
       
    34          *  Notificiation of the printed page
       
    35          *
       
    36          *  @param aPercentageComplete  The percentage completed
       
    37          */
       
    38         virtual void PrintProgress( TUint aPercentageComplete ) = 0;
       
    39 
       
    40         /**
       
    41          *  Printing finished
       
    42          */
       
    43         virtual void JobFinished() = 0;
       
    44 
       
    45         /**
       
    46          *  Error during printing - the current job is cancelled
       
    47          *
       
    48          *  @param aErrorCode   The error code
       
    49          *  @param aErrorStringCode   The more detailed error string
       
    50          */
       
    51         virtual void JobError( TInt aErrorCode, TInt aErrorStringCode ) = 0;
       
    52 
       
    53         /**
       
    54          *  Minor error during printing, print process is NOT cancelled
       
    55          *
       
    56          *  @param aErrorCode   The error code
       
    57 		 *  @param aErrorStringCode   The more detailed error string         
       
    58          */
       
    59         virtual void JobStatusEvent( TInt aErrorCode, TInt aErrorStringCode ) = 0;
       
    60     };
       
    61 
       
    62 #endif // MPRINTJOBOBSERVER_H
       
    63 
       
    64 //  End of File