khronosfws/openmax_al/src/vibra/xavibraitf.h
changeset 12 5a06f39ad45b
child 16 43d09473c595
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/khronosfws/openmax_al/src/vibra/xavibraitf.h	Fri Apr 16 15:29:42 2010 +0300
@@ -0,0 +1,73 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+#ifndef XAVIBRAITF_H
+#define XAVIBRAITF_H
+
+#include "openmaxalwrapper.h"
+#include "xaglobals.h"
+#ifdef _GSTREAMER_BACKEND_  
+#include "XAAdaptationContextBase.h"
+#endif
+/** MACROS **/
+#define MIN_INTENSITY 0
+#define MAX_INTENSITY 1000
+#define MIN_FREQUENCY 0x00000001
+#define MAX_FREQUENCY 0xFFFFFFFF
+/** TYPES **/
+
+/** ENUMERATIONS **/
+
+/** STRUCTURES **/
+
+/* Definition of XAXAVibraItfItf implementation */
+typedef struct XAVibraItfImpl_
+{
+   /* parent interface */
+    struct XAVibraItf_ itf;
+    /* pointer to self */
+    struct XAVibraItfImpl_* self;
+
+    /* variables */
+    XAboolean       vibrate;
+    XAmilliHertz    frequency;
+    XApermille      intensity;
+
+#ifdef _GSTREAMER_BACKEND_  
+    /*Adaptation variables*/
+    XAAdaptationBaseCtx *adapCtx;
+#endif
+} XAVibraItfImpl;
+
+/** METHODS **/
+
+/* Base interface XAVibraItf implementation
+ * See API Specification for method documentation
+*/
+XAresult XAVibraItfImpl_Vibrate ( XAVibraItf self, XAboolean vibrate );
+XAresult XAVibraItfImpl_IsVibrating ( XAVibraItf self, XAboolean * pVibrating );
+XAresult XAVibraItfImpl_SetFrequency ( XAVibraItf self, XAmilliHertz frequency );
+XAresult XAVibraItfImpl_GetFrequency ( XAVibraItf self, XAmilliHertz * pFrequency );
+XAresult XAVibraItfImpl_SetIntensity ( XAVibraItf self, XApermille intensity );
+XAresult XAVibraItfImpl_GetIntensity ( XAVibraItf self, XApermille * pIntensity );
+
+#ifdef _GSTREAMER_BACKEND_  
+/* XAVibraItfImpl -specific methods*/
+XAVibraItfImpl* XAVibraItfImpl_Create( XAAdaptationBaseCtx *adapCtx );
+#endif
+void XAVibraItfImpl_Free(XAVibraItfImpl* self);
+#endif /* XAVIBRAITF_H */