iaupdate/IAD/engine/inc/iaupdaterestartinfo.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   CIAUpdateRestartInfo
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IA_UPDATE_RESTART_INFO_H
       
    21 #define IA_UPDATE_RESTART_INFO_H
       
    22 
       
    23 
       
    24 #include "e32base.h"
       
    25 
       
    26 class CIAUpdaterResultsFile;
       
    27 class CIAUpdatePendingNodesFile;
       
    28 
       
    29 /**
       
    30  *
       
    31  *
       
    32  * @since S60 v3.2
       
    33  */
       
    34 class CIAUpdateRestartInfo : public CBase
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     IMPORT_C static CIAUpdateRestartInfo* NewL();
       
    40     IMPORT_C static CIAUpdateRestartInfo* NewLC();
       
    41 
       
    42     IMPORT_C virtual ~CIAUpdateRestartInfo();
       
    43 
       
    44     /**
       
    45      * Deletes files.
       
    46      * 
       
    47      * @note That even if the files are deleted, the class objects are still
       
    48      * available until this class object is deleted.
       
    49      *
       
    50      * @since S60 v3.2
       
    51      */
       
    52     IMPORT_C void DeleteFiles();
       
    53 
       
    54     IMPORT_C CIAUpdatePendingNodesFile& PendingNodesFile();
       
    55     
       
    56     IMPORT_C CIAUpdaterResultsFile& ResultsFile();
       
    57 
       
    58 
       
    59 private:
       
    60 
       
    61     // Prevent these if not implemented
       
    62     CIAUpdateRestartInfo( const CIAUpdateRestartInfo& aObject );
       
    63     CIAUpdateRestartInfo& operator =( const CIAUpdateRestartInfo& aObject );
       
    64 
       
    65     CIAUpdateRestartInfo();
       
    66     void ConstructL();
       
    67     
       
    68 
       
    69 private: // data
       
    70 
       
    71     // Contains the UIDs of the nodes that have been
       
    72     // set as pending.
       
    73     CIAUpdatePendingNodesFile* iPendingNodesFile;
       
    74     
       
    75     // Gives the results of the updater actions.
       
    76     CIAUpdaterResultsFile* iResultsFile;
       
    77     
       
    78     };
       
    79 		
       
    80 #endif // IA_UPDATE_RESTART_INFO_H