mtpfws/mtpfw/inc/ruidmapper.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2008-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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 #ifndef RUIDMAPPER_H
       
    21 #define RUIDMAPPER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 
       
    27 /** 
       
    28 Uitlity class for Getting the transport id from the Resource file corresponding to the Data provider UID.
       
    29 
       
    30 @internalComponent
       
    31  
       
    32 */
       
    33 struct MappingStruct
       
    34 	{
       
    35 	TUint dpUid;
       
    36 	RArray<TUint> iTransportUidList;
       
    37 	};
       
    38 
       
    39 class RUidMapping
       
    40 	{
       
    41 public:	
       
    42 	RUidMapping();
       
    43 	void Open();
       
    44 	void Close();
       
    45 	TBool GetSupportedTransport(const TUint& aDPUid,const TUint& aTransportUid);
       
    46 	void ReadFromResourceFileL();
       
    47 private:
       
    48 	void InsertToMappingStruct(MappingStruct& aRef);
       
    49 private:
       
    50 	
       
    51 	RArray<MappingStruct> iMappingStruct;
       
    52 	 	
       
    53 	};
       
    54 	
       
    55 #endif