ImagePrint/ImagePrintUI/imageprinteng/inc/mdiscoveryobserver.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 MDISCOVERYOBSERVER_H
       
    20 #define MDISCOVERYOBSERVER_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include <e32std.h>
       
    24 
       
    25 /**
       
    26  *
       
    27  * Interface used to notify UI about the found devices and error
       
    28  *
       
    29  */
       
    30 class MDiscoveryObserver
       
    31     {
       
    32     public:     // Enumerations
       
    33         
       
    34         enum TPrinterType
       
    35             {
       
    36             EBPP,
       
    37             EMMC,
       
    38             EUSB,
       
    39             EOPP,
       
    40             EWLAN,
       
    41             ENOPRINTER
       
    42             };
       
    43 
       
    44 	public:		// Abstract methods
       
    45 
       
    46         /**
       
    47          *  Notification of new print device
       
    48          *
       
    49          *  @param aText    Textual description of the new print device.
       
    50          *                  Ownership is not transferred
       
    51          *  @param aUid     Uid that is associated with the print device
       
    52          *  @param aCached  Is the printer cached or not?
       
    53          *  @param aType    Type of the printer
       
    54          *  @param aVendor  Printer vendor
       
    55          */
       
    56         virtual void NotifyNewPrintDeviceL( HBufC* aText, TInt aUid, 
       
    57                                            TBool aCached, TPrinterType aType,
       
    58                                            TUint aVendor ) = 0;
       
    59 
       
    60         /**
       
    61          *  Notification of error / cancellation of the sequence.
       
    62          *  Device discovery process is cancelled
       
    63          *
       
    64          *  @param aErrCode Error code  
       
    65          */
       
    66         virtual void DiscoveryError( TInt aErrCode ) = 0;
       
    67 
       
    68         /**
       
    69          *  Notifies completion of the device discovery.
       
    70          */
       
    71         virtual void DeviceDiscoveryCompleted() = 0;
       
    72 
       
    73         /**
       
    74          *  Removes cached printer as it is not found
       
    75          *
       
    76          *  @param aUid     Uid that is associated with the print device
       
    77          */
       
    78         virtual void RemoveCachedPrinterL( TInt aUid ) = 0;
       
    79     };
       
    80 
       
    81 #endif //  MDISCOVERYOBSERVER_H
       
    82 
       
    83 //  End of File