ncdengine/provider/client/inc/ncdexpirednode.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 C_NCDEXPIREDNODE_H
       
    20 #define C_NCDEXPIREDNODE_H
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 #include "ncdsendable.h"
       
    25 #include "ncdnodeidentifier.h"
       
    26 
       
    27 /**
       
    28  * Data structure for expired node info.
       
    29  */
       
    30 class CNcdExpiredNode : public CBase, public MNcdSendable
       
    31     {        
       
    32 
       
    33 public:
       
    34 
       
    35 
       
    36     static CNcdExpiredNode* NewL( RReadStream& aReadStream );
       
    37     
       
    38     static CNcdExpiredNode* NewLC( RReadStream& aReadStream );
       
    39     
       
    40     static CNcdExpiredNode* NewL( const CNcdNodeIdentifier& aNodeIdentifier,
       
    41         TBool aForceUpdate );
       
    42         
       
    43     static CNcdExpiredNode* NewLC( const CNcdNodeIdentifier& aNodeIdentifier,
       
    44         TBool aForceUpdate );
       
    45         
       
    46     static CNcdExpiredNode* NewL( const CNcdExpiredNode& aExpiredNode );
       
    47     
       
    48     static CNcdExpiredNode* NewLC( const CNcdExpiredNode& aExpiredNode );
       
    49 
       
    50     /**
       
    51      * Destructor.
       
    52      */
       
    53     virtual ~CNcdExpiredNode();
       
    54     
       
    55     /**     
       
    56      * Internalizes member data from a read stream.
       
    57      *
       
    58      * @param aStream A read stream.
       
    59      */
       
    60     virtual void InternalizeL( RReadStream& aStream );
       
    61     
       
    62     /**
       
    63      * Externalizes member data to a write stream.
       
    64      *
       
    65      * @param aStream A write stream.
       
    66      */	    
       
    67     virtual void ExternalizeL( RWriteStream& aStream ) const;
       
    68 
       
    69     const CNcdNodeIdentifier& NodeIdentifier() const;
       
    70     
       
    71     TBool ForceUpdate() const;
       
    72 
       
    73 private:
       
    74     
       
    75     CNcdExpiredNode( TBool aForceUpdate );
       
    76     void ConstructL( const CNcdNodeIdentifier& aNodeIdentifier );
       
    77 
       
    78 private:
       
    79 
       
    80     CNcdNodeIdentifier* iNodeIdentifier;
       
    81     TBool iForceUpdate;
       
    82     
       
    83     };
       
    84 	
       
    85 #endif //  C_NCDEXPIREDNODE_H