author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
/* |
williamr@2 | 2 |
* Copyright (c) 2006 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 listener location effect class. |
williamr@2 | 15 |
* |
williamr@2 | 16 |
*/ |
williamr@2 | 17 |
|
williamr@2 | 18 |
|
williamr@2 | 19 |
#ifndef CLISTENERLOCATION_H |
williamr@2 | 20 |
#define CLISTENERLOCATION_H |
williamr@2 | 21 |
|
williamr@2 | 22 |
// INCLUDES |
williamr@2 | 23 |
|
williamr@2 | 24 |
#include <e32base.h> |
williamr@2 | 25 |
#include <LocationBase.h> |
williamr@2 | 26 |
#include <MCustomInterface.h> |
williamr@2 | 27 |
|
williamr@2 | 28 |
const TUid KUidListenerLocationEffect = {0x1020382D}; |
williamr@2 | 29 |
|
williamr@2 | 30 |
// FORWARD DELCARATION |
williamr@2 | 31 |
class CMdaAudioConvertUtility; |
williamr@2 | 32 |
class CMdaAudioPlayerUtility; |
williamr@2 | 33 |
class CMdaAudioRecorderUtility; |
williamr@2 | 34 |
class CMdaAudioInputStream; |
williamr@2 | 35 |
class CMdaAudioOutputStream; |
williamr@2 | 36 |
class CMdaAudioToneUtility; |
williamr@2 | 37 |
class CCustomCommandUtility; |
williamr@2 | 38 |
class CCustomInterfaceUtility; |
williamr@2 | 39 |
class CMMFDevSound; |
williamr@2 | 40 |
class CMidiClientUtility; |
williamr@2 | 41 |
class CDrmPlayerUtility; |
williamr@2 | 42 |
class CVideoPlayerUtility; |
williamr@2 | 43 |
|
williamr@2 | 44 |
// CLASS DECLARATION |
williamr@2 | 45 |
|
williamr@2 | 46 |
/** |
williamr@2 | 47 |
* This is the listener location effect class for managing audio location settings. |
williamr@2 | 48 |
* |
williamr@2 | 49 |
* @lib ListenerLocationEffect.lib |
williamr@2 | 50 |
* @since 3.0 |
williamr@2 | 51 |
*/ |
williamr@2 | 52 |
|
williamr@2 | 53 |
class CListenerLocation : public CLocation |
williamr@2 | 54 |
{ |
williamr@2 | 55 |
|
williamr@2 | 56 |
public: // Constructors and Destructor |
williamr@2 | 57 |
|
williamr@2 | 58 |
/** |
williamr@2 | 59 |
* Factory function for creating the listener location object. |
williamr@2 | 60 |
* @since 3.0 |
williamr@2 | 61 |
* @param aUtility A reference to a convert utility |
williamr@2 | 62 |
* @return pointer to CListenerLocation object |
williamr@2 | 63 |
*/ |
williamr@2 | 64 |
IMPORT_C static CListenerLocation* NewL( CMdaAudioConvertUtility& aUtility ); |
williamr@2 | 65 |
|
williamr@2 | 66 |
/** |
williamr@2 | 67 |
* Factory function for creating the listener location object. |
williamr@2 | 68 |
* @since 3.0 |
williamr@2 | 69 |
* @param aUtility A reference to an audio input stream utility |
williamr@2 | 70 |
* @return pointer to CListenerLocation object |
williamr@2 | 71 |
*/ |
williamr@2 | 72 |
IMPORT_C static CListenerLocation* NewL( CMdaAudioInputStream& aUtility ); |
williamr@2 | 73 |
|
williamr@2 | 74 |
/** |
williamr@2 | 75 |
* Factory function for creating the listener location object. |
williamr@2 | 76 |
* @since 3.0 |
williamr@2 | 77 |
* @param aUtility A reference to an audio output stream utility |
williamr@2 | 78 |
* @return pointer to CListenerLocation object |
williamr@2 | 79 |
*/ |
williamr@2 | 80 |
IMPORT_C static CListenerLocation* NewL( CMdaAudioOutputStream& aUtility ); |
williamr@2 | 81 |
|
williamr@2 | 82 |
/** |
williamr@2 | 83 |
* Factory function for creating the listener location object. |
williamr@2 | 84 |
* @since 3.0 |
williamr@2 | 85 |
* @param aUtility A reference to an audio player utility |
williamr@2 | 86 |
* @return pointer to CListenerLocation object |
williamr@2 | 87 |
*/ |
williamr@2 | 88 |
IMPORT_C static CListenerLocation* NewL( CMdaAudioPlayerUtility& aUtility ); |
williamr@2 | 89 |
|
williamr@2 | 90 |
/** |
williamr@2 | 91 |
* Factory function for creating the listener location object. |
williamr@2 | 92 |
* @since 3.0 |
williamr@2 | 93 |
* @param aUtility A reference to an audio record utility |
williamr@2 | 94 |
* @param aRecordStream ETrue if the effect is to be applied to the recording, |
williamr@2 | 95 |
* EFalse if the effect is to be applied only to the playback |
williamr@2 | 96 |
* @return pointer to CListenerLocation object |
williamr@2 | 97 |
*/ |
williamr@2 | 98 |
IMPORT_C static CListenerLocation* NewL( CMdaAudioRecorderUtility& aUtility, TBool aRecordStream ); |
williamr@2 | 99 |
|
williamr@2 | 100 |
/** |
williamr@2 | 101 |
* Factory function for creating the listener location object. |
williamr@2 | 102 |
* @since 3.0 |
williamr@2 | 103 |
* @param aUtility A reference to an audio tone utility |
williamr@2 | 104 |
* @return pointer to CListenerLocation object |
williamr@2 | 105 |
*/ |
williamr@2 | 106 |
IMPORT_C static CListenerLocation* NewL( CMdaAudioToneUtility& aUtility ); |
williamr@2 | 107 |
|
williamr@2 | 108 |
/** |
williamr@2 | 109 |
* Factory function for creating the listener location object. |
williamr@2 | 110 |
* @since 3.0 |
williamr@2 | 111 |
* @param aDevSound A reference to a DevSound instance |
williamr@2 | 112 |
* @return pointer to CListenerLocation object |
williamr@2 | 113 |
*/ |
williamr@2 | 114 |
IMPORT_C static CListenerLocation* NewL( CMMFDevSound& aDevSound ); |
williamr@2 | 115 |
|
williamr@2 | 116 |
/** |
williamr@2 | 117 |
* Factory function for creating the listener location object. |
williamr@2 | 118 |
* @since 3.0 |
williamr@2 | 119 |
* @param aUtility A reference to a custom command utility |
williamr@2 | 120 |
* @return pointer to CListenerLocation object |
williamr@2 | 121 |
*/ |
williamr@2 | 122 |
IMPORT_C static CListenerLocation* NewL( CCustomCommandUtility* aUtility ); |
williamr@2 | 123 |
|
williamr@2 | 124 |
/** |
williamr@2 | 125 |
* Factory function for creating the listener location object. |
williamr@2 | 126 |
* @since 3.0 |
williamr@2 | 127 |
* @param aCustomInterface A reference to a custom interface |
williamr@2 | 128 |
* @return pointer to CListenerLocation object |
williamr@2 | 129 |
*/ |
williamr@2 | 130 |
IMPORT_C static CListenerLocation* NewL( MCustomInterface& aCustomInterface ); |
williamr@2 | 131 |
|
williamr@2 | 132 |
/** |
williamr@2 | 133 |
* Factory function for creating the listener location object. |
williamr@2 | 134 |
* @since 3.0 |
williamr@2 | 135 |
* @param aUtility A reference to a CMidiClientUtility |
williamr@2 | 136 |
* @return pointer to CListenerLocation object |
williamr@2 | 137 |
*/ |
williamr@2 | 138 |
|
williamr@2 | 139 |
IMPORT_C static CListenerLocation* NewL( CMidiClientUtility& aUtility ); |
williamr@2 | 140 |
|
williamr@2 | 141 |
/** |
williamr@2 | 142 |
* Factory function for creating the listener location object. |
williamr@2 | 143 |
* @since 3.0 |
williamr@2 | 144 |
* @param CDrmPlayerUtility A reference to a CDrmPlayerUtility object |
williamr@2 | 145 |
* @return pointer to CListenerLocation object |
williamr@2 | 146 |
*/ |
williamr@2 | 147 |
IMPORT_C static CListenerLocation* NewL( CDrmPlayerUtility& aUtility ); |
williamr@2 | 148 |
|
williamr@2 | 149 |
/** |
williamr@2 | 150 |
* Factory function for creating the listener location object. |
williamr@2 | 151 |
* @since 3.2 |
williamr@2 | 152 |
* @param CVideoPlayerUtility A reference to a CVideoPlayerUtility object |
williamr@2 | 153 |
* @return pointer to CListenerLocation object |
williamr@2 | 154 |
*/ |
williamr@2 | 155 |
IMPORT_C static CListenerLocation* NewL( CVideoPlayerUtility& aUtility ); |
williamr@2 | 156 |
|
williamr@2 | 157 |
/** |
williamr@2 | 158 |
* |
williamr@2 | 159 |
* Destructor |
williamr@2 | 160 |
*/ |
williamr@2 | 161 |
IMPORT_C virtual ~CListenerLocation(); |
williamr@2 | 162 |
|
williamr@2 | 163 |
public: // functions from base class |
williamr@2 | 164 |
|
williamr@2 | 165 |
/* |
williamr@2 | 166 |
* From CAudioEffect |
williamr@2 | 167 |
* Get the unique identifier of the audio effect |
williamr@2 | 168 |
* @since 3.0 |
williamr@2 | 169 |
* @return Unique identifier |
williamr@2 | 170 |
*/ |
williamr@2 | 171 |
IMPORT_C TUid Uid() const; |
williamr@2 | 172 |
|
williamr@2 | 173 |
protected: |
williamr@2 | 174 |
|
williamr@2 | 175 |
/** |
williamr@2 | 176 |
* Private C++ constructor for this class. |
williamr@2 | 177 |
* @since 3.0 |
williamr@2 | 178 |
* @param aEffectObserver reference to event observer object |
williamr@2 | 179 |
* @return - |
williamr@2 | 180 |
*/ |
williamr@2 | 181 |
IMPORT_C CListenerLocation(); |
williamr@2 | 182 |
|
williamr@2 | 183 |
protected: // Friend classes |
williamr@2 | 184 |
|
williamr@2 | 185 |
friend class CListenerLocationMessageHandler; |
williamr@2 | 186 |
|
williamr@2 | 187 |
}; |
williamr@2 | 188 |
|
williamr@2 | 189 |
#endif // of CLISTENERLOCATION_H |
williamr@2 | 190 |
|
williamr@2 | 191 |
// End of File |