example/lastfmmusiceventplugin/lastfmmusiceventplugin.cpp
changeset 26 83d6a149c755
parent 23 574948b60dab
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
   183 		const SmfLocation &aLocation,const int aPageNum, 
   183 		const SmfLocation &aLocation,const int aPageNum, 
   184 		const int aItemsPerPage)
   184 		const int aItemsPerPage)
   185 	{
   185 	{
   186 		Q_UNUSED(aItemsPerPage);
   186 		Q_UNUSED(aItemsPerPage);
   187 		Q_UNUSED(aPageNum);
   187 		Q_UNUSED(aPageNum);
       
   188 		Q_UNUSED(aLocation)
   188 		
   189 		
   189 		SmfPluginError error = SmfPluginErrUserNotLoggedIn;
   190 		SmfPluginError error = SmfPluginErrUserNotLoggedIn;
   190 		 	
   191 		 	
   191 		// Get the key sets from SMF Plugin Utility class.
   192 		// Get the key sets from SMF Plugin Utility class.
   192 		QString apiKey;
   193 		QString apiKey;
   425 SmfPluginError MusicEventPlugin::attendees( SmfPluginRequestData &aRequest,
   426 SmfPluginError MusicEventPlugin::attendees( SmfPluginRequestData &aRequest,
   426 			const SmfEvent &aEvent, 
   427 			const SmfEvent &aEvent, 
   427 			const int aPageNum ,
   428 			const int aPageNum ,
   428 			const int aItemsPerPage )
   429 			const int aItemsPerPage )
   429 	{
   430 	{
       
   431 		Q_UNUSED(aPageNum)
   430 		Q_UNUSED(aItemsPerPage);
   432 		Q_UNUSED(aItemsPerPage);
   431 		SmfPluginError error = SmfPluginErrUserNotLoggedIn;
   433 		SmfPluginError error = SmfPluginErrUserNotLoggedIn;
   432 		writeLog("MusicEventPlugin::events()");
   434 		writeLog("MusicEventPlugin::events()");
   433 				
   435 				
   434 		// Get the key sets from SMF Plugin Utility class.
   436 		// Get the key sets from SMF Plugin Utility class.
   913  */
   915  */
   914 QString MusicProviderBase::authenticationApp( QString &aProgram, 
   916 QString MusicProviderBase::authenticationApp( QString &aProgram, 
   915 		QStringList & aArguments, 
   917 		QStringList & aArguments, 
   916 		QIODevice::OpenModeFlag aMode ) const
   918 		QIODevice::OpenModeFlag aMode ) const
   917 	{
   919 	{
       
   920 	Q_UNUSED(aProgram)
       
   921 	Q_UNUSED(aArguments)
       
   922 	Q_UNUSED(aMode)
   918 	return m_authAppId;
   923 	return m_authAppId;
       
   924 	}
       
   925 
       
   926 /**
       
   927  * Method to get the authentication application process name
       
   928  * @return The authentication application process name (eg: "FlickrAuthApp.exe")
       
   929  */
       
   930 QString MusicProviderBase::authenticationAppName( ) const
       
   931 	{
       
   932 	return m_authAppName;
   919 	}
   933 	}
   920 
   934 
   921 /**
   935 /**
   922  * Method to get the unique registration ID provided by the 
   936  * Method to get the unique registration ID provided by the 
   923  * Smf for authorised plugins
   937  * Smf for authorised plugins
   937 	  m_serviceUrl =  QUrl(QString("http://ws.audioscrobbler.com"));
   951 	  m_serviceUrl =  QUrl(QString("http://ws.audioscrobbler.com"));
   938 	 // m_serviceType << m_serviceName << m_description;// << (QString)(m_serviceUrl);
   952 	 // m_serviceType << m_serviceName << m_description;// << (QString)(m_serviceUrl);
   939 	  m_supportedLanguages << "English" ;
   953 	  m_supportedLanguages << "English" ;
   940 	  m_pluginId =    "lastfmmusiceventplugin.qtplugin";
   954 	  m_pluginId =    "lastfmmusiceventplugin.qtplugin";
   941 	  m_authAppId =   "0xE1D8C7D8";
   955 	  m_authAppId =   "0xE1D8C7D8";
       
   956 	  m_authAppName = "LastFm.exe";
   942 	  QSettings iSettings;
   957 	  QSettings iSettings;
   943 	  m_smfRegToken = iSettings.value("CMLastFmRegToken").toString();
   958 	  m_smfRegToken = iSettings.value("CMLastFmRegToken").toString();
   944 	  m_validity = iSettings.value("LastFmExpiryTime").toDateTime();
   959 	  m_validity = iSettings.value("LastFmExpiryTime").toDateTime();
   945 	  //m_smfRegToken = "hsdfusdghf";  //yet to be recvd
   960 	  //m_smfRegToken = "hsdfusdghf";  //yet to be recvd
   946 
   961