ImagePrint/ImagePrintUI/imageprinteng/inc/mprintjob.h
branchRCL_3
changeset 28 d59c248c9d36
parent 0 d11fb78c4374
equal deleted inserted replaced
27:159fc2f68139 28:d59c248c9d36
       
     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 MPRINTJOB_H
       
    20 #define MPRINTJOB_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 class MPrintJobObserver;
       
    26 
       
    27 /**
       
    28  *
       
    29  * Interface to manage the printing
       
    30  *
       
    31  */
       
    32 class MPrintJob
       
    33     {
       
    34 	public:		// Abstract methods
       
    35 
       
    36         /**
       
    37          *  Starts printing images with selected settings, template and printer.
       
    38          *  If this method does not leave, the printing has started. Further messages
       
    39          *  about printing progress are passed through MPrintJobObserver
       
    40          *  Asynchronous
       
    41          *
       
    42          *  @param aObserver Pointer to the observer class that handles the 
       
    43          */
       
    44         virtual void PrintL( MPrintJobObserver* aObserver ) = 0;
       
    45 
       
    46         /**
       
    47          *  Cancels the active print job. The cancellation is finished, when 
       
    48          *  MPrintJobObserver receives error event with error code KErrCancel
       
    49          *  Asynchronous
       
    50          */
       
    51         virtual void CancelL() = 0;
       
    52         
       
    53         /**
       
    54          *  Get all the images from current print job.
       
    55          *
       
    56          *  @param aImages An array, in which the printed images are added.
       
    57          */
       
    58         virtual void GetPrintJobL( RPointerArray<TDesC>& aImages ) = 0;
       
    59         
       
    60     };
       
    61 
       
    62 #endif //  MPRINTJOB_H
       
    63 
       
    64 //  End of File