ImagePrint/ImagePrintUI/imageprinteng/inc/mprintjobstatus.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 MPRINTJOBSTATUS_H
       
    20 #define MPRINTJOBSTATUS_H
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 /**
       
    25  *
       
    26  *  Internal mixin-class for CPrintEventCatcher to notify the status
       
    27  *  of the print job
       
    28  *
       
    29  */
       
    30 class MPrintJobStatus
       
    31     {    
       
    32     public:
       
    33 
       
    34         /** 
       
    35          *  Used to notify the status of the print job
       
    36          *  
       
    37          *  @param aStatus  Possible TInt codes can mean (active, done)
       
    38          *  @param aPercentCompletion  0%-100% of the print job completed
       
    39          *  @param aJobStateCode Enumeration code for the Job State String         
       
    40          */
       
    41         virtual void PrintJobProgress( TInt aStatus, TInt aPercentCompletion, 
       
    42             TInt aJobStateCode ) = 0;
       
    43 
       
    44         /** 
       
    45          *  Used to notify occured error during the job
       
    46          *
       
    47          *  @param aError   The error code
       
    48          *  @param aErrorStringCode   More detailed error string
       
    49          */
       
    50         virtual void PrintJobError( TInt aError, TInt aErrorStringCode ) = 0;
       
    51 
       
    52         /**
       
    53          *  Printer status is obtained through this interface, usually the
       
    54          *  suspend errors are notified using this method
       
    55          *
       
    56          *  @param aError   The error code
       
    57          *  @param aErrorStringCode Error string code         
       
    58          */
       
    59         virtual void PrinterStatus( TInt aError, TInt aErrorStringCode ) = 0;
       
    60     };
       
    61 
       
    62 #endif  //  MPRINTJOBSTATUS_H
       
    63 
       
    64 //  End of File