inc/mdcresult.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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:  common item result definitions for MdE
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MDCRESULT_H__
       
    19 #define __MDCRESULT_H__
       
    20 
       
    21 #include "mdscommoninternal.h"
       
    22 #include "mdcserializationtype.h"
       
    23 
       
    24 NONSHARABLE_CLASS(TMdCItems) : public TMdCSerializationType
       
    25 	{
       
    26 	public:
       
    27 		IMPORT_C TMdCItems();
       
    28 
       
    29 		IMPORT_C static const TMdCItems& GetFromBufferL( CMdCSerializationBuffer& aBuffer );
       
    30 		IMPORT_C void SerializeL(CMdCSerializationBuffer& aBuffer);
       
    31 		IMPORT_C void DeserializeL(CMdCSerializationBuffer& aBuffer);
       
    32 
       
    33 	public:
       
    34 		TDefId iNamespaceDefId;
       
    35 		TInt32 iErrorCode;
       
    36 		TMdCValueUnion iObjects;
       
    37 		TMdCValueUnion iRelations;
       
    38 		TMdCValueUnion iEvents;
       
    39 	};
       
    40 
       
    41 NONSHARABLE_CLASS(TMdCItemIds) : public TMdCSerializationType
       
    42 	{
       
    43 	public:
       
    44 		IMPORT_C TMdCItemIds();
       
    45 
       
    46 		IMPORT_C static const TMdCItemIds& GetFromBufferL( CMdCSerializationBuffer& aBuffer );
       
    47 		IMPORT_C void SerializeL(CMdCSerializationBuffer& aBuffer);
       
    48 		IMPORT_C void DeserializeL(CMdCSerializationBuffer& aBuffer);
       
    49 
       
    50 	public:
       
    51 		TDefId iNamespaceDefId;
       
    52 		TInt32 iErrorCode;
       
    53 		TMdCValueUnion iObjectIds;
       
    54 		TMdCValueUnion iObjectUris;
       
    55 		TMdCValueUnion iRelationIds;
       
    56 		TMdCValueUnion iEventIds;
       
    57 	};
       
    58 
       
    59 NONSHARABLE_CLASS(TMdCItemCounts) : public TMdCSerializationType
       
    60 	{
       
    61 	public:
       
    62 		IMPORT_C TMdCItemCounts();
       
    63 
       
    64 		IMPORT_C static const TMdCItemCounts& GetFromBufferL( CMdCSerializationBuffer& aBuffer );
       
    65 		IMPORT_C void SerializeL(CMdCSerializationBuffer& aBuffer);
       
    66 		IMPORT_C void DeserializeL(CMdCSerializationBuffer& aBuffer);
       
    67 
       
    68 	public:
       
    69 		TDefId iNamespaceDefId;
       
    70 		TInt32 iObjects;
       
    71 		TInt32 iRelations;
       
    72 		TInt32 iEvents;
       
    73 	};
       
    74 
       
    75 	
       
    76 #endif /*__MDCRESULT_H__*/