ImagePrint/ImagePrintUI/imageprintapp/inc/caiwmode.h
branchGCC_SURGE
changeset 25 59ea2209bb67
parent 23 08cc4cc059d4
parent 15 a92d00fca574
equal deleted inserted replaced
23:08cc4cc059d4 25:59ea2209bb67
     1 /*
       
     2 * Copyright (c) 2005-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 CAIWMODE_H
       
    20 #define CAIWMODE_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "muimode.h"
       
    26 #include "mprotocolobserver.h"
       
    27 #include "muimodeobserver.h"
       
    28 
       
    29 class CUIProtocolController;
       
    30 class CIFFactory;
       
    31 
       
    32 //  CLASS DEFINITION
       
    33 /**
       
    34  *
       
    35  * This class represents the embedded UI mode,
       
    36  * i.e. aiw-initilized mode
       
    37  *
       
    38  */
       
    39 class CAiwMode : public CBase,
       
    40                  public MUIMode,
       
    41                  public MProtocolObserver
       
    42                  
       
    43     {
       
    44     public: // Constructors and destructors
       
    45                 
       
    46 		/**
       
    47          * Two-phase constructor
       
    48          * 
       
    49          * @param aUIModeObserver Ui mode observer
       
    50          * @param aIFFactory      Interface factory to be used
       
    51          *        
       
    52          * @return Initialized instance of the class
       
    53          */                
       
    54         static CAiwMode* NewL( MUIModeObserver* aUIModeObserver,
       
    55                                CIFFactory& aIFFactory );
       
    56 
       
    57 		/**
       
    58          * Two-phase constructor
       
    59          * 
       
    60          * @param aUIModeObserver Ui mode observer
       
    61          * @param aIFFactory      Interface factory to be used
       
    62          *        
       
    63          * @return Initialized instance of the class
       
    64          */                
       
    65         static CAiwMode* NewLC( MUIModeObserver* aUIModeObserver,
       
    66                                 CIFFactory& aIFFactory );
       
    67     
       
    68     protected:
       
    69     
       
    70        virtual ~CAiwMode();
       
    71     
       
    72     private:
       
    73     	
       
    74         CAiwMode( MUIModeObserver* aUIModeObserver );
       
    75     	
       
    76      	void ConstructL( CIFFactory& aIFFactory );   
       
    77      	
       
    78     public: // Methods derived from MUIMode    
       
    79         void SearchDefaultPrinterL();
       
    80         TBool ChangeDefaultPrinterL( TInt aProtocol );
       
    81         
       
    82     public: // Methods derived from MProtocolObserver
       
    83         void UsbCableDisconnected();
       
    84     
       
    85     private: 
       
    86     	
       
    87     	// Interface for callbacks
       
    88     	MUIModeObserver* iUIModeObserver;
       
    89     	
       
    90     	// Protocol controller for managing protocol changes etc.
       
    91     	CUIProtocolController* iUIProtocolController;
       
    92     	
       
    93         // Interface factory
       
    94         CIFFactory* iIFFactory;
       
    95    
       
    96     };
       
    97 
       
    98 #endif  // CAIWMODE_H
       
    99 
       
   100 //  End of File