diff -r 8e7494275d3a -r 4f0867e42d62 connectivitymodules/SeCon/services/pcd/inc/sconinstaller.h --- a/connectivitymodules/SeCon/services/pcd/inc/sconinstaller.h Tue Aug 31 15:05:37 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,143 +0,0 @@ -/* -* Copyright (c) 2005-2009 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: CSConAppInstaller header file -* -*/ - - -#ifndef _SCONINSTALLER_H_ -#define _SCONINSTALLER_H_ - -// INCLUDES - -#include -#include -#include - -#include "sconinstqueue.h" - -class CSConUninstall; - -//============================================================ -// Class CSConAppInstaller declaration -//============================================================ -NONSHARABLE_CLASS ( CSConAppInstaller ): public CActive - { - public: - /** - * Constructor - * @param aQueue The address of CSConInstallerQueu - * @return none - */ - static CSConAppInstaller* NewL( CSConInstallerQueue* aQueue, RFs& aFs ); - - /** - * Destructor - * @return none - */ - ~CSConAppInstaller(); - - /** - * Starts the installer task - * @param aTaskId Task number - * @return none - */ - void StartInstaller( TInt& aTaskId ); - /** - * Stops the installer task - * @return none - */ - void StopInstaller( TInt& aTaskId ); - - /** - * Returns the active status of the installer - * @return ETrue if installer is active, else EFalse - */ - TBool InstallerActive() const; - - private: - /** - * Constructor - * @param aQueue The address of CSConInstallerQueu - * @return none - */ - CSConAppInstaller( CSConInstallerQueue* aQueue, RFs& aFs ); - - void ConstructL(); - /** - * Implementation of CActive::DoCancel() - * @return none - */ - void DoCancel(); - /** - * Implementation of CActive::RunL() - * @return none - */ - void RunL(); - - void WriteTaskDataL( CSConTask& aTask ); - - void ExternalizeResultArrayIntValL( const TDesC& aName, RWriteStream& aStream ); - void ExternalizeResultIntValL( const TDesC& aName, RWriteStream& aStream ); - void ExternalizeResultStringValL( const TDesC& aName, RWriteStream& aStream ); - /** - * Executes ListInstalledApps task - * @return none - */ - void ProcessListInstalledAppsL(); - /** - * Executes Install task - * @param CSConInstall install params - * @return none - */ - void ProcessInstallL( const CSConInstall& aInstallParams ); - /** - * Executes UnInstall task - * @param CSConUninstall uninstall params - * @return none - */ - void ProcessUninstallL( const CSConUninstall& aUninstallParams ); - - //void UninstallSisL( const CSConUninstall& aUninstallParams ); - //void UninstallJavaL( const TUid& aUid, const TSConInstallMode aMode ); - //void UninstallWidget( const TUid& aUid, const TSConInstallMode aMode ); - void DeleteFile( const TDesC& aPath ); - - private: - enum TInstallerState - { - EIdle = 0, - EInstalling, - ESilentInstalling, - EUninstalling, - ESilentUninstalling, - ECustomUninstalling, - ESilentCustomUnistalling, - EListingInstalledApps - }; - //TInstallerState iInstallerState; - CSConInstallerQueue* iQueue; // Not owned - //SwiUI::RSWInstLauncher iSWInst; - //SwiUI::TInstallOptions iOptions; - //SwiUI::TInstallOptionsPckg iOptionsPckg; - Usif::RSoftwareInstall iSwInstaller; - Usif::COpaqueNamedParams* iSifOptions; - Usif::COpaqueNamedParams* iSifResults; - TInt iCurrentTask; - RFs& iFs; - }; - -#endif // _SCONINSTALLER_H_ - -// End of file