ncdengine/provider/client/inc/ncdsendable.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:   ?Description
       
    15 *
       
    16 */
       
    17 	
       
    18 
       
    19 #ifndef M_NCDSENDABLE_H
       
    20 #define M_NCDSENDABLE_H
       
    21 
       
    22 class RReadStream;
       
    23 class RWriteStream;
       
    24 
       
    25 /**
       
    26  *  Interface for sendable objects.
       
    27  * 
       
    28  *  Used for objects that are sent over the client/server boundary.
       
    29  */
       
    30 class MNcdSendable
       
    31     {        
       
    32 
       
    33 public:
       
    34 
       
    35     /**     
       
    36      * Internalizes member data from a read stream.
       
    37      *
       
    38      * @param aStream A read stream.
       
    39      */
       
    40     virtual void InternalizeL( RReadStream& aStream ) = 0;
       
    41     
       
    42     /**
       
    43      * Externalizes member data to a write stream.
       
    44      *
       
    45      * @param aStream A write stream.
       
    46      */	    
       
    47     virtual void ExternalizeL( RWriteStream& aStream ) const = 0;
       
    48     
       
    49     };
       
    50 	
       
    51 #endif //  M_NCDSENDABLE_H