epoc32/include/orientationbase.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). 
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  This is the definition of the orientation effect baseclass.
williamr@2
    15
*
williamr@2
    16
*
williamr@2
    17
*/
williamr@2
    18
williamr@2
    19
williamr@2
    20
#ifndef CORIENTATION_H
williamr@2
    21
#define CORIENTATION_H
williamr@2
    22
williamr@2
    23
// INCLUDES
williamr@2
    24
williamr@2
    25
#include <e32base.h>
williamr@2
    26
#include <AudioEffectBase.h>
williamr@2
    27
#include <OrientationData.h>
williamr@2
    28
#include <MCustomInterface.h>
williamr@2
    29
williamr@2
    30
// CLASS DECLARATION
williamr@2
    31
williamr@2
    32
/**
williamr@2
    33
*  This is the orientation effect base class.
williamr@2
    34
*
williamr@2
    35
*  @lib OrientationEffect.lib
williamr@2
    36
*  @since 3.0
williamr@2
    37
*/
williamr@2
    38
williamr@2
    39
class COrientation : public CAudioEffect
williamr@2
    40
	{
williamr@2
    41
williamr@2
    42
	protected:	// Constructors and destructor
williamr@2
    43
williamr@2
    44
		/**
williamr@2
    45
        *
williamr@2
    46
        * Destructor
williamr@2
    47
        */
williamr@2
    48
		IMPORT_C virtual ~COrientation();
williamr@2
    49
williamr@2
    50
		/**
williamr@2
    51
		* Private C++ constructor for this class.
williamr@2
    52
        */
williamr@2
    53
		IMPORT_C COrientation();
williamr@2
    54
williamr@2
    55
williamr@2
    56
	public:		//New Functions
williamr@2
    57
williamr@2
    58
		/**
williamr@2
    59
        * Get the orientation vectors for the position
williamr@2
    60
        * @since 3.0
williamr@2
    61
        * @param aHeading The heading (thousandths of radians)
williamr@2
    62
        * @param aPitch The Pitch (thousandths of radians)
williamr@2
    63
        * @param aRoll The Roll (thousandths of radians)
williamr@2
    64
        * @return -
williamr@2
    65
        */
williamr@2
    66
		IMPORT_C void Orientation( TInt32& aHeading, TInt32& aPitch, TInt32& aRoll );
williamr@2
    67
williamr@2
    68
		/**
williamr@2
    69
        * Gets the orientation of the position.
williamr@2
    70
        * @since 3.0
williamr@2
    71
        * @param aFrontX X value of Front vector
williamr@2
    72
        * @param aFrontY Y value of Front vector
williamr@2
    73
        * @param aFrontZ Z value of Front vector
williamr@2
    74
        * @param aAboveX X value of Above vector
williamr@2
    75
        * @param aAboveY Y value of Above vector
williamr@2
    76
        * @param aAboveZ Z value of Above vector
williamr@2
    77
        * @return -
williamr@2
    78
        */
williamr@2
    79
		IMPORT_C void OrientationVectors( TInt32& aFrontX, TInt32& aFrontY, TInt32& aFrontZ,
williamr@2
    80
								   	      TInt32& aAboveX, TInt32& aAboveY, TInt32& aAboveZ );
williamr@2
    81
williamr@2
    82
		/**
williamr@2
    83
        * Sets the Heading, Pitch, Roll values for the orientation of the source
williamr@2
    84
        * @since 3.0
williamr@2
    85
        * @param aHeading The heading (thousandths of radians)
williamr@2
    86
        * @param aPitch The Pitch (thousandths of radians)
williamr@2
    87
        * @param aRoll The Roll (thousandths of radians)
williamr@2
    88
        * @return -
williamr@2
    89
        */
williamr@2
    90
		IMPORT_C void SetOrientationL( TInt32 aHeading, TInt32 aPitch, TInt32 aRoll );
williamr@2
    91
williamr@2
    92
		/**
williamr@2
    93
        * Sets the Front and Above vectors for the orientation of the position.
williamr@2
    94
        * @since 3.0
williamr@2
    95
        * @param aFrontX X value of Front vector
williamr@2
    96
        * @param aFrontY Y value of Front vector
williamr@2
    97
        * @param aFrontZ Z value of Front vector
williamr@2
    98
        * @param aAboveX X value of Above vector
williamr@2
    99
        * @param aAboveY Y value of Above vector
williamr@2
   100
        * @param aAboveZ Z value of Above vector
williamr@2
   101
        * @return -
williamr@2
   102
        */
williamr@2
   103
		IMPORT_C void SetOrientationVectorsL( TInt32 aFrontX, TInt32 aFrontY, TInt32 aFrontZ,
williamr@2
   104
								   	      TInt32 aAboveX, TInt32 aAboveY, TInt32 aAboveZ );
williamr@2
   105
williamr@2
   106
    protected:  // Functions from base classes
williamr@2
   107
williamr@2
   108
		/**
williamr@2
   109
		* From CAudioEffect
williamr@2
   110
		* Create a package of the effect data
williamr@2
   111
        * @since 3.0
williamr@2
   112
        * @return A descriptor containing the effect data.
williamr@2
   113
        */
williamr@2
   114
		IMPORT_C const TDesC8& DoEffectData();
williamr@2
   115
williamr@2
   116
		/**
williamr@2
   117
		* From CAudioEffect
williamr@2
   118
		* Internal function to unpack effect data
williamr@2
   119
        * @since 3.0
williamr@2
   120
        * @param aEffectDataBuffer Descriptor containing packed effect data
williamr@2
   121
        * @return -
williamr@2
   122
        */
williamr@2
   123
        IMPORT_C void SetEffectData( const TDesC8& aEffectDataBuffer );
williamr@2
   124
williamr@2
   125
	protected:
williamr@2
   126
williamr@2
   127
		// Orientation data structure
williamr@2
   128
		TEfOrientation iOrientationData;
williamr@2
   129
		// Data package sent to server
williamr@2
   130
		TEfOrientationDataPckg iDataPckgTo;
williamr@2
   131
		// Data package received from server
williamr@2
   132
		TEfOrientationDataPckg iDataPckgFrom;
williamr@2
   133
	};
williamr@2
   134
williamr@2
   135
#endif	// of CORIENTATION_H
williamr@2
   136
williamr@2
   137
// End of File