ImagePrint/ImagePrintUI/imageprintapp/inc/cidlemode.h
branchRCL_3
changeset 27 159fc2f68139
parent 21 26673e532f65
child 28 d59c248c9d36
equal deleted inserted replaced
21:26673e532f65 27:159fc2f68139
     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 CIDLEMODE_H
       
    20 #define CIDLEMODE_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "muimode.h"
       
    26 #include "mprotocolobserver.h"
       
    27 
       
    28 class CUIProtocolController;
       
    29 class MUIModeObserver;
       
    30 class CIFFactory;
       
    31 
       
    32 //  CLASS DEFINITION
       
    33 /**
       
    34  *
       
    35  * This class represents the stand-alone UI mode,
       
    36  * i.e. idle-launchable mode
       
    37  *
       
    38  */
       
    39 class CIdleMode : 
       
    40     public CBase,
       
    41     public MUIMode,
       
    42     public MProtocolObserver
       
    43     {
       
    44     public: // Constructors and destructors
       
    45                 
       
    46 		/**
       
    47          * Two-phase constructors
       
    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 CIdleMode* NewL( MUIModeObserver* aUIModeObserver,
       
    55                                 CIFFactory& aIFFactory );
       
    56         static CIdleMode* NewLC( MUIModeObserver* aUIModeObserver,
       
    57                                  CIFFactory& aIFFactory );
       
    58     
       
    59     protected:
       
    60     
       
    61        virtual ~CIdleMode();
       
    62     
       
    63     private:
       
    64     	
       
    65         CIdleMode( MUIModeObserver* aUIModeObserver );
       
    66     	
       
    67      	void ConstructL( CIFFactory& aIFFactory );   
       
    68      	
       
    69     public: // Methods derived from MUIMode    
       
    70         void SearchDefaultPrinterL();
       
    71         TBool ChangeDefaultPrinterL( TInt aProtocol );
       
    72     
       
    73     public: // Methods derived from MProtocolObserver
       
    74         void UsbCableDisconnected();   
       
    75        
       
    76     private: 
       
    77     	
       
    78     	// Interface for callbacks
       
    79     	MUIModeObserver* iUIModeObserver;
       
    80     	
       
    81     	// Protocol controller for managing protocol changes etc.
       
    82     	CUIProtocolController* iUIProtocolController;
       
    83     	
       
    84         // Interface factory
       
    85         CIFFactory* iIFFactory;
       
    86    
       
    87     };
       
    88 
       
    89 #endif   // CIDLEMODE_H
       
    90 
       
    91 //  End of File