diff -r 5cc91383ab1e -r 7333d7932ef7 appinstaller/AppinstUi/startuplistupdater/inc/startuplistupdater.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/appinstaller/AppinstUi/startuplistupdater/inc/startuplistupdater.h Tue Aug 31 15:21:33 2010 +0300 @@ -0,0 +1,71 @@ +/* +* 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: Header file for startup list updater. +* +*/ + +#ifndef STARTUPLISTUPDATER_H +#define STARTUPLISTUPDATER_H + +#include // CBase +#include // RFs +#include // RDscStore + +namespace Swi + { + class RSisRegistryEntry; + } + +class CStartupListUpdater : public CBase + { +public: // constructor and destructor + static CStartupListUpdater* NewL(); + ~CStartupListUpdater(); + +public: // new functions + void UpdateStartupListL(); + +private: // new functions + CStartupListUpdater(); + void ConstructL(); + const TDesC& PrivateImportPathL(); + void ProcessImportsAndUninstallsL(); + void OpenDscStoreLC( RDscStore& aDscStore ); + void ImportNewResourceFilesL( RDscStore& aDscStore ); + void DeregisterUninstalledAppsL( RDscStore& aDscStore ); + void GetDataToBeImportedL( RPointerArray& aExecutableArray, + RPointerArray& aResourceFileArray ); + void ImportExecutablesL( RDscStore& aDscStore, RPointerArray& aExecutableArray ); + void RemoveImportedResourceFiles( RPointerArray& aResourceFileArray ); + void AppendExecutablesFromResourceFileL( const TDesC& aResourceFile, + RPointerArray& aExecutableArray ); + TBool IsValidExecutableForStartupL( const TDesC& aResourceFile, + const TDesC& aExecutableName ); + void GetInstalledAppsL( RPointerArray& aInstalledExecutableArray ); + void GetStartupListAppsL( RDscStore& aDscStore, + RPointerArray& aStartedExecutableArray ); + void StartedButNotInstalledAppsL( RPointerArray& aStartedExecutableArray, + RPointerArray& aInstalledExecutableArray, + RPointerArray& aStartedButNotInstalledExecutableArray ); + void RemoveFromStartupListL( RDscStore& aDscStore, RPointerArray& aExecutableArray ); + void GetExecutablesFromEntryL( Swi::RSisRegistryEntry& aEntry, + RPointerArray& aExecutableArray ); + +private: // new data + RFs iFs; + HBufC* iPrivateImportPath; + }; + +#endif // STARTUPLISTUPDATER_H +