example/lastfmmusicserviceplugin/lastfmmusicserviceplugin.cpp
changeset 26 83d6a149c755
parent 23 574948b60dab
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
   474 	qDebug()<<"Inside LastFmMusicServicePlugin::searchVenue()";
   474 	qDebug()<<"Inside LastFmMusicServicePlugin::searchVenue()";
   475 			
   475 			
   476 	SmfPluginError error = SmfPluginErrInvalidArguments;
   476 	SmfPluginError error = SmfPluginErrInvalidArguments;
   477 
   477 
   478 	// invalid arguments
   478 	// invalid arguments
   479 	if( aPageNum < 0 || aItemsPerPage < 0 || aVenue.name().isEmpty() )
   479 	//if( aPageNum < 0 || aItemsPerPage < 0 || aVenue.name().isEmpty() ) kindly check this
       
   480 	if( aPageNum < 0 || aItemsPerPage < 0)
   480 		{
   481 		{
   481 		qDebug()<<"Invalid arguments";
   482 		qDebug()<<"Invalid arguments";
   482 		return error;
   483 		return error;
   483 		}
   484 		}
   484 	
   485 	
  1565 	return m_authAppId;
  1566 	return m_authAppId;
  1566 	}
  1567 	}
  1567 
  1568 
  1568 
  1569 
  1569 /**
  1570 /**
       
  1571  * Method to get the authentication application process name
       
  1572  * @return The authentication application process name (eg: "FlickrAuthApp.exe")
       
  1573  */
       
  1574 QString LastFmMusicServiceProviderBase::authenticationAppName( ) const
       
  1575 	{
       
  1576 	return m_authAppName;
       
  1577 	}
       
  1578 
       
  1579 
       
  1580 /**
  1570  * Method to get the unique registration ID provided by the 
  1581  * Method to get the unique registration ID provided by the 
  1571  * Smf for authorised plugins
  1582  * Smf for authorised plugins
  1572  * @return The unique registration ID/token provided by the Smf for 
  1583  * @return The unique registration ID/token provided by the Smf for 
  1573  * authorised plugins
  1584  * authorised plugins
  1574  */
  1585  */
  1586 	{
  1597 	{
  1587 	m_serviceName = "last.fm";
  1598 	m_serviceName = "last.fm";
  1588 	m_description = "Last.fm music service plugin description";
  1599 	m_description = "Last.fm music service plugin description";
  1589 	m_serviceUrl = QUrl(QString("http://www.last.fm"));
  1600 	m_serviceUrl = QUrl(QString("http://www.last.fm"));
  1590 	m_pluginId = "lastfmmusicserviceplugin.qtplugin";
  1601 	m_pluginId = "lastfmmusicserviceplugin.qtplugin";
  1591 	m_authAppId = "0x12345678";
  1602 	m_authAppId =   "0xE1D8C7D8";
       
  1603 	m_authAppName = "LastFm.exe";
  1592 	m_supportedInterfaces.append("org.symbian.smf.plugin.music.service/v0.2");
  1604 	m_supportedInterfaces.append("org.symbian.smf.plugin.music.service/v0.2");
  1593 	QSettings iSettings;
  1605 	QSettings iSettings;
  1594 	m_smfRegToken = iSettings.value("LastFmRegToken").toString();
  1606 	m_smfRegToken = iSettings.value("CMLastFmRegToken").toString();
  1595 	m_validity = iSettings.value("LastFmExpiryTime").toDateTime();
  1607 	m_validity = iSettings.value("LastFmExpiryTime").toDateTime();
  1596 	}
  1608 	}
  1597 
  1609 
  1598 
  1610 
  1599 /*
  1611 /*