appinstaller/AppinstUi/Plugin/Tasks/LogTask/Inc/LogTask.h
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   This file contains the header file of the CLogTask 
       
    15 *                class.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef LOGTASK_H
       
    21 #define LOGTASK_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <SWInstTask.h>
       
    26 #include <SWInstLogTaskParam.h>
       
    27 
       
    28 namespace SwiUI
       
    29 {
       
    30 
       
    31 /**
       
    32 * Base abstract class for startup list operations.
       
    33 *
       
    34 * @since 3.0
       
    35 */
       
    36 class CLogTask : public CTask
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39         
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         */
       
    43         static CLogTask* NewL();
       
    44 
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         virtual ~CLogTask();
       
    49 
       
    50     public: // Functions from base classes
       
    51         
       
    52         /**
       
    53         * From CTask, Executes the task.
       
    54         * @since 3.0
       
    55         */
       
    56         void ExecuteL();       
       
    57 
       
    58         /**
       
    59         * From CTask, Adds a parameter to the task.
       
    60         * @since 3.0
       
    61         * @param aParam - Packaged paramter to set.
       
    62         * @param aIndex - Index of the parameter.
       
    63         */
       
    64         void SetParameterL( const TDesC8& aParam, TInt aIndex );
       
    65                 
       
    66      protected: // Functions from base classes.
       
    67 
       
    68         /**
       
    69         * From CTask, Externalizes the task.
       
    70         * @since 3.0
       
    71         * @param aStream - The stream where to externalize.
       
    72         */      
       
    73         void DoExternalizeL( RWriteStream& aStream ) const;
       
    74 
       
    75         /**
       
    76         * From CTask, Internalizes the task.
       
    77         * @since 3.0
       
    78         * @param aStream - The stream where to internalize.
       
    79         */      
       
    80         void DoInternalizeL( RReadStream & aStream ); 
       
    81 
       
    82    private: // New functions
       
    83       
       
    84         /**
       
    85         * Constructor.
       
    86         */  
       
    87         CLogTask();
       
    88 
       
    89         /**
       
    90         * Constructs a version string..
       
    91         * @since 3.0
       
    92         * @param aMajor - Major version number.
       
    93         * @param aMinor - Minor version number.
       
    94         * @return Created descriptor containing the version string.
       
    95         */      
       
    96         HBufC* ConstructVersionStringLC( TInt aMajor, TInt aMinor, TInt aBuild );  
       
    97 
       
    98         /**
       
    99         * Helper to executes the task.
       
   100         * @since 3.0
       
   101         */
       
   102         void DoExecuteL();        
       
   103    
       
   104     private: // Data
       
   105 
       
   106         TLogTaskParam iLogEntry;        
       
   107     };
       
   108 }
       
   109 
       
   110 #endif      // LOGTASK_H   
       
   111             
       
   112 // End of File