equal
deleted
inserted
replaced
19 |
19 |
20 #ifndef FMRADIOENGINE_H |
20 #ifndef FMRADIOENGINE_H |
21 #define FMRADIOENGINE_H |
21 #define FMRADIOENGINE_H |
22 |
22 |
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include <AccMonitorCapabilities.h> |
|
25 #include <fmradiointernalpskeys.h> |
24 #include <fmradiointernalpskeys.h> |
26 #include <RadioUtility.h> |
25 #include <RadioUtility.h> |
27 #include <RadioFmTunerUtility.h> |
26 #include <RadioFmTunerUtility.h> |
28 #include <RadioPlayerUtility.h> |
27 #include <RadioPlayerUtility.h> |
29 #include <RadioPresetUtility.h> |
28 #include <RadioPresetUtility.h> |
722 * Sets the currently active preset index |
721 * Sets the currently active preset index |
723 * @param aIndex new active preset index |
722 * @param aIndex new active preset index |
724 */ |
723 */ |
725 IMPORT_C void SetCurrentPresetIndex( const TInt aIndex ); |
724 IMPORT_C void SetCurrentPresetIndex( const TInt aIndex ); |
726 |
725 |
|
726 /* Gets saved preset url. |
|
727 * @param aIndex channel index |
|
728 * @param aUrl string to be modified with saved url |
|
729 * @return error code. KErrNotFound if no url is saved or KErrOverflow |
|
730 * if the aUrl is not big enough. See TFmPresetName |
|
731 */ |
|
732 IMPORT_C TInt PresetUrlL( TInt aIndex, TDes& aUrl ); |
|
733 |
|
734 /* |
|
735 * Delete preset. With index -1 all preset are reseted |
|
736 * @param aIndex index to delete |
|
737 */ |
|
738 IMPORT_C void DeletePresetL( TInt aIndex ); |
|
739 |
|
740 /* |
|
741 * Saves given url to preset |
|
742 * @param aIndex channel index |
|
743 * @param aUrl url to save |
|
744 */ |
|
745 IMPORT_C void SaveUrlToPresetL( TInt aIndex, const TDesC& aUrl ); |
|
746 |
727 private: |
747 private: |
728 |
748 |
729 /** |
749 /** |
730 * Default class constructor. |
750 * Default class constructor. |
731 */ |
751 */ |
746 * |
766 * |
747 * @param aFrequency The frequency to be set |
767 * @param aFrequency The frequency to be set |
748 */ |
768 */ |
749 void StoreAndPublishFrequency( TInt aFrequency ); |
769 void StoreAndPublishFrequency( TInt aFrequency ); |
750 |
770 |
751 /** |
|
752 * Scans all current presets and sets stored frequencies to KErrNotFound |
|
753 * if the preset name is empty. |
|
754 */ |
|
755 void ResetPresetsL(); |
|
756 |
|
757 /** |
|
758 * Resolves if BT audio accessory is connected |
|
759 * @return ETrue if BT Audio connected |
|
760 */ |
|
761 TBool IsBTAccessoryConnectedL(); |
|
762 private: |
771 private: |
763 |
772 |
764 //the internal radio engine states |
773 //the internal radio engine states |
765 enum TRadioEngineState |
774 enum TRadioEngineState |
766 { |
775 { |