commsfwsupport/commselements/Helpers/inc/h_structures.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // TRbuf.h
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21 */
       
    22 
       
    23 #if (!defined H_STRUCTURES_H)
       
    24 #define H_STRUCTURES_H
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 namespace Elements
       
    29 {
       
    30 
       
    31 class TStateChange
       
    32 /**
       
    33 @internalTechnology
       
    34 */
       
    35 	{
       
    36 public:
       
    37 	inline TStateChange()
       
    38 	:	iStage(0), iError(0)
       
    39 		{
       
    40 		}
       
    41 	inline TStateChange(TInt aStage, TInt aError)
       
    42 	:	iStage(aStage), iError(aError)
       
    43 		{
       
    44 		}
       
    45 
       
    46 	inline TBool operator==(const TStateChange& aRHS) const
       
    47 		{
       
    48 		return (iStage == aRHS.iStage && iError == aRHS.iError);
       
    49 		}
       
    50 
       
    51 	TInt iStage;
       
    52 	TInt iError;
       
    53 	};
       
    54 
       
    55 } //namespace Elements
       
    56 
       
    57 
       
    58 #endif //H_STRUCTURES_H
       
    59 
       
    60