locationtriggering/ltcontainer/inc/lbtcontainerAOOperation.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_CONTAINER_AOOPERATION_H
       
    20 #define C_LBT_CONTAINER_AOOPERATION_H
       
    21 
       
    22 #include "lbttriggerstoreinterface.h"
       
    23 
       
    24 // Enumeration for type of AO operation
       
    25 enum TContainerAOOperation
       
    26     {
       
    27     EOpNone = 0,
       
    28     EOpCreateTrigger,
       
    29     EOpListTriggers,
       
    30     EOpUpdateTrigger,
       
    31     EOpUpdateTriggersFiredState,
       
    32     EOpUpdateTriggerState,
       
    33     EOpUpdateTriggersValidity,
       
    34     EOpDeleteTriggers
       
    35     };
       
    36 
       
    37        	
       
    38 /**
       
    39  * This is the  class used hold the data sent by the client in case of 
       
    40  * asynchronous operations 
       
    41  *
       
    42  */       	
       
    43 NONSHARABLE_CLASS( CLbtContainerAOOperation ) : public CBase
       
    44     {
       
    45 public:  
       
    46      /**
       
    47       *
       
    48       */
       
    49      virtual void StartAOOperationL(MLbtTriggerStore* aStore,TRequestStatus &aStatus) = 0;
       
    50     
       
    51      /**
       
    52       *
       
    53       */
       
    54      virtual TRequestStatus* GetStatus() = 0;
       
    55      
       
    56      /**
       
    57       * Destructor
       
    58       */
       
    59      virtual ~CLbtContainerAOOperation() {}        
       
    60 
       
    61 	 /**
       
    62       *
       
    63       */
       
    64      void SetPrevReturnCode(TInt aErr);
       
    65      
       
    66      /**
       
    67       *
       
    68       */
       
    69      TInt GetPrevReturnCode();
       
    70      
       
    71      /**
       
    72       *
       
    73       */
       
    74      void SetCurrentReturnCode(TInt aErr);
       
    75      
       
    76      /**
       
    77       *
       
    78       */
       
    79      TInt GetCurrentReturnCode();
       
    80      
       
    81      /**
       
    82       *
       
    83       */
       
    84      void SetOpCode(TInt aOpCode);
       
    85      
       
    86      /**
       
    87       *
       
    88       */
       
    89      TInt GetOpCode();
       
    90      
       
    91      /**
       
    92       *
       
    93       */
       
    94      virtual TContainerAOOperation GetAOOperationType() = 0;
       
    95    
       
    96    	 /**
       
    97       *
       
    98       */
       
    99      CLbtContainerAOOperation( CLbtContainerAOOperation& aEntry);
       
   100      
       
   101      /**
       
   102       *
       
   103       */
       
   104      CLbtContainerAOOperation();
       
   105      	
       
   106 private:
       
   107     /**
       
   108      * Constructor.
       
   109      */
       
   110    
       
   111     TInt iPrevRetCode;
       
   112     
       
   113     TInt iCurrRetCode;
       
   114     
       
   115     TInt iOpCode;
       
   116     };
       
   117 
       
   118 
       
   119 #endif // C_LBT_CONTAINER_AOOPERATION_H