ImagePrint/ImagePrintUI/imageprintapp/src/uimodefactory.cpp
branchRCL_3
changeset 27 159fc2f68139
parent 21 26673e532f65
child 28 d59c248c9d36
equal deleted inserted replaced
21:26673e532f65 27:159fc2f68139
     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 #include "uimodefactory.h"
       
    20 #include "cimageprintappui.h"
       
    21 #include "muimode.h"
       
    22 #include "caiwmode.h"
       
    23 #include "cidlemode.h"
       
    24 #include "ciffactory.h"
       
    25 
       
    26 // CONSTRUCTOR
       
    27 MUIMode* UIModeFactory::CreateL( TBool aAiwMode,
       
    28                         MUIModeObserver* aUIModeObserver,
       
    29                         CIFFactory& aIFFactory )
       
    30     {
       
    31     if( aAiwMode )
       
    32         {
       
    33         return CAiwMode::NewL( aUIModeObserver, aIFFactory );
       
    34         }
       
    35     else
       
    36         {
       
    37         return CIdleMode::NewL( aUIModeObserver, aIFFactory );
       
    38         }
       
    39     }
       
    40 
       
    41 
       
    42 // Destructor
       
    43 UIModeFactory::~UIModeFactory()
       
    44     {
       
    45 
       
    46     }
       
    47 
       
    48 //  End of File