equal
deleted
inserted
replaced
407 */ |
407 */ |
408 SmfPluginError FlickrContactFetcherPlugin::groups( SmfPluginRequestData &aRequest, |
408 SmfPluginError FlickrContactFetcherPlugin::groups( SmfPluginRequestData &aRequest, |
409 const int aPageNum , |
409 const int aPageNum , |
410 const int aItemsPerPage ) |
410 const int aItemsPerPage ) |
411 { |
411 { |
|
412 Q_UNUSED(aPageNum) |
|
413 Q_UNUSED(aItemsPerPage) |
412 qDebug()<<"Inside FlickrContactFetcherPlugin::groups()"; |
414 qDebug()<<"Inside FlickrContactFetcherPlugin::groups()"; |
413 |
415 |
414 SmfPluginError error = SmfPluginErrInvalidArguments; |
416 SmfPluginError error = SmfPluginErrInvalidArguments; |
415 |
417 |
416 // invalid arguments |
418 // invalid arguments |
464 const SmfGroup &aGroup, |
466 const SmfGroup &aGroup, |
465 SmfContact *aContact, |
467 SmfContact *aContact, |
466 const int aPageNum , |
468 const int aPageNum , |
467 const int aItemsPerPage ) |
469 const int aItemsPerPage ) |
468 { |
470 { |
|
471 Q_UNUSED(aContact) |
469 #ifndef TESTINGTHISFUNCTION |
472 #ifndef TESTINGTHISFUNCTION |
470 Q_UNUSED(aRequest) |
473 Q_UNUSED(aRequest) |
471 Q_UNUSED(aGroup) |
474 Q_UNUSED(aGroup) |
472 Q_UNUSED(aPageNum) |
475 Q_UNUSED(aPageNum) |
473 Q_UNUSED(aItemsPerPage) |
476 Q_UNUSED(aItemsPerPage) |
627 qDebug()<<"FB response size = "<<response.size(); |
630 qDebug()<<"FB response size = "<<response.size(); |
628 |
631 |
629 if(SmfTransportOpNoError == aTransportResult) |
632 if(SmfTransportOpNoError == aTransportResult) |
630 { |
633 { |
631 qDebug()<<"No transport error"; |
634 qDebug()<<"No transport error"; |
632 |
635 |
633 #ifndef TESTINGTHISFUNCTION |
636 #ifndef TESTINGTHISFUNCTION |
634 if(SmfContactGetFriends == aOperation) |
637 if(SmfContactGetFriends == aOperation) |
635 #else |
638 #else |
636 if(SmfContactGetFriends == aOperation ||aOperation == SmfContactGetFollowers||aOperation== SmfContactSearch ||aOperation ==SmfContactSearchNear||aOperation ==SmfContactSearchInGroup) |
639 if(SmfContactGetFriends == aOperation ||aOperation == SmfContactGetFollowers||aOperation== SmfContactSearch ||aOperation ==SmfContactSearchNear||aOperation ==SmfContactSearchInGroup) |
637 #endif |
640 #endif |
929 Q_UNUSED(aMode) |
932 Q_UNUSED(aMode) |
930 return m_authAppId; |
933 return m_authAppId; |
931 } |
934 } |
932 |
935 |
933 /** |
936 /** |
|
937 * Method to get the authentication application process name |
|
938 * @return The authentication application process name (eg: "FlickrAuthApp.exe") |
|
939 */ |
|
940 QString FlickrProviderBase::authenticationAppName( ) const |
|
941 { |
|
942 return m_authAppName; |
|
943 } |
|
944 |
|
945 /** |
934 * Method to get the unique registration ID provided by the |
946 * Method to get the unique registration ID provided by the |
935 * Smf for authorised plugins |
947 * Smf for authorised plugins |
936 * @return The unique registration ID/token provided by the Smf for |
948 * @return The unique registration ID/token provided by the Smf for |
937 * authorised plugins |
949 * authorised plugins |
938 */ |
950 */ |
946 m_serviceName = "Flickr"; |
958 m_serviceName = "Flickr"; |
947 m_description = "Flickr contact fetcher plugin description"; |
959 m_description = "Flickr contact fetcher plugin description"; |
948 m_serviceUrl = QUrl(QString("http://api.flickr.com")); |
960 m_serviceUrl = QUrl(QString("http://api.flickr.com")); |
949 m_pluginId = "flickrcontactfetcherplugin.qtplugin"; |
961 m_pluginId = "flickrcontactfetcherplugin.qtplugin"; |
950 m_authAppId = "0xE1D8C7D7"; |
962 m_authAppId = "0xE1D8C7D7"; |
|
963 m_authAppName = "Flickr.exe"; |
951 m_supportedInterfaces.append("org.symbian.smf.plugin.contact.fetcher/v0.2"); |
964 m_supportedInterfaces.append("org.symbian.smf.plugin.contact.fetcher/v0.2"); |
952 QSettings iSettings; |
965 QSettings iSettings; |
953 m_smfRegToken = iSettings.value("CMFlickrRegToken").toString(); |
966 m_smfRegToken = iSettings.value("CMFlickrRegToken").toString(); |
954 m_validity = iSettings.value("FlckrExpiryTime").toDateTime(); |
967 m_validity = iSettings.value("FlckrExpiryTime").toDateTime(); |
955 } |
968 } |