void onRecording(unsigned long long elapsedTime, unsigned long long fileSize);
void onMaxLengthReached();
+ void onRecordInterrupted();
void onStopPressed();
void onRecordPressed();
void onRecordPausePressed();
void onPlayCompleted();
+ void onPlayInterrupted();
void onPlayPressed();
void onPlayPausePressed();
Eina_Bool onPlaying();
m_Recorder->setMaxLength(MAX_RECORD_LEN);
m_Recorder->setRecordingCallback(std::bind(&RecordField::onRecording, this, _1, _2));
m_Recorder->setMaxLengthReachCallback(std::bind(&RecordField::onMaxLengthReached, this));
+ m_Recorder->setInterruptCallback(std::bind(&RecordField::onRecordInterrupted, this));
createRecorderView();
break;
case ModePlayer:
}
m_Player = new Player(m_Path.c_str());
m_Player->setCompleteCallback(std::bind(&RecordField::onPlayCompleted, this));
+ m_Player->setInterruptCallback(std::bind(&RecordField::onPlayInterrupted, this));
createPlayerView();
break;
}
notification_status_message_post(_("IDS_MEMO_TPOP_MAXIMUM_RECORDING_TIME_REACHED"));
}
+void RecordField::onRecordInterrupted()
+{
+ stop();
+}
+
void RecordField::onStopPressed()
{
stop();
elm_object_signal_emit(getEvasObject(), SIGNAL_PROGRESS_BAR_HIDE, "*");
}
+void RecordField::onPlayInterrupted()
+{
+ pausePlayer();
+}
+
void RecordField::onPlayPressed()
{
m_Player->start();