ImagePrint/ImagePrintUI/imageprintapp/inc/cimageprintdoc.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 CIMAGEPRINTDOC_H
       
    20 #define CIMAGEPRINTDOC_H
       
    21 
       
    22 #include <AknDoc.h>
       
    23 #include <badesca.h>
       
    24 
       
    25 class CEikAppUi;
       
    26 class CImagePrintEngine;
       
    27 class CIFFactory;
       
    28 class MPrintSettings;
       
    29 class MPrintPreview;
       
    30 class MPrintJob;
       
    31 class MDiscovery;
       
    32 class MIdlePrintEventObserver;
       
    33 
       
    34 /**
       
    35  *
       
    36  * Document class
       
    37  *
       
    38  */
       
    39 class CImagePrintDoc : public CAknDocument
       
    40     {
       
    41 	public:	// Constructors and destructors
       
    42 
       
    43 		/**
       
    44 		 * Two phase construction
       
    45          * 
       
    46          * @Param aApp Application class of this application.
       
    47          *
       
    48          * @return Initialized instance of CImagePrintDoc
       
    49 		 */
       
    50 		static CImagePrintDoc* NewL(CEikApplication& aApp);
       
    51 
       
    52 		/**
       
    53 		* Destructor.
       
    54 		*/
       
    55 		virtual ~CImagePrintDoc();
       
    56 
       
    57 	private: // Constructors and destructors
       
    58 
       
    59 		/**
       
    60 		* Default constructor.
       
    61 		*/
       
    62 		CImagePrintDoc(CEikApplication& aApp);
       
    63 
       
    64     private: // Methods derived from CAknDocumnet
       
    65 
       
    66        /**
       
    67         * Returns AppUi class
       
    68         *
       
    69         * @return Initialized instance of CEikAppUi
       
    70         */
       
    71         CEikAppUi* CreateAppUiL();
       
    72 
       
    73 	public: // New methods
       
    74 
       
    75 		/**
       
    76 		* Returns Engine
       
    77         *
       
    78         * @Return CImagePrintEngine Engine for this application
       
    79 		*/
       
    80 		CImagePrintEngine* Engine();
       
    81 
       
    82 		/**
       
    83 		*  Returns discovery interface
       
    84 		*
       
    85 		*  @return Device discovery interface
       
    86 		*/
       
    87 		MDiscovery* Discovery();
       
    88 		
       
    89         /**
       
    90         *  Returns print job interface
       
    91         *
       
    92         *  @return Print job interface
       
    93         */
       
    94 		MPrintJob* PrintJob();
       
    95 
       
    96 		/**
       
    97 		*  Returns print preview interface
       
    98 		*
       
    99 		*  @return Print preview interface
       
   100 		*/		
       
   101 		MPrintPreview* PrintPreview();
       
   102 		
       
   103 		/**
       
   104 		*  Returns settings interface
       
   105 		*
       
   106 		*  @return Settings interface
       
   107 		*/
       
   108 		MPrintSettings* PrintSettings();
       
   109 
       
   110         /**
       
   111         *   Initializes engine
       
   112         */
       
   113         void InitializeEngineL();
       
   114 
       
   115         /**
       
   116         *   Set selected images to engine.
       
   117         *   @param aArray array of printed image, ownership is transferred
       
   118         */
       
   119         void SetImageArrayL( CDesCArrayFlat* aArray );
       
   120 
       
   121         /**
       
   122         *   Restarts Image Print Engine
       
   123         */
       
   124         void RestartEngine();
       
   125 
       
   126 	private: // Data
       
   127 
       
   128 	    // Engine for this application
       
   129         CImagePrintEngine* iEngine;
       
   130     };
       
   131 
       
   132 #endif // CIMAGEPRINTDOC_H
       
   133 
       
   134 //  End of File