example/fbpostproviderplugin/fbpostproviderplugin.cpp
changeset 26 83d6a149c755
parent 17 106a4bfcb866
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
  1123 	Q_UNUSED(aMode)
  1123 	Q_UNUSED(aMode)
  1124 	return m_authAppId;
  1124 	return m_authAppId;
  1125 	}
  1125 	}
  1126 
  1126 
  1127 /**
  1127 /**
       
  1128  * Method to get the authentication application process name
       
  1129  * @return The authentication application process name (eg: "FlickrAuthApp.exe")
       
  1130  */
       
  1131 QString FBProviderBase::authenticationAppName( ) const
       
  1132 	{
       
  1133 	return m_authAppName;
       
  1134 	}
       
  1135 
       
  1136 /**
  1128  * Method to get the unique registration ID provided by the 
  1137  * Method to get the unique registration ID provided by the 
  1129  * Smf for authorised plugins
  1138  * Smf for authorised plugins
  1130  * @return The unique registration ID/token provided by the Smf for 
  1139  * @return The unique registration ID/token provided by the Smf for 
  1131  * authorised plugins
  1140  * authorised plugins
  1132  */
  1141  */
  1144 	m_serviceName = "Facebook";
  1153 	m_serviceName = "Facebook";
  1145 	m_description = "Facebook post plugin description";
  1154 	m_description = "Facebook post plugin description";
  1146 	m_serviceUrl = QUrl(QString("http://api.facebook.com"));
  1155 	m_serviceUrl = QUrl(QString("http://api.facebook.com"));
  1147 	m_pluginId = "fbpostproviderplugin.qtplugin";
  1156 	m_pluginId = "fbpostproviderplugin.qtplugin";
  1148 	m_authAppId = "0xEFE2FD23";
  1157 	m_authAppId = "0xEFE2FD23";
       
  1158 	m_authAppName = "AuthApp.exe";
  1149 	m_supportedInterfaces.append("org.symbian.smf.plugin.contact.posts/v0.2");
  1159 	m_supportedInterfaces.append("org.symbian.smf.plugin.contact.posts/v0.2");
  1150 	QSettings iSettings;
  1160 	QSettings iSettings;
  1151 	m_smfRegToken = iSettings.value("FBCMRegToken").toString();
  1161 	m_smfRegToken = iSettings.value("FBCMRegToken").toString();
  1152 	m_validity = iSettings.value("FBExpiryTime").toDateTime();
  1162 	m_validity = iSettings.value("FBExpiryTime").toDateTime();
  1153 	}
  1163 	}