aknpointereventsuppressor.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : aknpointereventsuppressor.h
00004 *  Part of  : Avkon
00005 *
00006 *  Description:
00007 *  Version:
00008 *
00009 *  Copyright © 2008 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation. All rights are reserved. Copying, 
00013 *  including reproducing, storing,  adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia Corporation. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia Corporation.
00018 * ============================================================================
00019 */
00020 #ifndef AKNPOINTEREVENTSUPPRESSOR_H
00021 #define AKNPOINTEREVENTSUPPRESSOR_H
00022 
00023 //  INCLUDES
00024 #include <coecntrl.h>
00025 
00026 // CLASS DECLARATION
00027 
00059 NONSHARABLE_CLASS(CAknPointerEventSuppressor) : public CBase
00060         {
00061 public:
00068         IMPORT_C static CAknPointerEventSuppressor* NewL();
00072         IMPORT_C ~CAknPointerEventSuppressor();
00073         
00090         IMPORT_C TBool SuppressPointerEvent(const TPointerEvent& aPointerEvent);
00097         IMPORT_C void SetMaxTapDuration(TTimeIntervalMicroSeconds aDuration);
00104         IMPORT_C void SetMaxTapMove(TSize aMoveLimits);
00112         IMPORT_C void SetMinInterDragInterval(TTimeIntervalMicroSeconds aInterval);
00113 
00114 private:
00115         CAknPointerEventSuppressor();
00116 
00117 private:
00118         TTimeIntervalMicroSeconds iMaxTapDuration;
00119         TSize iMaxTapMove;
00120         TTimeIntervalMicroSeconds iMinInterDragInterval;
00121         TTime iDownTime;
00122         TPoint iDownPos;
00123         TBool iTap;
00124         TTime iLastEventTime;
00125         };
00126 
00127 
00128 #endif

Copyright © Nokia Corporation 2001-2007
Back to top