example/fbcontactfetcherplugin/fbcontactfetcherplugin.cpp
changeset 26 83d6a149c755
parent 23 574948b60dab
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
   414 		const SmfGroup &aGroup,
   414 		const SmfGroup &aGroup,
   415 		SmfContact *aContact,
   415 		SmfContact *aContact,
   416 		const int aPageNum , 
   416 		const int aPageNum , 
   417 		const int aItemsPerPage  )
   417 		const int aItemsPerPage  )
   418 	{
   418 	{
       
   419 	Q_UNUSED(aContact)
   419 	Q_UNUSED(aRequest)
   420 	Q_UNUSED(aRequest)
   420 	Q_UNUSED(aGroup)
   421 	Q_UNUSED(aGroup)
   421 	Q_UNUSED(aPageNum)
   422 	Q_UNUSED(aPageNum)
   422 	Q_UNUSED(aItemsPerPage)
   423 	Q_UNUSED(aItemsPerPage)
   423 	qDebug()<<"Inside FBContactFetcherPlugin::searchInGroup()";
   424 	qDebug()<<"Inside FBContactFetcherPlugin::searchInGroup()";
  1060 	return m_authAppId;
  1061 	return m_authAppId;
  1061 	}
  1062 	}
  1062 
  1063 
  1063 
  1064 
  1064 /**
  1065 /**
       
  1066  * Method to get the authentication application process name
       
  1067  * @return The authentication application process name (eg: "FlickrAuthApp.exe")
       
  1068  */
       
  1069 QString FBContactProviderBase::authenticationAppName( ) const
       
  1070 	{
       
  1071 	return m_authAppName;
       
  1072 	}
       
  1073 
       
  1074 
       
  1075 /**
  1065  * Method to get the unique registration ID provided by the 
  1076  * Method to get the unique registration ID provided by the 
  1066  * Smf for authorised plugins
  1077  * Smf for authorised plugins
  1067  * @return The unique registration ID/token provided by the Smf for 
  1078  * @return The unique registration ID/token provided by the Smf for 
  1068  * authorised plugins
  1079  * authorised plugins
  1069  */
  1080  */
  1082 	m_serviceName = "Facebook";
  1093 	m_serviceName = "Facebook";
  1083 	m_description = "Facebook contact fetcher plugin description";
  1094 	m_description = "Facebook contact fetcher plugin description";
  1084 	m_serviceUrl = QUrl(QString("http://api.facebook.com"));
  1095 	m_serviceUrl = QUrl(QString("http://api.facebook.com"));
  1085 	m_pluginId = "fbcontactfetcherplugin.qtplugin";
  1096 	m_pluginId = "fbcontactfetcherplugin.qtplugin";
  1086 	m_authAppId = "0xEFE2FD23";
  1097 	m_authAppId = "0xEFE2FD23";
       
  1098 	m_authAppName = "AuthApp.exe";
  1087 	m_supportedInterfaces.append("org.symbian.smf.plugin.contact.fetcher/v0.2");
  1099 	m_supportedInterfaces.append("org.symbian.smf.plugin.contact.fetcher/v0.2");
  1088 	QSettings iSettings;
  1100 	QSettings iSettings;
  1089 	m_smfRegToken = iSettings.value("FBCMRegToken").toString();
  1101 	m_smfRegToken = iSettings.value("FBCMRegToken").toString();
  1090 	m_validity = iSettings.value("FBExpiryTime").toDateTime();
  1102 	m_validity = iSettings.value("FBExpiryTime").toDateTime();
  1091 	}
  1103 	}