logsui/EngineInc/CLogsSMSEventUpdater.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 SMS events remote party to match one in contact model.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __Logs_Engine_CLogsSMSEventUpdater_H__
       
    21 #define __Logs_Engine_CLogsSMSEventUpdater_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <logviewchangeobserver.h>
       
    25 #include "CLogsBaseUpdater.h"
       
    26 #include <CVPbkPhoneNumberMatchStrategy.h>
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FUNCTION PROTOTYPES
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 class CLogsSMSEventUpdater :    public CLogsBaseUpdater,
       
    40                                 public MLogViewChangeObserver
       
    41 
       
    42     {
       
    43     
       
    44     public:     // Constructors.
       
    45         /**
       
    46          * Standard creation function. Creates and returns a new object of this
       
    47          * class.
       
    48          *
       
    49          * @param aFsSession    reference to file server session
       
    50          * @param aObserver     pointer to observer
       
    51          * @return Pointer to the new instance of this class.
       
    52          */     
       
    53         static CLogsSMSEventUpdater* NewL( RFs& aFsSession, 
       
    54                                            MLogsObserver* aObserver,
       
    55                                            CVPbkPhoneNumberMatchStrategy::TVPbkPhoneNumberMatchFlags aMatchFlags );
       
    56                                             
       
    57     private:    
       
    58         /**
       
    59          * Constructor, second phase. 
       
    60          */
       
    61         void ConstructL(CVPbkPhoneNumberMatchStrategy::TVPbkPhoneNumberMatchFlags aMatchFlags );
       
    62 
       
    63         /**
       
    64          * Constructor
       
    65          *
       
    66          * @param aFsSession    reference to file server session
       
    67          * @param aObserver     pointer to observer
       
    68          */
       
    69         CLogsSMSEventUpdater( RFs& aFsSession,
       
    70                               MLogsObserver* aObserver );
       
    71     
       
    72     public:     
       
    73         /**
       
    74          * Destructor.
       
    75          */
       
    76         virtual ~CLogsSMSEventUpdater();
       
    77 
       
    78     public: // from MLogViewChangeObserver
       
    79         void HandleLogViewChangeEventAddedL(TLogId aId,   TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount);       
       
    80         void HandleLogViewChangeEventChangedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount);
       
    81         void HandleLogViewChangeEventDeletedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount);
       
    82 
       
    83     protected:    
       
    84         /**
       
    85          * This is called when a request to a log engine is completed.
       
    86          */
       
    87         void RunL();
       
    88 
       
    89     private:   
       
    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     };
       
    93 
       
    94 #endif // __Logs_Engine_CLogsSMSEventUpdater_H__
       
    95 
       
    96 // End of File