diff -r b78fa4cdbf2b -r 106a4bfcb866 example/flickrcontactfetcherplugin/flickrcontactfetcherplugin.cpp --- a/example/flickrcontactfetcherplugin/flickrcontactfetcherplugin.cpp Thu Aug 05 16:35:33 2010 +0530 +++ b/example/flickrcontactfetcherplugin/flickrcontactfetcherplugin.cpp Thu Aug 05 16:46:37 2010 +0530 @@ -25,6 +25,8 @@ #include #include #include +#include +#include #ifdef SMF_XMLPARSING #include #endif @@ -41,6 +43,46 @@ } /** + * Method to interpret the key sets obtained from credential manager + * @param aApiKey [out] The api key + * @param aApiSecret [out] The api secret + * @param aAuthToken [out] The auth token provided by Flickr + */ +void FlickrContactFetcherPlugin::fetchKeys( QString &aApiKey, + QString &aApiSecret, + QString &aAuthToken ) + { + qDebug()<<"Inside FlickrContactFetcherPlugin::fetchKeys()"; + + qDebug()<<"Reg Token = "<m_smfRegToken; + qDebug()<<"Expiry Date as int = "<m_validity.toTime_t(); + + SmfAuthParams keys; + SmfPluginUtil util; + util.getAuthKeys(keys, m_provider->m_smfRegToken, + m_provider->m_validity, m_provider->m_pluginId); + + qDebug()<<"Number of key-value pairs = "< list = arr.split('\n'); - file.close(); - - QString apiKey(list[0]); - QString apiSecret(list[1]); - QString authToken(list[2]); - - qDebug()<<"Api Key = "<setValue(list); @@ -414,6 +445,7 @@ qDebug()<<"path_alias = "<