diff -r 0818dd463d41 -r 924385140d98 appfw/apparchitecture/tef/t_sisfileinstaller.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/appfw/apparchitecture/tef/t_sisfileinstaller.h Tue Aug 31 15:24:25 2010 +0300 @@ -0,0 +1,65 @@ +// Copyright (c) 2010 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: +// + +/** + @file + @internalComponent - Internal Symbian test code +*/ + +#ifndef __T_SISFILEINSTALLER_H +#define __T_SISFILEINSTALLER_H + +#include "appfwk_test_appui.h" +#include "apparctestserver.h" +#include "testableapalssession.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +//! CTestAppSisFile +/*! + This class is used for install and uninstall of sis files +*/ +class CSisFileInstaller: public CBase + { +public: + CSisFileInstaller(); + ~CSisFileInstaller(); + + TInt InstallSisL(const TDesC& aFileName); + TInt InstallSisAndWaitForAppListUpdateL(const TDesC& aFileName); + TInt UninstallSisL(const TDesC& aComponentName); + TInt UninstallSisAndWaitForAppListUpdateL(const TDesC& aComponentName); + TInt FindComponentInScrL(const TDesC& aComponentName, const TDesC& aVendor); + void CancelInstallation(); + TInt InstallSisAsynchronouslyL(const TDesC& aFileName, TRequestStatus& status); + void Close(); +private: + friend class CSifOperationStep; + Usif::RSoftwareInstall iSif; + Usif::TComponentId iComponentId; + TRequestStatus iStatus; + }; + +#endif