calendarui/views/src/calencontainer.cpp
branchRCL_3
changeset 36 9c5b1510919f
parent 21 9711e452b5e9
child 60 96907930389d
--- a/calendarui/views/src/calencontainer.cpp	Tue May 25 12:41:10 2010 +0300
+++ b/calendarui/views/src/calencontainer.cpp	Wed Jun 09 09:40:23 2010 +0300
@@ -30,6 +30,7 @@
 #include <layoutmetadata.cdl.h>
 #include <calentoolbar.h>
 #include <akntoolbar.h>
+#include <touchfeedback.h>
 
 // user includes
 #include "calendarui_debug.h"
@@ -876,4 +877,25 @@
     TRACE_EXIT_POINT;
     }
 
+
+// ----------------------------------------------------------------------------
+// CCalenContainer::GenerateTactileFeedback()
+// Generates tactile feedback on user touch action
+// ----------------------------------------------------------------------------
+void CCalenContainer::GenerateTactileFeedback()
+    {
+    TRACE_ENTRY_POINT;
+    
+    if(!iFeedBack)
+        {
+        iFeedBack = MTouchFeedback::Instance();
+        }
+    
+    if ( iFeedBack && iFeedBack->TouchFeedbackSupported() )
+        {
+        iFeedBack->InstantFeedback( ETouchFeedbackBasic );
+        }
+    
+    TRACE_EXIT_POINT;
+    }
 // End of File