S60MMFLabUtility.h
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:2k
- // Copyright (c) 2006 Nokia Corporation.
- #ifndef S60MMFLABUTILITY_H
- #define S60MMFLABUTILITY_H
- #include <e32std.h>
- #include <eikenv.h>
- #include <MdaAudioTonePlayer.h>
- #include <MdaAudioSamplePlayer.h>
- #include <MdaAudioSampleEditor.h>
- // FORWARD DECLARATIONS
- class CS60MMFLabAppUi;
- // TONE UTILITY
- class CS60MMFLabToneUtility : public CBase, public MMdaAudioToneObserver
- {
- public:
- static CS60MMFLabToneUtility* NewL();
- static CS60MMFLabToneUtility* NewLC();
- ~CS60MMFLabToneUtility();
- private:
- CS60MMFLabToneUtility();
- void ConstructL();
- public:
- void Play();
- void CancelPlay();
- const TDesC& GetLabel();
- void SetOptionsMenuL(CEikMenuPane* aMenuPane);
- public: // from MMdaAudioToneObserver
- void MatoPrepareComplete(TInt aError);
- void MatoPlayComplete(TInt aError);
- private:
- CMdaAudioToneUtility* iToneUtility;
- };
- // PLAYER UTILITY
- class CS60MMFLabPlayerUtility : public CBase, public MMdaAudioPlayerCallback
- {
- public:
- static CS60MMFLabPlayerUtility* NewL();
- static CS60MMFLabPlayerUtility* NewLC();
- ~CS60MMFLabPlayerUtility();
- private:
- CS60MMFLabPlayerUtility();
- void ConstructL();
- public:
- void Play();
- void Stop();
- const TDesC& GetLabel();
- void SetOptionsMenuL(CEikMenuPane *aMenuPane);
- public: // from MMdaAudioPlayerCallback
- void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration);
- void MapcPlayComplete(TInt aError);
- private:
- CMdaAudioPlayerUtility* iPlayerUtility;
- enum TPlayerState
- {
- EPlayerNotReady,
- EPlayerReady,
- EPlayerPlaying
- };
- TPlayerState iState;
- };
- #endif // S60MMFLABUTILITY_H
- // End of file