locationtriggering/ltcontainer/inc/lbtcreateasyncoperation.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Abstract base class for location triggering entries
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_LBT_CREATE_ASYNCOPERATION_H
       
    20 #define C_LBT_CREATE_ASYNCOPERATION_H
       
    21 
       
    22 
       
    23 #include <lbtcommon.h>
       
    24 #include <lbttriggerdynamicinfo.h>
       
    25 
       
    26 #include "lbtcontainertriggerentry.h"
       
    27 #include "lbtcontainerAOOperation.h"
       
    28    
       
    29 
       
    30        	
       
    31 /* This is the  class used hold the data sent by the client in case of 
       
    32  * asynchronous operations */
       
    33        	
       
    34 NONSHARABLE_CLASS( CLbtCreateAsyncOperation ) : public CLbtContainerAOOperation
       
    35     {
       
    36 public:
       
    37   
       
    38     
       
    39         
       
    40      /**
       
    41      * Constructs a new instance of container trigger entry object.
       
    42      *
       
    43      * @return The new instance of the container trigger entry object.
       
    44      */
       
    45      static CLbtCreateAsyncOperation* NewL(CLbtContainerTriggerEntry* aEntry,TRequestStatus& aClientStatus);
       
    46     
       
    47     
       
    48         
       
    49      virtual void StartAOOperationL(MLbtTriggerStore* aStore,TRequestStatus &aStatus) ;
       
    50     
       
    51      virtual TRequestStatus* GetStatus();
       
    52     
       
    53      TInt GetArrayCount();
       
    54      void GetTriggerList(RPointerArray<CLbtContainerTriggerEntry>* aTriggers);
       
    55     /**
       
    56      * Destructor
       
    57      */
       
    58      virtual ~CLbtCreateAsyncOperation();
       
    59 
       
    60   
       
    61      const CLbtContainerTriggerEntry* ContainerTriggerEntry();
       
    62          
       
    63 	
       
    64 private:
       
    65     /**
       
    66      * Constructor.
       
    67      */
       
    68  	  CLbtCreateAsyncOperation();
       
    69                     
       
    70       void ConstructL(CLbtContainerTriggerEntry* aEntry,TRequestStatus& aClientStatus);
       
    71       
       
    72       TContainerAOOperation GetAOOperationType();
       
    73        
       
    74 private:
       
    75     // Pointer to the trigger which has to be created. Pointer just contains
       
    76     // pointer to the trigger and does not own it. It should not delete it
       
    77     CLbtContainerTriggerEntry* iEntry;
       
    78     
       
    79     TRequestStatus* iClientStatus;
       
    80      
       
    81      
       
    82                      
       
    83     };
       
    84 
       
    85 
       
    86 #endif // C_LBT_LIST_ASYNCOPERATION_H