85 /** |
85 /** |
86 * Hardware Resource Manager server side service object for FmTx sessions. |
86 * Hardware Resource Manager server side service object for FmTx sessions. |
87 */ |
87 */ |
88 class CHWRMFmTxService : public CHWRMService |
88 class CHWRMFmTxService : public CHWRMService |
89 { |
89 { |
|
90 private: // Enumerations |
|
91 |
|
92 /** |
|
93 * Private enumeration to identify scan type |
|
94 */ |
|
95 enum TFmTxScanType |
|
96 { |
|
97 EFmTxScanTypeNone = 0, |
|
98 EFmTxScanTypeGet, |
|
99 EFmTxScanTypeSet |
|
100 }; |
|
101 |
90 public: // Constructors and Destructor |
102 public: // Constructors and Destructor |
91 |
103 |
92 /** |
104 /** |
93 * Two-phased constructor. |
105 * Two-phased constructor. |
94 * |
106 * |
309 * |
321 * |
310 * @param aCommandId Command ID of the command. |
322 * @param aCommandId Command ID of the command. |
311 */ |
323 */ |
312 void CancelPluginCommandL(HWRMFmTxCommand::TFmTxCmd aCommandId); |
324 void CancelPluginCommandL(HWRMFmTxCommand::TFmTxCmd aCommandId); |
313 |
325 |
|
326 /** |
|
327 * Enables transmitter for being able to scan and set free frequencies |
|
328 * without need to explicitly enable transmitter. |
|
329 * |
|
330 */ |
|
331 void EnsureTransmitterOnL( const RMessage2& aMessage ); |
|
332 |
|
333 /** |
|
334 * Resets scan request state and audio policing. |
|
335 * |
|
336 * @param aNotifyAudioPolicy ETrue if audio policy should be notified instantly. |
|
337 */ |
|
338 void ResetScanRequest( TBool aNotifyAudioPolicy = EFalse ); |
|
339 |
314 private: // data |
340 private: // data |
315 |
341 |
316 CHWRMPluginHandler& iWatcherPluginHandler; // Reference to watcher plugin handler. |
342 CHWRMPluginHandler& iWatcherPluginHandler; // Reference to watcher plugin handler. |
317 CHWRMPluginTransactionList* iWatcherTransactionList; // List of open watcher transactions. Owned. |
343 CHWRMPluginTransactionList* iWatcherTransactionList; // List of open watcher transactions. Owned. |
318 CHWRMFmTxCommonData& iFmTxCommonData; // Ref to FM Tx data object common to all sessions. Not owned. |
344 CHWRMFmTxCommonData& iFmTxCommonData; // Ref to FM Tx data object common to all sessions. Not owned. |
319 CHWRMFmTxRdsTextConverter& iRdsTextConverter; // Ref to Unicode->RDS text converter. Not owned. |
345 CHWRMFmTxRdsTextConverter& iRdsTextConverter; // Ref to Unicode->RDS text converter. Not owned. |
320 |
346 |
321 TBool iSuspended; // Flag to indicate if this session is suspended. |
347 TBool iSuspended; // Flag to indicate if this session is suspended. |
322 TBool iReserved; // Flag to indicate if this session is reserved. |
348 TBool iReserved; // Flag to indicate if this session is reserved. |
|
349 TFmTxScanType iScanRequestType; |
|
350 TUint iClearFreqsRequired; |
323 }; |
351 }; |
324 |
352 |
325 #endif // HWRMFMTXSERVICE_H |
353 #endif // HWRMFMTXSERVICE_H |
326 |
354 |
327 // End of File |
355 // End of File |