serviceproviders/sapi_contacts_vpbk/contactservice/src/singlecontactfield.cpp
branchRCL_3
changeset 44 0b68a1b0c15e
parent 39 1aa6688bfd6b
child 45 a9c0808a1095
equal deleted inserted replaced
43:1790c2f1027c 44:0b68a1b0c15e
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #include <MVPbkFieldType.h>
    19 #include <MVPbkFieldType.h>
    20 #include <MVPbkContactFieldTextData.h>
    20 #include <MVPbkContactFieldTextData.h>
    21 #include <mmfcontrollerpluginresolver.h>
    21 
    22 #include "singlecontact.h"
    22 #include "singlecontact.h"
    23 #include "singlecontactfield.h"
    23 #include "singlecontactfield.h"
    24 
    24 
    25 /*
    25 /*
    26 -----------------------------------------------------------------------------
    26 -----------------------------------------------------------------------------
   141     iidArray = aValue;
   141     iidArray = aValue;
   142     }
   142     }
   143 
   143 
   144 EXPORT_C void CSingleContactField::GetUriFieldParamL(RPointerArray<HBufC>& axspidArray)
   144 EXPORT_C void CSingleContactField::GetUriFieldParamL(RPointerArray<HBufC>& axspidArray)
   145     {
   145     {
   146     CleanupResetAndDestroyPushL(axspidArray);
       
   147     TInt count = iidArray.Count();
   146     TInt count = iidArray.Count();
   148     if(count != 0)
   147     if(count != 0)
   149             {
   148             {
   150            
   149            
   151             for(TInt i=0;i<count;i++)
   150             for(TInt i=0;i<count;i++)
   154             }
   153             }
   155             }
   154             }
   156         else
   155         else
   157             {
   156             {
   158             User::Leave(KErrNotFound);    
   157             User::Leave(KErrNotFound);    
   159             }   
   158             }       
   160     CleanupStack::Pop(&axspidArray);     
       
   161 	}
   159 	}
   162 
   160 
   163 //Gets the Group Data and returns them as output parameters
   161 //Gets the Group Data and returns them as output parameters
   164 /*
   162 /*
   165 -----------------------------------------------------------------------------
   163 -----------------------------------------------------------------------------
   233     }
   231     }
   234 
   232 
   235 
   233 
   236 EXPORT_C void CSingleContactField::GetXspidDataL(RPointerArray<HBufC>& axspidArray)
   234 EXPORT_C void CSingleContactField::GetXspidDataL(RPointerArray<HBufC>& axspidArray)
   237     {
   235     {
   238     CleanupResetAndDestroyPushL(axspidArray);
       
   239     TInt count = iArrayValue.Count();
   236     TInt count = iArrayValue.Count();
   240     if(count != 0)
   237     if(count != 0)
   241             {
   238             {
   242            
   239            
   243             for(TInt i=0;i<count;i++)
   240             for(TInt i=0;i<count;i++)
   248             }
   245             }
   249             }
   246             }
   250         else
   247         else
   251             {
   248             {
   252             User::Leave(KErrNotFound);    
   249             User::Leave(KErrNotFound);    
   253             } 
   250             }       
   254     CleanupStack::Pop(&axspidArray);       
       
   255     }
   251     }
   256 CSingleContactField::~CSingleContactField()
   252 CSingleContactField::~CSingleContactField()
   257     {
   253     {
   258     delete iFieldKey;
   254     delete iFieldKey;
   259     delete iLabel;
   255     delete iLabel;