example/lastfmplaylistserviceplugin/lastfmplaylistserviceplugin.cpp
changeset 26 83d6a149c755
parent 23 574948b60dab
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
   131 	
   131 	
   132 	qDebug()<<"Valid arguments";
   132 	qDebug()<<"Valid arguments";
   133 	
   133 	
   134 	gPageNum = aPageNum;
   134 	gPageNum = aPageNum;
   135 	gItemsPerPage = aItemsPerPage;
   135 	gItemsPerPage = aItemsPerPage;
       
   136 	qDebug()<<"Pagenumber = "<<gPageNum;
   136 
   137 
   137 	// Get the key sets from SMF Plugin Utility class.
   138 	// Get the key sets from SMF Plugin Utility class.
   138 	QString apiKey;
   139 	QString apiKey;
   139 	QString apiSecret;
   140 	QString apiSecret;
   140 	QString token;
   141 	QString token;
   879 	return m_authAppId;
   880 	return m_authAppId;
   880 	}
   881 	}
   881 
   882 
   882 
   883 
   883 /**
   884 /**
       
   885  * Method to get the authentication application process name
       
   886  * @return The authentication application process name (eg: "FlickrAuthApp.exe")
       
   887  */
       
   888 QString LastFmPlaylistServiceProviderBase::authenticationAppName( ) const
       
   889 	{
       
   890 	return m_authAppName;
       
   891 	}
       
   892 
       
   893 
       
   894 /**
   884  * Method to get the unique registration ID provided by the 
   895  * Method to get the unique registration ID provided by the 
   885  * Smf for authorised plugins
   896  * Smf for authorised plugins
   886  * @return The unique registration ID/token provided by the Smf for 
   897  * @return The unique registration ID/token provided by the Smf for 
   887  * authorised plugins
   898  * authorised plugins
   888  */
   899  */
   900 	{
   911 	{
   901 	m_serviceName = "last.fm";
   912 	m_serviceName = "last.fm";
   902 	m_description = "Last.fm music playlist plugin description";
   913 	m_description = "Last.fm music playlist plugin description";
   903 	m_serviceUrl = QUrl(QString("http://www.last.fm"));
   914 	m_serviceUrl = QUrl(QString("http://www.last.fm"));
   904 	m_pluginId = "lastfmplaylistserviceplugin.qtplugin";
   915 	m_pluginId = "lastfmplaylistserviceplugin.qtplugin";
   905 	m_authAppId = "0x12345678";
   916 	m_authAppId =   "0xE1D8C7D8";
       
   917 	m_authAppName = "LastFm.exe";
   906 	m_supportedInterfaces.append("org.symbian.smf.plugin.music.playlist/v0.2");
   918 	m_supportedInterfaces.append("org.symbian.smf.plugin.music.playlist/v0.2");
   907 	QSettings iSettings;
   919 	QSettings iSettings;
   908 	m_smfRegToken = iSettings.value("LastFmRegToken").toString();
   920 	m_smfRegToken = iSettings.value("CMLastFmRegToken").toString();
   909 	m_validity = iSettings.value("LastFmExpiryTime").toDateTime();
   921 	m_validity = iSettings.value("LastFmExpiryTime").toDateTime();
   910 	}
   922 	}
   911 
   923 
   912 
   924 
   913 /*
   925 /*