diff -r 000000000000 -r 667063e416a2 locationtriggering/ltclientlib/src/lbtlistoptions.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locationtriggering/ltclientlib/src/lbtlistoptions.cpp Tue Feb 02 01:06:48 2010 +0200 @@ -0,0 +1,120 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of helper class used when listing +* entries from location triggering server. +* +*/ + + +#include "lbtlistoptions.h" +// --------------------------------------------------------------------------- +// CLbtListTriggerOptions::NewL() +// +// (other items were commented in a header). +// --------------------------------------------------------------------------- +// +EXPORT_C CLbtListTriggerOptions* CLbtListTriggerOptions::NewL() + { + CLbtListTriggerOptions* self = new( ELeave ) CLbtListTriggerOptions; + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + void CLbtListTriggerOptions::ConstructL() + { + + + } + +// --------------------------------------------------------------------------- +// CLbtListTriggerOptions::GetRetrievedFields( +// TLbtTriggerAttributeFieldsMask &aEntryMask, +// TLbtTriggerDynamicInfoFieldsMask &aDynInfoMask ) +// +// (other items were commented in a header). +// --------------------------------------------------------------------------- +// + EXPORT_C void CLbtListTriggerOptions::GetRetrievedFields( + TLbtTriggerAttributeFieldsMask &aEntryMask, + TLbtTriggerDynamicInfoFieldsMask &aDynInfoMask ) const + +{ +aDynInfoMask=iDynInfoFieldsMask; +aEntryMask=iTriigerAttributeFieldsMask; +} +// --------------------------------------------------------------------------- +// CLbtListTriggerOptions::SetRetrievedFields( +// TLbtTriggerAttributeFieldsMask aEntryMask, +// TLbtTriggerDynamicInfoFieldsMask aDynInfoMask = KLbtTriggerDynInfoFieldsAll ) +// +// (other items were commented in a header). +// --------------------------------------------------------------------------- +// + +EXPORT_C void CLbtListTriggerOptions::SetRetrievedFields( + TLbtTriggerAttributeFieldsMask aEntryMask, /* check if the default param has to be mentioned here*/ + TLbtTriggerDynamicInfoFieldsMask aDynInfoMask ) +{ +iTriigerAttributeFieldsMask=aEntryMask; +iDynInfoFieldsMask=aDynInfoMask; +} +// --------------------------------------------------------------------------- +// CLbtListTriggerOptions::SortingOption() +// +// (other items were commented in a header). +// --------------------------------------------------------------------------- +// +EXPORT_C CLbtListTriggerOptions::TLbtListTriggerSorting CLbtListTriggerOptions::SortingOption() const +{ +return iSorting; +} +// --------------------------------------------------------------------------- +// CLbtListTriggerOptions::SetSortingOption() +// +// (other items were commented in a header). +// --------------------------------------------------------------------------- +// +EXPORT_C void CLbtListTriggerOptions::SetSortingOption( TLbtListTriggerSorting aOption ) +{ +iSorting=aOption; +} + +// --------------------------------------------------------------------------- +// CLbtListTriggerOptions::SetFilterL( CLbtTriggerFilterBase* aFilter ) +// +// (other items were commented in a header). +// --------------------------------------------------------------------------- +// +EXPORT_C void CLbtListTriggerOptions::SetFilterL( + CLbtTriggerFilterBase* aFilter ) +{ + iFilter=aFilter; +} +// --------------------------------------------------------------------------- +// CLbtListTriggerOptions::Filter( ) +// +// (other items were commented in a header). +// --------------------------------------------------------------------------- +// +EXPORT_C CLbtTriggerFilterBase* CLbtListTriggerOptions:: Filter() +{ + return iFilter; +} + +CLbtListTriggerOptions::CLbtListTriggerOptions() +{ + +} +