?? s60mmflabutility.h
字號:
// 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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -