graphicsuis_plat/svgt_viewer_ui_api/inc/SVGTPointerHideTimer.h
branchRCL_3
changeset 20 5fd161fa28b6
parent 0 632761c941a7
equal deleted inserted replaced
17:e52958d06c29 20:5fd161fa28b6
       
     1 /*
       
     2 * Copyright (c) 2004, 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:  This header defines the CSVGTPointerHideTimer Class
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SVGTPOINTERHIDETIMER_H
       
    19 #define SVGTPOINTERHIDETIMER_H
       
    20 
       
    21 // Includes 
       
    22 #if !defined(__E32BASE_H__)
       
    23 #include <e32base.h>
       
    24 #endif
       
    25 
       
    26 /**
       
    27 *  Interface for the pointer inactivity event listener.
       
    28 *  @lib SVGTUIControl.lib
       
    29 *  @since 3.0
       
    30 */
       
    31 
       
    32 class MSVGTPointerInactivityListener 
       
    33     {
       
    34     public:
       
    35     
       
    36         /**
       
    37         * This function is called when the pointer inactivity occurs.
       
    38         * @since 3.0
       
    39         */
       
    40         virtual void PointerInactivityTimeout( ) = 0;
       
    41     };
       
    42 
       
    43 /**
       
    44 *  Provides the timer functionality for hiding the pointer after period of
       
    45 *  inactivity
       
    46 *  @lib SVGTUIControl.lib
       
    47 *  @since 3.0
       
    48 */
       
    49 
       
    50 class CSVGTPointerHideTimer : public CTimer
       
    51     {
       
    52     public: // Constructors and Destructor
       
    53         /**
       
    54         * Two-phased constructor.
       
    55         */
       
    56         static CSVGTPointerHideTimer* NewLC( MSVGTPointerInactivityListener* 
       
    57                 aListener );
       
    58 
       
    59         /**
       
    60         * Two-phased constructor.
       
    61         */
       
    62         static CSVGTPointerHideTimer* NewL( MSVGTPointerInactivityListener* 
       
    63                 aListener );
       
    64 
       
    65         // Destructor
       
    66         virtual ~CSVGTPointerHideTimer();
       
    67 
       
    68     public: // New functions
       
    69 
       
    70     public: // Functions from base classes
       
    71 
       
    72         /**
       
    73         * From CActive Implements cancellation of an outstanding request.
       
    74         * @since 3.0
       
    75         */
       
    76         void DoCancel();
       
    77 
       
    78         /**
       
    79         * From CActive Handles the timer's request completion event.
       
    80         * @since 3.0
       
    81         */
       
    82         void RunL();
       
    83 
       
    84     protected: // New functions
       
    85     protected: // Functions from base classes
       
    86 
       
    87     private:
       
    88         /**
       
    89         * C++ default constructor.
       
    90         */
       
    91         CSVGTPointerHideTimer( MSVGTPointerInactivityListener* 
       
    92                 aListener );
       
    93         
       
    94         /**
       
    95         * Second Phase constructor.
       
    96         */
       
    97         void ConstructL();
       
    98 
       
    99     private:    // Data
       
   100         MSVGTPointerInactivityListener *iInactivityListener;
       
   101     };
       
   102 #endif // __SVGTBACKLIGHTTIMER_H__
       
   103 
       
   104 // End of File