diff -r 000000000000 -r ba25891c3a9e appinstaller/AppinstUi/Daemon/Inc/silentuninstaller.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/appinstaller/AppinstUi/Daemon/Inc/silentuninstaller.h Thu Dec 17 08:51:10 2009 +0200 @@ -0,0 +1,99 @@ +/* +* Copyright (c) 2004 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: +* +*/ + + +#ifndef SILENTUNINSTALLER_H +#define SILENTUNINSTALLER_H + +// INCLUDES +#include +#include +#include + +namespace Swi +{ +/** + * CSilentUninstaller class handles uninstalling of the single sisx file. + */ +class CSilentUninstaller : public CBase + { + public: + + /** + * Two-phased constructor. + * + * @param aFs File server session. + */ + static CSilentUninstaller* NewL( RFs& aFs ); + + /** + * Destructor. + */ + virtual ~CSilentUninstaller(); + + public: + + /** + * This function requests silent uninstalling from the + * SWI installer. + * + * @param aUid Package UID + * @param aReqStatus Request status + * @param aMIME MIME type descriptor. + */ + void UninstallL( + TUid& aUid, + TRequestStatus& aReqStatus, + TDesC8& aMIME ); + + /** + * Cancel the current installation. + */ + void Cancel(); + + private: + + /** + * Constructor. + * + * @param aFs File server + */ + CSilentUninstaller( RFs& aFs ); + + /** + * 2nd phase constructor. + */ + void ConstructL(); + + private: // Data + + // Silent uninstaller + SwiUI::RSWInstSilentLauncher iLauncher; + // Uninstall options + SwiUI::TUninstallOptions iOptions; + // Uninstall options package + SwiUI::TUninstallOptionsPckg iOptionsPckg; + // File server + RFs& iFs; + // Defines need of connection to install server. + TBool iConnected; + }; +} + +#endif /*SILENTUNINSTALLER_H*/ + +// End of File