--- a/qtinternetradio/ui/src/irmonitorservice.cpp Wed Aug 18 09:40:26 2010 +0300
+++ b/qtinternetradio/ui/src/irmonitorservice.cpp Thu Sep 02 20:17:46 2010 +0300
@@ -50,6 +50,7 @@
mIrApp(aIrApp),
mPlayController(NULL)
{
+ LOG_METHOD;
publishAll();
mPlayController = mIrApp->getPlayController();
setupConnection();
@@ -58,10 +59,12 @@
// Destructor
IrMonitorService::~IrMonitorService()
{
+ LOG_METHOD;
}
void IrMonitorService::setupConnection()
{
+ LOG_METHOD;
// meta data update
connect(mPlayController, SIGNAL(metaDataAvailable(IRQMetaData*)),
this, SLOT(updateMetaData(IRQMetaData*)));
@@ -91,6 +94,7 @@
// service interface, called via Qt Highway
void IrMonitorService::registerNotifications()
{
+ LOG_METHOD;
mRequestList.append(setCurrentRequestAsync());
if (ANY_READY())
@@ -102,10 +106,13 @@
// service interface, called via Qt Highway
void IrMonitorService::refreshAllData()
{
+ LOG_METHOD;
IrServiceDataList notificationList;
IRQPreset * currentPreset = mPlayController->getNowPlayingPreset();
+ LOG_FORMAT("mPlayController->state() = %d", mPlayController->state());
+
switch (mPlayController->state())
{
case IRPlayController::EIdle:
@@ -160,6 +167,7 @@
void IrMonitorService::updateMetaData(IRQMetaData* aMetaData)
{
+ LOG_METHOD;
if (aMetaData)
{
SET_FLAG(MetaData);
@@ -171,6 +179,7 @@
void IrMonitorService::handleStationLogoUpdated(bool aLogoAvailable)
{
+ LOG_METHOD;
mStationLogoAvailable = aLogoAvailable;
SET_FLAG(StationLogo);
@@ -179,6 +188,7 @@
void IrMonitorService::handleLoadingStarted(const QString &aStationName)
{
+ LOG_METHOD;
mMetaData.clear();
SET_FLAG(MetaData);
@@ -193,6 +203,7 @@
void IrMonitorService::handleLoadingCancelled(const QString &aStationName)
{
+ LOG_METHOD;
mMetaData.clear();
SET_FLAG(MetaData);
@@ -214,6 +225,7 @@
void IrMonitorService::handlePlayStarted()
{
+ LOG_METHOD;
mMetaData.clear();
SET_FLAG(MetaData);
@@ -229,6 +241,7 @@
void IrMonitorService::handlePlayStopped()
{
+ LOG_METHOD;
mMetaData.clear();
SET_FLAG(MetaData);
@@ -245,6 +258,7 @@
*/
void IrMonitorService::notifyAll()
{
+ LOG_METHOD;
IrServiceDataList notificationList;
if(IS_READY(StationName))
@@ -275,6 +289,7 @@
bool IrMonitorService::notifyList(const IrServiceDataList &aDataList)
{
+ LOG_METHOD;
bool retVal = true;
if (mRequestList.count() > 0