locationtriggering/ltclientlib/src/lbtlistoptions.cpp
author hgs
Mon, 27 Sep 2010 16:57:22 +0530
changeset 50 4c28d569e1fe
parent 0 667063e416a2
permissions -rw-r--r--
201037_001

/*
* 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()
{
	
}