ncdengine/provider/server/inc/ncdsendableprogress.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006 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:  
       
    15 *
       
    16 */
       
    17 	
       
    18 
       
    19 #ifndef T_NCDSENDABLEPROGRESS_H
       
    20 #define T_NCDSENDABLEPROGRESS_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "ncdsendable.h"
       
    25 #include "ncdprogress.h"
       
    26 
       
    27 /**
       
    28 * Operation progress information
       
    29 */
       
    30 class TNcdSendableProgress	: //public TNcdProgress,
       
    31                               public MNcdSendable
       
    32     {
       
    33     public:
       
    34         
       
    35         TNcdSendableProgress();
       
    36         
       
    37         TNcdSendableProgress( TUint aState, TInt32 aOperationId,
       
    38             TInt32 aProgress, 
       
    39             TInt32 aMaxProgress );
       
    40             
       
    41 // from base class MNcdSendable
       
    42 
       
    43 	    /**
       
    44 	     * From MNcdSendable
       
    45          * Internalizes member data from a read stream.
       
    46          *
       
    47          * @param aStream A read stream.
       
    48          */
       
    49 	    void InternalizeL( RReadStream& aStream );
       
    50 	    
       
    51 	    /**
       
    52 	     * From MNcdSendable
       
    53          * Externalizes member data to a write stream.
       
    54          *
       
    55          * @param aStream A write stream.
       
    56          */	    
       
    57 	    void ExternalizeL( RWriteStream& aStream ) const ;
       
    58 	    
       
    59 	    /**
       
    60 	     * From MNcdSendable
       
    61          * Size of the object in bytes.
       
    62          * @return Size in bytes.
       
    63          */
       
    64         TInt Size() const;
       
    65 	
       
    66     public:
       
    67         TUint iState;         // State of the operation
       
    68         TInt32 iOperationId;    // Unique id for the operation
       
    69         TInt32 iProgress;     // Progress of the current state
       
    70         TInt32 iMaxProgress;  // Maximum progress value for the current state
       
    71     };
       
    72 
       
    73 #endif //  T_NCDSENDABLEPROGRESS_H