logsui/EngineInc/CLogsEventUpdater.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Updates Log events adding remote party
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __Logs_Engine_CLogsEventUpdater_H__
       
    21 #define __Logs_Engine_CLogsEventUpdater_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include "CLogsBaseUpdater.h"
       
    25 
       
    26 // CONSTANTS
       
    27 const TInt KFieldIdSize = 5; // size for field id buffer
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FUNCTION PROTOTYPES
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 
       
    40 class CLogsEventUpdater : public CLogsBaseUpdater
       
    41     {
       
    42     
       
    43     public:     // Constructors.
       
    44 
       
    45         /**
       
    46          * Standard creation function.
       
    47          *
       
    48          * @param aFsSession        reference to file server session
       
    49          * @param aObserver         pointer to observer
       
    50          *
       
    51          * @return Pointer to the new instance of this class.
       
    52          */     
       
    53         static CLogsEventUpdater* NewL( RFs& aFsSession, 
       
    54                                         MLogsObserver* aObserver, 
       
    55                                         CVPbkPhoneNumberMatchStrategy::TVPbkPhoneNumberMatchFlags aMatchFlags );
       
    56     private:
       
    57 
       
    58         /**
       
    59          * Default constructor
       
    60          */
       
    61         CLogsEventUpdater();
       
    62                                                                        
       
    63 
       
    64         /**
       
    65          * Constructor, second phase. 
       
    66          */
       
    67         void ConstructL( CVPbkPhoneNumberMatchStrategy::TVPbkPhoneNumberMatchFlags aMatchFlags );
       
    68 
       
    69         /**
       
    70          * Constructor
       
    71          *
       
    72          * @param aFsSession        reference to file server session
       
    73          * @param aObserver         pointer to observer
       
    74          */
       
    75         CLogsEventUpdater( RFs& aFsSession, 
       
    76                            MLogsObserver* aObserver );
       
    77     
       
    78     public:     
       
    79         /**
       
    80          * Destructor.
       
    81          */
       
    82         virtual ~CLogsEventUpdater();
       
    83             
       
    84     protected:     
       
    85 
       
    86         void RunL();
       
    87 
       
    88     private: 
       
    89 
       
    90         void StartRunningL();   //Called from base class when processing can start
       
    91         void ContinueRunningL( TInt aFieldId );//Called from base class when processing can continue 	
       
    92 		//map function from virutal pbk field type to pbk field type
       
    93         TInt NumberPbkFieldFromVPbk( TInt aNumberFieldType ) const;  
       
    94 		
       
    95     protected:
       
    96 
       
    97         //virtual function from base class     
       
    98         void ProcessVPbkSingleContactOperationCompleteImplL(
       
    99              MVPbkContactOperationBase& aOperation,
       
   100              MVPbkStoreContact* aContact);
       
   101 
       
   102     public: // from MLogsReader
       
   103 
       
   104         void ConfigureL( const MLogsReaderConfig* aConfig ); 
       
   105           
       
   106     private: // data
       
   107         
       
   108         /// Own: number
       
   109         HBufC* iNumber; 
       
   110         
       
   111 		/// Own: number field type
       
   112         TInt iNumberFieldType;
       
   113 		
       
   114         /// Own: field id
       
   115         // TBuf<KFieldIdSize> iFieldId;
       
   116     };
       
   117 
       
   118 #endif // __Logs_Engine_CLogsEventUpdater_H__
       
   119 
       
   120 // End of File