Well the following code works. I put 3 seconds in the start() function and now it fires off from the library call.
// Create a timer to fire a slot when the playback is done
m_EndPlayBackTimer = new QTimer(this);
m_EndPlayBackTimer->setInterval(3000);
m_EndPlayBackTimer->setSingleShot(true);
connect(m_EndPlayBackTimer, SIGNAL(timeout()), SLOT(playBackDone()));
m_EndPlayBackTimer->start(3000);
// Done
return;
}
/**
* @brief
* Slot to be started by a timer after some time delay
* to signify that the playback is complete.
*
*/
void MyLib::playBackDone() {
#if DEBUG
qDebug() << "Playback is complete...";
#endif
}