omads/omadsappui/AspSyncUtil/src/AspProfile.cpp
branchRCL_3
changeset 11 3f1ffafb31ec
parent 10 b922b9936679
child 14 2bbcc0756c6d
equal deleted inserted replaced
10:b922b9936679 11:3f1ffafb31ec
    20 // INCLUDES
    20 // INCLUDES
    21 
    21 
    22 #include <SyncMLTransportProperties.h>
    22 #include <SyncMLTransportProperties.h>
    23 #include <featmgr.h>   // FeatureManager
    23 #include <featmgr.h>   // FeatureManager
    24 #include <centralrepository.h> // CRepository
    24 #include <centralrepository.h> // CRepository
    25 #include <NSmlOperatorDataCRKeys.h> // KCRUidOperatorDatasyncInternalKeys
    25 #include <NsmlOperatorDataCRKeys.h> // KCRUidOperatorDatasyncInternalKeys
    26 
    26 
    27 #include <calsession.h>
    27 #include <calsession.h>
    28 #include <calcalendarinfo.h>
    28 #include <calcalendarinfo.h>
    29 #include <e32math.h>
    29 #include <e32math.h>
    30 #include <gdi.h>
    30 #include <gdi.h>
    32 #include "AspProfile.h"
    32 #include "AspProfile.h"
    33 #include "AspResHandler.h"
    33 #include "AspResHandler.h"
    34 #include "AspDialogUtil.h"
    34 #include "AspDialogUtil.h"
    35 #include "AspDebug.h"
    35 #include "AspDebug.h"
    36 #include "AspSchedule.h"
    36 #include "AspSchedule.h"
       
    37 #include "AspDefines.h"
    37 #include <centralrepository.h> //CRepository
    38 #include <centralrepository.h> //CRepository
    38 #include <calenmulticaluids.hrh> // Calendar File Meta Data Properties
    39 #include <calenmulticaluids.hrh> // Calendar File Meta Data Properties
    39 #include <calenmulticalutil.h>
    40 #include <calenmulticalutil.h>
    40 #include <CalenInterimUtils2.h>
    41 #include <CalenInterimUtils2.h>
    41 
    42 
   426 			{
   427 			{
   427     		CleanupClosePushL(provider);
   428     		CleanupClosePushL(provider);
   428 
   429 
   429 	    	TAspProviderItem item;
   430 	    	TAspProviderItem item;
   430 		    ReadDataProviderItemL(provider, item);
   431 		    ReadDataProviderItemL(provider, item);
       
   432 		    if( (item.iDataProviderId == KUidNsmlAdapterCntGrps.iUid) ||
       
   433 		             (item.iDataProviderId == KUidNSmlAdapterSms.iUid) || 
       
   434 		             (item.iDataProviderId == KUidNSmlAdapterMMS.iUid) ||
       
   435 		             (item.iDataProviderId == KUidNsmlAdapterMedia.iUid))
       
   436 		        {
       
   437 		          CleanupStack::PopAndDestroy(&provider);
       
   438 		          continue;
       
   439 		        }
   431             item.iIsIncludedInSync = EFalse;
   440             item.iIsIncludedInSync = EFalse;
   432 		    
   441 		    
   433 		    if (TUtil::IsEmpty(item.iDisplayName))
   442 		    if (TUtil::IsEmpty(item.iDisplayName))
   434 		    	{
   443 		    	{
   435 		    	// providers must have display name
   444 		    	// providers must have display name