example/fbactivityfetcherplugin/fbactivityfetcherplugin.cpp
changeset 26 83d6a149c755
parent 17 106a4bfcb866
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
   960 	Q_UNUSED(aArguments)
   960 	Q_UNUSED(aArguments)
   961 	Q_UNUSED(aMode)
   961 	Q_UNUSED(aMode)
   962 	return m_authAppId;
   962 	return m_authAppId;
   963 	}
   963 	}
   964 
   964 
       
   965 /**
       
   966  * Method to get the authentication application process name
       
   967  * @return The authentication application process name (eg: "FlickrAuthApp.exe")
       
   968  */
       
   969 QString FBActivityProviderBase::authenticationAppName( ) const
       
   970 	{
       
   971 	return m_authAppName;
       
   972 	}
   965 
   973 
   966 /**
   974 /**
   967  * Method to get the unique registration ID provided by the 
   975  * Method to get the unique registration ID provided by the 
   968  * Smf for authorised plugins
   976  * Smf for authorised plugins
   969  * @return The unique registration ID/token provided by the Smf for 
   977  * @return The unique registration ID/token provided by the Smf for 
   984 	m_serviceName = "Facebook";
   992 	m_serviceName = "Facebook";
   985 	m_description = "Facebook activity fetcher plugin description";
   993 	m_description = "Facebook activity fetcher plugin description";
   986 	m_serviceUrl = QUrl(QString("http://www.facebook.com"));
   994 	m_serviceUrl = QUrl(QString("http://www.facebook.com"));
   987 	m_pluginId = "fbactivityfetcherplugin.qtplugin";
   995 	m_pluginId = "fbactivityfetcherplugin.qtplugin";
   988 	m_authAppId = "0xEFE2FD23";
   996 	m_authAppId = "0xEFE2FD23";
       
   997 	m_authAppName = "AuthApp.exe";
   989 	m_supportedInterfaces.append("org.symbian.smf.plugin.activity.fetcher/v0.2");
   998 	m_supportedInterfaces.append("org.symbian.smf.plugin.activity.fetcher/v0.2");
   990 	QSettings iSettings;
   999 	QSettings iSettings;
   991 	m_smfRegToken = iSettings.value("FBCMRegToken").toString();
  1000 	m_smfRegToken = iSettings.value("FBCMRegToken").toString();
   992 	m_validity = iSettings.value("FBExpiryTime").toDateTime();
  1001 	m_validity = iSettings.value("FBExpiryTime").toDateTime();
   993 	}
  1002 	}