appinstaller/AppinstUi/startuplistupdater/inc/startuplistupdater.h
author Pat Downey <patd@symbian.org>
Tue, 18 May 2010 13:42:18 +0100
changeset 35 4a49a8c90306
parent 33 8110bf1194d1
child 37 6e7b00453237
permissions -rw-r--r--
Merge docml changeset, iby creation mods and sqlite_secure (bug 2548).

/*
* 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 <e32base.h>                    // CBase
#include <f32file.h>                    // RFs
#include <dscstore.h>                   // 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<HBufC>& aExecutableArray,
            RPointerArray<HBufC>& aResourceFileArray );
    void ImportExecutablesL( RDscStore& aDscStore, RPointerArray<HBufC>& aExecutableArray );
    void RemoveImportedResourceFiles( RPointerArray<HBufC>& aResourceFileArray );
    void AppendExecutablesFromResourceFileL( const TDesC& aResourceFile,
            RPointerArray<HBufC>& aExecutableArray );
    void GetInstalledAppsL( RPointerArray<HBufC>& aInstalledExecutableArray );
    void GetStartupListAppsL( RDscStore& aDscStore,
            RPointerArray<HBufC>& aStartedExecutableArray );
    void StartedButNotInstalledAppsL( RPointerArray<HBufC>& aStartedExecutableArray,
            RPointerArray<HBufC>& aInstalledExecutableArray,
            RPointerArray<HBufC>& aStartedButNotInstalledExecutableArray );
    void RemoveFromStartupListL( RDscStore& aDscStore, RPointerArray<HBufC>& aExecutableArray );
    void GetExecutablesFromEntryL( Swi::RSisRegistryEntry& aEntry,
            RPointerArray<HBufC>& aExecutableArray );

private:    // new data
    RFs iFs;
    HBufC* iPrivateImportPath;
    };

#endif  // STARTUPLISTUPDATER_H