epoc32/include/mw/touchlogicalfeedback.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
--- a/epoc32/include/mw/touchlogicalfeedback.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/mw/touchlogicalfeedback.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,74 @@
-touchlogicalfeedback.h
+/*
+* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Logical feedback type enumeration. 
+*
+*/
+
+
+#ifndef T_TOUCHLOGICALFEEDBACK_H
+#define T_TOUCHLOGICALFEEDBACK_H
+
+
+
+#include <e32std.h>
+
+
+/**  
+ *  Pointer event types, that can be used when registering
+ *  areas to registry. Currently only stylus down event 
+ *  is supported (this means that there will be feedback 
+ *  whenever stylus down event is received on registered
+ *  area, no matter what happens _after_ stylus down event).
+ */
+enum TTouchEventType
+    {
+    ETouchEventStylusDown
+    };
+
+    
+/**  
+ *  Logical feedback types, that can be used when producing direct
+ *  feedback, or when registering areas to area registry.
+ *
+ *  Notice, that client application cannot decide the actual physical
+ *  feedback that shall be generated. It depends on device configuration,
+ *  and current settings. In current devices the user changeable settings
+ *  includes vibra and sound feedbacks.
+ *
+ *  Instructions for using these feedback types:
+ *
+ *  ETouchFeedbackNone      - Use for disabling feedback for some areas of
+ *                            window when using area registry.
+ *
+ *  ETouchFeedbackBasic     - Use as default feedback for pen down events.
+ *                            For example, pressing a button or tab.
+ *
+ *  ETouchFeedbackSensitive - Sensitive feedback for those situations,
+ *                            where the triggering action is not very 
+ *                            important (e.g. change focus in list), or when
+ *                            there can be a large amount of feedbacks in
+ *                            a short time (e.g. text selection which gives
+ *                            feedback on every new selected character).
+ *                            Also used for scrolling and dragging.
+ *
+ */
+enum TTouchLogicalFeedback
+    {
+    ETouchFeedbackNone,
+    ETouchFeedbackBasic,   
+    ETouchFeedbackSensitive
+    };
+
+
+#endif // T_TOUCHLOGICALFEEDBACK_H