syncmlfw/syncmlnotifier/inc/SyncMLQueryTimer.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Message query with timeout.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CSYNCMLQUERYTIMER_H
       
    21 #define CSYNCMLQUERYTIMER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Timer observer class for SyncML notifier queries.
       
    30 *
       
    31 *  @lib SyncMLNotifier
       
    32 *  @since Series 60 3.0
       
    33 */
       
    34 NONSHARABLE_CLASS ( MSyncMLQueryTimerObserver )
       
    35     {
       
    36     public: // New functions
       
    37         /**
       
    38         * Is called when the timer expires.
       
    39         * @since Series 60 3.0
       
    40         * @param None
       
    41         * @return None
       
    42         */
       
    43         virtual void TimerExpired() = 0;
       
    44     };
       
    45 
       
    46 /**
       
    47 *  Timer class for SyncML notifier queries.
       
    48 *
       
    49 *  @lib SyncMLNotifier
       
    50 *  @since Series 60 3.0
       
    51 */
       
    52 NONSHARABLE_CLASS ( CSyncMLQueryTimer ) : public CTimer
       
    53     {
       
    54     public:  // Constructors and destructor
       
    55         
       
    56         /**
       
    57         * Two-phased constructor.
       
    58         */
       
    59         static CSyncMLQueryTimer* NewL( MSyncMLQueryTimerObserver* aObserver );
       
    60         
       
    61         /**
       
    62         * Destructor.
       
    63         */
       
    64         virtual ~CSyncMLQueryTimer();
       
    65 
       
    66     public: // Functions from base classes
       
    67 
       
    68         /**
       
    69         * From CActive Is called when an event is received.
       
    70         * @since Series 60 3.0
       
    71         * @param None
       
    72         * @return None
       
    73         */
       
    74         void RunL();
       
    75         
       
    76     private:
       
    77 
       
    78         /**
       
    79         * C++ default constructor.
       
    80         */
       
    81         CSyncMLQueryTimer( MSyncMLQueryTimerObserver* aObserver );
       
    82 
       
    83         /**
       
    84         * By default Symbian 2nd phase constructor is private.
       
    85         */
       
    86         void ConstructL();
       
    87 
       
    88     private:    // Data
       
    89         // Pointer to the timer observer instance.
       
    90         MSyncMLQueryTimerObserver*  iObserver;
       
    91          
       
    92     };
       
    93 
       
    94 #endif      // CSYNCMLQUERYTIMER_H   
       
    95             
       
    96 // End of File