example/flickrgalleryplugin/flickrgalleryplugin.cpp
changeset 26 83d6a149c755
parent 23 574948b60dab
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
  1401 	Q_UNUSED(aMode)
  1401 	Q_UNUSED(aMode)
  1402 	return m_authAppId;
  1402 	return m_authAppId;
  1403 	}
  1403 	}
  1404 
  1404 
  1405 /**
  1405 /**
       
  1406  * Method to get the authentication application process name
       
  1407  * @return The authentication application process name (eg: "FlickrAuthApp.exe")
       
  1408  */
       
  1409 QString FlickrProviderBase::authenticationAppName( ) const
       
  1410 	{
       
  1411 	return m_authAppName;
       
  1412 	}
       
  1413 
       
  1414 /**
  1406  * Method to get the unique registration ID provided by the 
  1415  * Method to get the unique registration ID provided by the 
  1407  * Smf for authorised plugins
  1416  * Smf for authorised plugins
  1408  * @return The unique registration ID/token provided by the Smf for 
  1417  * @return The unique registration ID/token provided by the Smf for 
  1409  * authorised plugins
  1418  * authorised plugins
  1410  */
  1419  */
  1418 	m_serviceName = "Flickr";
  1427 	m_serviceName = "Flickr";
  1419 	m_description = "Flickr gallery plugin description";
  1428 	m_description = "Flickr gallery plugin description";
  1420 	m_serviceUrl = QUrl(QString("http://api.flickr.com"));
  1429 	m_serviceUrl = QUrl(QString("http://api.flickr.com"));
  1421 	m_pluginId = "flickrgalleryplugin.qtplugin";
  1430 	m_pluginId = "flickrgalleryplugin.qtplugin";
  1422 	m_authAppId = "0xE1D8C7D7";
  1431 	m_authAppId = "0xE1D8C7D7";
       
  1432 	m_authAppName = "Flickr.exe";
  1423 	m_supportedInterfaces.append("org.symbian.smf.plugin.gallery/v0.2");
  1433 	m_supportedInterfaces.append("org.symbian.smf.plugin.gallery/v0.2");
  1424 	QSettings iSettings;
  1434 	QSettings iSettings;
  1425 	m_smfRegToken = iSettings.value("CMFlickrRegToken").toString();
  1435 	m_smfRegToken = iSettings.value("CMFlickrRegToken").toString();
  1426 	m_validity = iSettings.value("FlckrExpiryTime").toDateTime();
  1436 	m_validity = iSettings.value("FlckrExpiryTime").toDateTime();
  1427 	}
  1437 	}