diff -r 000000000000 -r 4e949f03ecc5 locationtriggering/ltcontainer/inc/lbtcreateasyncoperation.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locationtriggering/ltcontainer/inc/lbtcreateasyncoperation.h Wed Nov 03 23:28:39 2010 +0530 @@ -0,0 +1,86 @@ +/* +* Copyright (c) 2006 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: Abstract base class for location triggering entries +* +*/ + + +#ifndef C_LBT_CREATE_ASYNCOPERATION_H +#define C_LBT_CREATE_ASYNCOPERATION_H + + +#include +#include + +#include "lbtcontainertriggerentry.h" +#include "lbtcontainerAOOperation.h" + + + +/* This is the class used hold the data sent by the client in case of + * asynchronous operations */ + +NONSHARABLE_CLASS( CLbtCreateAsyncOperation ) : public CLbtContainerAOOperation + { +public: + + + + /** + * Constructs a new instance of container trigger entry object. + * + * @return The new instance of the container trigger entry object. + */ + static CLbtCreateAsyncOperation* NewL(CLbtContainerTriggerEntry* aEntry,TRequestStatus& aClientStatus); + + + + virtual void StartAOOperationL(MLbtTriggerStore* aStore,TRequestStatus &aStatus) ; + + virtual TRequestStatus* GetStatus(); + + TInt GetArrayCount(); + void GetTriggerList(RPointerArray* aTriggers); + /** + * Destructor + */ + virtual ~CLbtCreateAsyncOperation(); + + + const CLbtContainerTriggerEntry* ContainerTriggerEntry(); + + +private: + /** + * Constructor. + */ + CLbtCreateAsyncOperation(); + + void ConstructL(CLbtContainerTriggerEntry* aEntry,TRequestStatus& aClientStatus); + + TContainerAOOperation GetAOOperationType(); + +private: + // Pointer to the trigger which has to be created. Pointer just contains + // pointer to the trigger and does not own it. It should not delete it + CLbtContainerTriggerEntry* iEntry; + + TRequestStatus* iClientStatus; + + + + }; + + +#endif // C_LBT_LIST_ASYNCOPERATION_H