diff -r 000000000000 -r ba25891c3a9e iaupdate/IAD/updater/inc/iaupdatersilentlauncher.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iaupdate/IAD/updater/inc/iaupdatersilentlauncher.h Thu Dec 17 08:51:10 2009 +0200 @@ -0,0 +1,99 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Handles the launching of silent installation +* +*/ + + + +#ifndef IAUPDATERSILENTLAUNCHER_H +#define IAUPDATERSILENTLAUNCHER_H + +#include +#include +#include + + +/** + * Class that handles the launching of silent installation. + * + * @code + * @endcode + * @lib + * @since S60 + */ +class CIAUpdaterSilentLauncher : public CBase + { +public: + + /** + * Two-phased constructor. + */ + static CIAUpdaterSilentLauncher* NewL( RFs& aFs ); + + /** + * C++ Destructor. + */ + virtual ~CIAUpdaterSilentLauncher(); + +public: + + /** + * Performs installation. + * + * @since + * @param aFile Name of the file to install + * @param aStatus Request status + */ + void InstallL( const TDesC& aFile, TRequestStatus& aStatus ); + + /** + * Cancel the current installation. + * + * @since + */ + void Cancel(); + +private: + + /** + * C++ Constructor. + */ + CIAUpdaterSilentLauncher( RFs& aFs ); + + /** + * Constructor. + */ + void ConstructL(); + + /** + * @return SwiUI::TInstallOptions Options that are used for + * silent installation. + */ + SwiUI::TInstallOptions SilentInstallOptionsL() const; + +private: // Data + + SwiUI::RSWInstSilentLauncher iLauncher; + + SwiUI::TInstallOptionsPckg iOptionsPckg; + + RFs& iFs; + + TBool iConnected; + }; + +#endif // IAUPDATERSILENTLAUNCHER_H + +// EOF