emailservices/emailserver/cmailhandlerplugin/inc/fsnotificationhandlertimer.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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: This file defines class CFSNotificationHandlerTimer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __FSNOTIFICATIONHANDLERTIMER_H__
       
    20 #define __FSNOTIFICATIONHANDLERTIMER_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "fsnotificationhandlertimerobserver.h"
       
    25 
       
    26 
       
    27 /**
       
    28  *  Timer service which uses callbacks to inform of
       
    29  *  timer completion.
       
    30  *
       
    31  *  @code
       
    32  *   ?good_class_usage_example(s)
       
    33  *  @endcode
       
    34  *
       
    35  *  @lib ?library
       
    36  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    37  */
       
    38 class CFSNotificationHandlerTimer : public CTimer
       
    39     {
       
    40 public:
       
    41 
       
    42     static CFSNotificationHandlerTimer* NewL(
       
    43         MFSNotificationHandlerTimerObserver& aObserver );
       
    44     static CFSNotificationHandlerTimer* NewLC(
       
    45         MFSNotificationHandlerTimerObserver& aObserver );
       
    46 
       
    47     /**
       
    48      * Destructor.
       
    49      */
       
    50     virtual ~CFSNotificationHandlerTimer();
       
    51 
       
    52 
       
    53 protected:
       
    54   
       
    55     /**
       
    56      * Constructor.
       
    57      *
       
    58      * @since S60 ?S60_version
       
    59      * @param aObserver Observer of this timer.
       
    60      */ 
       
    61     CFSNotificationHandlerTimer(
       
    62         MFSNotificationHandlerTimerObserver& aObserver );
       
    63     void ConstructL();
       
    64 
       
    65 // from base class CActive
       
    66     virtual void DoCancel();
       
    67     virtual void RunL();
       
    68 
       
    69 private:
       
    70 
       
    71 
       
    72         	
       
    73 private: // data
       
    74 
       
    75     /**
       
    76      * Observer and user of this timer.
       
    77      */    
       
    78     MFSNotificationHandlerTimerObserver& iObserver;
       
    79 
       
    80     };
       
    81 
       
    82 
       
    83 #endif  //__FSNOTIFICATIONHANDLERTIMER_H__