ImagePrint/ImagePrintEngine/DeviceProtocols/btprotocol/inc/mbtpcobserver.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:  Declares the MBtPCObserver interface class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MBTPCOBSERVER_H
       
    20 #define MBTPCOBSERVER_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include <e32std.h>
       
    24 
       
    25 class CRsBtDevice;
       
    26 class TPrintCapability;
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  @brief A virtual MBtPCObserver class.
       
    33 *
       
    34 *  @since Series60 3.1
       
    35 */
       
    36 class MBtPCObserver
       
    37     {
       
    38     public: // New interface functions
       
    39 
       
    40         /**
       
    41     	* CreateJobResponse callback function
       
    42         * @since Series60 3.1
       
    43         * @param aAction the action
       
    44         * @param aErrorCode System wide error code
       
    45         */
       
    46         virtual void CreateJobResponse( TInt aJobId, TInt aErrorCode ) = 0;
       
    47 
       
    48         /**
       
    49     	* CancelJobResponse callback function
       
    50         * @since Series60 3.1
       
    51         * @param aAction the action
       
    52         * @param aErrorCode System wide error code
       
    53         */
       
    54         virtual void CancelJobResponse( TInt aErrorCode ) = 0;
       
    55 
       
    56         /**
       
    57     	* GetPrinterAttributesResponse callback function
       
    58         * @since Series60 3.1
       
    59         * @param aAction the action
       
    60         * @param aErrorCode System wide error code
       
    61         *
       
    62         virtual void GetPrinterAttributesResponse( TInt aState, TInt aStateReasons,
       
    63 								 				   RArray<TPrintCapability>& aCapabilities,
       
    64 								 				   TInt aOperationStatus, TInt aDeviceId) = 0;
       
    65 
       
    66         **
       
    67     	* GetPrinterAttributesResponse callback function
       
    68         * @since Series60 3.1
       
    69         * @param aAction the action
       
    70         * @param aErrorCode System wide error code
       
    71         */
       
    72         virtual void GetPrinterStateResponse( TInt aState, TInt aStateReasons,
       
    73 								 			  TInt aOperationStatus, TInt aDeviceId) = 0;
       
    74 
       
    75         /**
       
    76     	* GetJobAttributesResponse callback function
       
    77         * @since Series60 3.1
       
    78         * @param aAction the action
       
    79         * @param aErrorCode System wide error code
       
    80         */
       
    81         virtual void GetJobAttributesResponse( TInt  aJobState, 
       
    82 											   const TDesC8&  aJobName,
       
    83 											   const TDesC8&  aOriginator,
       
    84 											   TInt aSheetsCompleted, 
       
    85 											   TInt aPendingJobs,
       
    86 											   TInt aOperationStatus ) = 0;
       
    87 
       
    88         /**
       
    89     	* GetEventResponse callback function
       
    90         * @since Series60 3.1
       
    91         * @param aAction the action
       
    92         * @param aErrorCode System wide error code
       
    93         */
       
    94 		virtual void GetEventResponse(TInt aJobId,
       
    95 							  TInt aJobState,
       
    96 							  TInt aPrinterState,
       
    97 							  TInt aStateReasons,
       
    98 							  TInt aOperationStatus) = 0;
       
    99         /**
       
   100     	* DeviceDiscoveredL callback function
       
   101         * @since Series60 3.1
       
   102         * @param aDevice the device discovered
       
   103         */
       
   104         virtual void DeviceDiscovered( CRsBtDevice& aDevice ) = 0;
       
   105 
       
   106         /**
       
   107     	* DeviceDisappeared callback function
       
   108         * @since Series60 3.1
       
   109         * @param aDevice the device disappeared
       
   110         */
       
   111         virtual void DeviceDisappeared( CRsBtDevice& aDevice ) = 0;
       
   112 
       
   113         /**
       
   114     	* DiscoveryError callback function
       
   115         * @since Series60 3.1
       
   116         * @param aError error occured during discovery on cancel discovery operation
       
   117         */
       
   118 		virtual void DiscoveryError(TInt aError) = 0;
       
   119    		 
       
   120    		/*
       
   121 		 * Updates progress bar. 
       
   122 		 * */
       
   123 		virtual void OPPSendProgress( TInt aProgress ) = 0;
       
   124     };
       
   125 
       
   126 #endif // MBTPCOBSERVER_H
       
   127 
       
   128 // End Of File