phonebookengines/contactsmodel/cntplsql/src/clplcontactproperties.cpp
changeset 24 0ba2181d7c28
parent 0 e686773b3f54
child 31 2a11b5b00470
equal deleted inserted replaced
0:e686773b3f54 24:0ba2181d7c28
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 /*
     2 // All rights reserved.
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // This component and the accompanying materials are made available
     3 * All rights reserved.
     4 // under the terms of "Eclipse Public License v1.0"
     4 * This component and the accompanying materials are made available
     5 // which accompanies this distribution, and is available
     5 * under the terms of "Eclipse Public License v1.0"
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 * which accompanies this distribution, and is available
     7 //
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 // Initial Contributors:
     8 *
     9 // Nokia Corporation - initial contribution.
     9 * Initial Contributors:
    10 //
    10 * Nokia Corporation - initial contribution.
    11 // Contributors:
    11 *
    12 //
    12 * Contributors:
    13 // Description:
    13 *
    14 //
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
    15 
    18 
    16 /**
    19 /**
    17  @file
    20  @file
    18  @internalComponent
    21  @internalComponent
    19  @released
    22  @released
    20 */
    23 */
    21 
    24 
    22 
    25 
    23 #include <barsc.h> // For resource reading.
    26 #include <barsc.h> // for resource reading.
    24 #include <bautils.h>
    27 #include <bautils.h>
    25 #include <cntmodel.rsg> // For System template resources.
    28 #include <cntmodel.rsg> // for system template resources.
    26 #include <phbksync.h> // For KUidIccGlobalAdnPhonebook.
    29 #include <phbksync.h> // for kuidiccglobaladnphonebook.
    27 
       
    28 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    29 #include "cntsyncecom.h"
       
    30 #endif
       
    31 
    30 
    32 #include "persistencelayerimpl.h"
    31 #include "persistencelayerimpl.h"
    33 #include "clplcontactproperties.h" 
    32 #include "clplcontactproperties.h" 
    34 #include "plplugins.h"
    33 #include "plplugins.h"
    35 
    34 
    51 		iSyncPlugin = NULL;
    50 		iSyncPlugin = NULL;
    52 		}
    51 		}
    53 	delete iSyncDummy;
    52 	delete iSyncDummy;
    54 	delete iSystemTemplate;
    53 	delete iSystemTemplate;
    55 	delete iGroupIdList;
    54 	delete iGroupIdList;
       
    55 
    56 	}
    56 	}
    57 
    57 
    58 
    58 
    59 void CLplContactProperties::SetContactItemManagerL(CPplContactItemManager& aContactItemManager)
    59 void CLplContactProperties::SetContactItemManagerL(CPplContactItemManager& aContactItemManager)
    60 	{
    60 	{
   174 	iGroupIdList = NULL;
   174 	iGroupIdList = NULL;
   175 	iGroupIdList = iContactItemManager->GroupIdListL();
   175 	iGroupIdList = iContactItemManager->GroupIdListL();
   176 	return *iGroupIdList;
   176 	return *iGroupIdList;
   177 	}	
   177 	}	
   178 
   178 
       
   179 
       
   180 CContactIdArray* CLplContactProperties::SearchIdListL(const TDesC& aSearchQuery) const 
       
   181     {
       
   182 	return iContactItemManager->SearchIdListL(aSearchQuery);
       
   183 
       
   184     }   
   179 
   185 
   180 TInt64 CLplContactProperties::MachineIdL() const
   186 TInt64 CLplContactProperties::MachineIdL() const
   181 	{
   187 	{
   182 	return iContactItemManager->PreferencesPersitor().MachineIdL();
   188 	return iContactItemManager->PreferencesPersitor().MachineIdL();
   183 	}
   189 	}