iaupdate/IAD/engine/inc/iaupdaterestartinfo.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 15:05:20 +0300
changeset 25 98b66e4fb0be
parent 0 ba25891c3a9e
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* Copyright (c) 2007-2007 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:   CIAUpdateRestartInfo
*
*/



#ifndef IA_UPDATE_RESTART_INFO_H
#define IA_UPDATE_RESTART_INFO_H


#include "e32base.h"

class CIAUpdaterResultsFile;
class CIAUpdatePendingNodesFile;

/**
 *
 *
 * @since S60 v3.2
 */
class CIAUpdateRestartInfo : public CBase
    {

public:

    IMPORT_C static CIAUpdateRestartInfo* NewL();
    IMPORT_C static CIAUpdateRestartInfo* NewLC();

    IMPORT_C virtual ~CIAUpdateRestartInfo();

    /**
     * Deletes files.
     * 
     * @note That even if the files are deleted, the class objects are still
     * available until this class object is deleted.
     *
     * @since S60 v3.2
     */
    IMPORT_C void DeleteFiles();

    IMPORT_C CIAUpdatePendingNodesFile& PendingNodesFile();
    
    IMPORT_C CIAUpdaterResultsFile& ResultsFile();


private:

    // Prevent these if not implemented
    CIAUpdateRestartInfo( const CIAUpdateRestartInfo& aObject );
    CIAUpdateRestartInfo& operator =( const CIAUpdateRestartInfo& aObject );

    CIAUpdateRestartInfo();
    void ConstructL();
    

private: // data

    // Contains the UIDs of the nodes that have been
    // set as pending.
    CIAUpdatePendingNodesFile* iPendingNodesFile;
    
    // Gives the results of the updater actions.
    CIAUpdaterResultsFile* iResultsFile;
    
    };
		
#endif // IA_UPDATE_RESTART_INFO_H