email/imum/Utils/Inc/IMSWizardLauncher.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 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:  Class declaration file for CExtWizardClass
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __IMSWIZARDLAUNCHER_H__
       
    20 #define __IMSWIZARDLAUNCHER_H__
       
    21 
       
    22 #include "IMSSettingsWizard.h"
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CIMSSettingsWizard;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  Launches wizard when info screen is not needed in beginning
       
    31 *
       
    32 *  @lib IMUMUTILS.DLL
       
    33 *  @since S60 3.2
       
    34 */
       
    35 NONSHARABLE_CLASS( CIMSWizardLauncher ): public CActive
       
    36 	{
       
    37 public:
       
    38 
       
    39     /**
       
    40      * Two-phased contructor
       
    41      *
       
    42      * @since S60 3.2
       
    43      * @param aWizard for a reference which to call to launch email wizard
       
    44      * @return new object
       
    45      */
       
    46     static CIMSWizardLauncher* NewL(
       
    47 		        CIMSSettingsWizard& aWizard,
       
    48 		        CIMSSettingsUi& aSettingsUi );
       
    49     
       
    50 	virtual ~CIMSWizardLauncher();
       
    51     
       
    52     /**
       
    53      * Sets the active object active and finalizes it right
       
    54      * away to launch
       
    55      *
       
    56      * @since S60 3.2
       
    57      */
       
    58     void StartLauncher();
       
    59     
       
    60 protected:
       
    61 
       
    62 private:
       
    63 
       
    64     /**
       
    65      * Creates new object
       
    66      *
       
    67      * @since S60 3.2
       
    68      * @param aWizard for a reference which to call to launch email wizard
       
    69      * @param aPriority to send CActive class
       
    70      */
       
    71 	CIMSWizardLauncher( 
       
    72 				CIMSSettingsWizard& aWizard,
       
    73 				CIMSSettingsUi& aSettingsUi,
       
    74 				TInt aPriority = EPriorityStandard );
       
    75 
       
    76     /**
       
    77     * From CActive
       
    78     *
       
    79     * @since S60 3.2
       
    80     */
       
    81     virtual void DoCancel();
       
    82 
       
    83 
       
    84     /**
       
    85     * From CActive
       
    86     * Starts email wizard
       
    87     *
       
    88     * @since S60 3.2
       
    89     */
       
    90     virtual void RunL();
       
    91 
       
    92 private: //data members
       
    93     CIMSSettingsWizard&     iWizard;
       
    94     CIMSSettingsUi& 		iSettingsUi;
       
    95 	};
       
    96 
       
    97 
       
    98 #endif      // IMUMMAILSETTINGSWIZARD_H