00001 /* 00002 * ============================================================================== 00003 * Name : LocationBase.h 00004 * Part of : Effects Framework 00005 * Description : This is the definition of the base class for location effect. 00006 * 00007 * Version : 1 00008 * 00009 * Copyright © 2004 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 00021 #ifndef CLOCATION_H 00022 #define CLOCATION_H 00023 00024 // INCLUDES 00025 00026 #include <e32base.h> 00027 #include <AudioEffectBase.h> 00028 #include <LocationData.h> 00029 00030 // CLASS DECLARATION 00031 00039 class CLocation : public CAudioEffect 00040 { 00041 00042 protected: // Constructors and destructor 00043 00048 IMPORT_C virtual ~CLocation(); 00049 00053 IMPORT_C CLocation(); 00054 00055 public: // New Functions 00056 00065 IMPORT_C void LocationCartesian( TInt32& aX, TInt32& aY, TInt32& aZ ); 00066 00075 IMPORT_C void LocationSpherical( TInt32& aAzimuth, TInt32& aElevation, TInt32& aRadius ); 00076 00085 IMPORT_C void SetLocationCartesianL( TInt32& aX, TInt32& aY, TInt32& aZ ); 00086 00095 IMPORT_C void SetLocationSphericalL( TInt32& aAzimuth, TInt32& aElevation, TInt32& aRadius ); 00096 00097 protected: // Functions from base classes 00098 00105 IMPORT_C const TDesC8& DoEffectData(); 00106 00114 IMPORT_C void SetEffectData( const TDesC8& aEffectDataBuffer ); 00115 00116 protected: 00117 00118 // Location data structure 00119 TEfLocation iLocationData; 00120 // Data package sent to server 00121 TEfLocationDataPckg iDataPckgTo; 00122 // Data package received from server 00123 TEfLocationDataPckg iDataPckgFrom; 00124 }; 00125 00126 // of CLOCATION_H 00127 #endif 00128 00129 // End of File