21 // plugin interfaces |
21 // plugin interfaces |
22 #include <QVector> |
22 #include <QVector> |
23 #include <QTextFormat> |
23 #include <QTextFormat> |
24 #include <smfactivityfetcherplugin.h> |
24 #include <smfactivityfetcherplugin.h> |
25 #include <smfcontactfetcherplugin.h> |
25 #include <smfcontactfetcherplugin.h> |
|
26 #include <smfeventsfetcherplugin.h> |
26 #include <smfpostproviderplugin.h> |
27 #include <smfpostproviderplugin.h> |
27 #include <smflyricsserviceplugin.h> |
28 #include <smflyricsserviceplugin.h> |
28 #include <smfmusiceventsplugin.h> |
|
29 #include <smfmusicsearchplugin.h> |
29 #include <smfmusicsearchplugin.h> |
30 #include <smfmusicserviceplugin.h> |
30 #include <smfmusicserviceplugin.h> |
31 #include <smfplaylistserviceplugin.h> |
31 #include <smfplaylistserviceplugin.h> |
32 #include <smfgalleryplugin.h> |
32 #include <smfgalleryplugin.h> |
33 #include <smfprovider.h> |
33 #include <smfprovider.h> |
150 // Authorise the plugin and call create request methods |
150 // Authorise the plugin and call create request methods |
151 pluginErrorVal = createMusicLyricsRequest(aInstance, aOperation, |
151 pluginErrorVal = createMusicLyricsRequest(aInstance, aOperation, |
152 aInputData, aReqData); |
152 aInputData, aReqData); |
153 break; |
153 break; |
154 |
154 |
155 case SmfMusicGetEventsOnLoc: |
155 case SmfEventsGetEvents: |
156 case SmfMusicGetVenueOnLoc: |
156 case SmfEventsGetVenues: |
157 case SmfMusicPostEvents: |
157 case SmfEventsGetEventAttendees: |
158 case SmfMusicEventsCustomRequest: |
158 case SmfEventsPostEvents: |
|
159 case SmfEventsCustomRequest: |
159 // Authorise the plugin and call create request methods |
160 // Authorise the plugin and call create request methods |
160 pluginErrorVal = createMusicEventsRequest(aInstance, aOperation, |
161 pluginErrorVal = createEventsFetcherRequest(aInstance, aOperation, |
161 aInputData, aReqData); |
162 aInputData, aReqData); |
162 break; |
163 break; |
163 |
164 |
164 case SmfMusicGetRecommendations: |
165 case SmfMusicGetRecommendations: |
165 case SmfMusicGetTracks: |
166 case SmfMusicGetTracksSimilar: |
|
167 case SmfMusicGetTracksOfAlbum: |
|
168 case SmfMusicGetTracksOfArtist: |
166 case SmfMusicGetTrackInfo: |
169 case SmfMusicGetTrackInfo: |
167 case SmfMusicGetStores: |
170 case SmfMusicGetStores: |
168 case SmfMusicSearchCustomRequest: |
171 case SmfMusicSearchCustomRequest: |
169 // Authorise the plugin and call create request methods |
172 // Authorise the plugin and call create request methods |
170 pluginErrorVal = createMusicSearchRequest(aInstance, aOperation, |
173 pluginErrorVal = createMusicSearchRequest(aInstance, aOperation, |
171 aInputData, aReqData); |
174 aInputData, aReqData); |
172 break; |
175 break; |
173 |
176 |
174 case SmfMusicGetUserInfo: |
177 case SmfMusicGetUserInfo: |
|
178 case SmfMusicSearchArtist: |
|
179 case SmfMusicSearchAlbum: |
|
180 case SmfMusicSearchEvent: |
|
181 case SmfMusicSearchVenue: |
175 case SmfMusicSearchUser: |
182 case SmfMusicSearchUser: |
176 case SmfMusicPostCurrentPlaying: |
183 case SmfMusicPostCurrentPlaying: |
177 case SmfMusicPostRating: |
184 case SmfMusicPostRating: |
178 case SmfMusicPostComment: |
185 case SmfMusicPostComment: |
179 case SmfMusicServiceCustomRequest: |
186 case SmfMusicServiceCustomRequest: |
414 |
421 |
415 case SmfContactSearchInGroup: |
422 case SmfContactSearchInGroup: |
416 { |
423 { |
417 qDebug()<<"Plugin Operation requested : searchInGroup()"; |
424 qDebug()<<"Plugin Operation requested : searchInGroup()"; |
418 SmfGroup group; |
425 SmfGroup group; |
|
426 SmfContact contact; |
|
427 bool arg = false; |
419 stream>>flag; |
428 stream>>flag; |
420 stream>>group; |
429 stream>>group; |
421 stream>>flag; |
430 stream>>flag; |
422 stream>>pageNum; |
431 if(flag) |
423 stream>>flag; |
432 { |
424 stream>>itemPerPage; |
433 arg = true; |
425 pluginErrorVal = plugin->searchInGroup(aReqData, group, pageNum, itemPerPage); |
434 stream>>contact; |
|
435 } |
|
436 stream>>flag; |
|
437 stream>>pageNum; |
|
438 stream>>flag; |
|
439 stream>>itemPerPage; |
|
440 if(arg) |
|
441 pluginErrorVal = plugin->searchInGroup(aReqData, group, &contact, pageNum, itemPerPage); |
|
442 else |
|
443 pluginErrorVal = plugin->searchInGroup(aReqData, group, NULL, pageNum, itemPerPage); |
426 break; |
444 break; |
427 } |
445 } |
428 |
446 |
429 case SmfContactCustomRequest: |
447 case SmfContactCustomRequest: |
430 { |
448 { |
693 return pluginErrorVal; |
711 return pluginErrorVal; |
694 } |
712 } |
695 |
713 |
696 |
714 |
697 /** |
715 /** |
698 * Method to create a web query to do music event search or event post operation |
716 * Method to create a web query to do event search or event post operation |
699 * @param aPlugin The instance of the loaded plugin that performs the |
717 * @param aPlugin The instance of the loaded plugin that performs the |
700 * contact fetch operation. |
718 * contact fetch operation. |
701 * @param aOperation The type of operation to be performed |
719 * @param aOperation The type of operation to be performed |
702 * @param aInputData The data required to create the web query |
720 * @param aInputData The data required to create the web query |
703 * @param aReqData [out] The request data created by the plugin |
721 * @param aReqData [out] The request data created by the plugin |
705 * SmfPluginErrNone (if request is created successfully) or |
723 * SmfPluginErrNone (if request is created successfully) or |
706 * SmfPluginErrServiceNotSupported (if the service requested is not known or unsupported) or |
724 * SmfPluginErrServiceNotSupported (if the service requested is not known or unsupported) or |
707 * SmfPluginErrInvalidArguments (if the arguments are invalid) or |
725 * SmfPluginErrInvalidArguments (if the arguments are invalid) or |
708 * SmfPluginErrRequestNotCreated (if request could not be created) |
726 * SmfPluginErrRequestNotCreated (if request could not be created) |
709 */ |
727 */ |
710 SmfPluginError SmfPluginManagerUtil::createMusicEventsRequest ( QObject *aPlugin, |
728 SmfPluginError SmfPluginManagerUtil::createEventsFetcherRequest ( QObject *aPlugin, |
711 const SmfRequestTypeID &aOperation, |
729 const SmfRequestTypeID &aOperation, |
712 QByteArray &aInputData, |
730 QByteArray &aInputData, |
713 SmfPluginRequestData &aReqData ) |
731 SmfPluginRequestData &aReqData ) |
714 { |
732 { |
715 qDebug()<<"SmfPluginManagerUtil::createMusicEventsRequest"; |
733 qDebug()<<"SmfPluginManagerUtil::createEventsFetcherRequest"; |
716 |
734 |
717 // typecast instance to SmfMusicEventsPlugin |
735 // typecast instance to SmfEventsFetcherPlugin |
718 SmfMusicEventsPlugin *plugin = qobject_cast<SmfMusicEventsPlugin *>(aPlugin); |
736 SmfEventsFetcherPlugin *plugin = qobject_cast<SmfEventsFetcherPlugin *>(aPlugin); |
719 SmfPluginError pluginErrorVal = SmfPluginErrServiceNotSupported; |
737 SmfPluginError pluginErrorVal = SmfPluginErrServiceNotSupported; |
720 |
738 |
721 if(plugin) |
739 if(plugin) |
722 { |
740 { |
723 QDataStream stream(aInputData); |
741 QDataStream stream(aInputData); |
725 SmfLocation location; |
743 SmfLocation location; |
726 quint8 flag = 0; |
744 quint8 flag = 0; |
727 |
745 |
728 switch(aOperation) |
746 switch(aOperation) |
729 { |
747 { |
730 case SmfMusicGetEventsOnLoc: |
748 case SmfEventsGetEvents: |
731 qDebug()<<"Plugin Operation requested : events() OnLoc"; |
749 qDebug()<<"Plugin Operation requested : events()"; |
732 stream>>flag; |
750 stream>>flag; |
733 stream>>location; |
751 stream>>location; |
734 stream>>flag; |
752 stream>>flag; |
735 stream>>pageNum; |
753 stream>>pageNum; |
736 stream>>flag; |
754 stream>>flag; |
737 stream>>itemPerPage; |
755 stream>>itemPerPage; |
738 pluginErrorVal = plugin->events(aReqData, location, pageNum, itemPerPage); |
756 pluginErrorVal = plugin->events(aReqData, location, pageNum, itemPerPage); |
739 break; |
757 break; |
740 |
758 |
741 case SmfMusicGetVenueOnLoc: |
759 case SmfEventsGetVenues: |
742 qDebug()<<"Plugin Operation requested : venues()"; |
760 qDebug()<<"Plugin Operation requested : venues()"; |
743 stream>>flag; |
761 stream>>flag; |
744 stream>>location; |
762 stream>>location; |
745 stream>>flag; |
763 stream>>flag; |
746 stream>>pageNum; |
764 stream>>pageNum; |
747 stream>>flag; |
765 stream>>flag; |
748 stream>>itemPerPage; |
766 stream>>itemPerPage; |
749 pluginErrorVal = plugin->venues(aReqData, location, pageNum, itemPerPage); |
767 pluginErrorVal = plugin->venues(aReqData, location, pageNum, itemPerPage); |
750 break; |
768 break; |
751 |
769 |
752 case SmfMusicPostEvents: |
770 case SmfEventsGetEventAttendees: |
|
771 { |
|
772 qDebug()<<"Plugin Operation requested : attendees()"; |
|
773 SmfEvent event; |
|
774 stream>>flag; |
|
775 stream>>event; |
|
776 stream>>flag; |
|
777 stream>>pageNum; |
|
778 stream>>flag; |
|
779 stream>>itemPerPage; |
|
780 pluginErrorVal = plugin->attendees(aReqData, event, pageNum, itemPerPage); |
|
781 break; |
|
782 } |
|
783 |
|
784 case SmfEventsPostEvents: |
753 { |
785 { |
754 qDebug()<<"Plugin Operation requested : postEvents()"; |
786 qDebug()<<"Plugin Operation requested : postEvents()"; |
755 QList<SmfEvent> list; |
787 QList<SmfEvent> list; |
756 stream>>flag; |
788 stream>>flag; |
757 stream>>list; |
789 stream>>list; |
758 pluginErrorVal = plugin->postEvents(aReqData, list); |
790 pluginErrorVal = plugin->postEvents(aReqData, list); |
759 break; |
791 break; |
760 } |
792 } |
761 |
793 |
762 case SmfMusicEventsCustomRequest: |
794 case SmfEventsCustomRequest: |
763 { |
795 { |
764 qDebug()<<"Plugin Operation requested : customRequest()"; |
796 qDebug()<<"Plugin Operation requested : customRequest()"; |
765 int operationType; |
797 int operationType; |
766 stream>>flag; |
798 stream>>flag; |
767 stream>>operationType; |
799 stream>>operationType; |
831 stream>>flag; |
863 stream>>flag; |
832 stream>>itemPerPage; |
864 stream>>itemPerPage; |
833 pluginErrorVal = plugin->recommendations(aReqData, trackInfo, pageNum, itemPerPage); |
865 pluginErrorVal = plugin->recommendations(aReqData, trackInfo, pageNum, itemPerPage); |
834 break; |
866 break; |
835 |
867 |
836 case SmfMusicGetTracks: |
868 case SmfMusicGetTracksSimilar: |
837 qDebug()<<"Plugin Operation requested : tracks()"; |
869 qDebug()<<"Plugin Operation requested : tracksSimilar()"; |
838 stream>>flag; |
870 stream>>flag; |
839 stream>>trackInfo; |
871 stream>>trackInfo; |
840 stream>>flag; |
872 stream>>flag; |
841 stream>>pageNum; |
873 stream>>pageNum; |
842 stream>>flag; |
874 stream>>flag; |
843 stream>>itemPerPage; |
875 stream>>itemPerPage; |
844 pluginErrorVal = plugin->tracks(aReqData, trackInfo, pageNum, itemPerPage); |
876 pluginErrorVal = plugin->tracksSimilar(aReqData, trackInfo, pageNum, itemPerPage); |
845 break; |
877 break; |
|
878 |
|
879 case SmfMusicGetTracksOfAlbum: |
|
880 { |
|
881 qDebug()<<"Plugin Operation requested : tracksOfAlbum()"; |
|
882 SmfAlbum album; |
|
883 stream>>flag; |
|
884 stream>>album; |
|
885 stream>>flag; |
|
886 stream>>pageNum; |
|
887 stream>>flag; |
|
888 stream>>itemPerPage; |
|
889 pluginErrorVal = plugin->tracksOfAlbum(aReqData, album, pageNum, itemPerPage); |
|
890 break; |
|
891 } |
|
892 |
|
893 case SmfMusicGetTracksOfArtist: |
|
894 { |
|
895 qDebug()<<"Plugin Operation requested : tracksOfArtist()"; |
|
896 SmfArtists artist; |
|
897 stream>>flag; |
|
898 stream>>artist; |
|
899 stream>>flag; |
|
900 stream>>pageNum; |
|
901 stream>>flag; |
|
902 stream>>itemPerPage; |
|
903 pluginErrorVal = plugin->tracksOfArtist(aReqData, artist, pageNum, itemPerPage); |
|
904 break; |
|
905 } |
846 |
906 |
847 case SmfMusicGetTrackInfo: |
907 case SmfMusicGetTrackInfo: |
848 { |
908 { |
849 qDebug()<<"Plugin Operation requested : trackInfo()"; |
909 qDebug()<<"Plugin Operation requested : trackInfo()"; |
850 SmfMusicFingerPrint fp; |
910 SmfMusicFingerPrint fp; |
931 quint8 flag = 0; |
991 quint8 flag = 0; |
932 |
992 |
933 switch(aOperation) |
993 switch(aOperation) |
934 { |
994 { |
935 case SmfMusicGetUserInfo: |
995 case SmfMusicGetUserInfo: |
936 qDebug()<<"Plugin Operation requested : userInfo()"; |
996 qDebug()<<"Plugin Operation requested : userMusicInfo()"; |
937 pluginErrorVal = plugin->userInfo(aReqData); |
997 pluginErrorVal = plugin->userMusicInfo(aReqData); |
938 break; |
998 break; |
|
999 |
|
1000 case SmfMusicSearchArtist: |
|
1001 { |
|
1002 qDebug()<<"Plugin Operation requested : searchArtist() for Music"; |
|
1003 SmfArtists artist; |
|
1004 stream>>flag; |
|
1005 stream>>artist; |
|
1006 stream>>flag; |
|
1007 stream>>pageNum; |
|
1008 stream>>flag; |
|
1009 stream>>itemPerPage; |
|
1010 pluginErrorVal = plugin->searchArtist(aReqData, artist, pageNum, itemPerPage); |
|
1011 break; |
|
1012 } |
|
1013 |
|
1014 case SmfMusicSearchAlbum: |
|
1015 { |
|
1016 qDebug()<<"Plugin Operation requested : searchAlbum() for Music"; |
|
1017 SmfAlbum album; |
|
1018 stream>>flag; |
|
1019 stream>>album; |
|
1020 stream>>flag; |
|
1021 stream>>pageNum; |
|
1022 stream>>flag; |
|
1023 stream>>itemPerPage; |
|
1024 pluginErrorVal = plugin->searchAlbum(aReqData, album, pageNum, itemPerPage); |
|
1025 break; |
|
1026 } |
|
1027 |
|
1028 case SmfMusicSearchEvent: |
|
1029 { |
|
1030 qDebug()<<"Plugin Operation requested : searchEvents() for Music"; |
|
1031 SmfEvent event; |
|
1032 stream>>flag; |
|
1033 stream>>event; |
|
1034 stream>>flag; |
|
1035 stream>>pageNum; |
|
1036 stream>>flag; |
|
1037 stream>>itemPerPage; |
|
1038 pluginErrorVal = plugin->searchEvents(aReqData, event, pageNum, itemPerPage); |
|
1039 break; |
|
1040 } |
|
1041 |
|
1042 case SmfMusicSearchVenue: |
|
1043 { |
|
1044 qDebug()<<"Plugin Operation requested : searchVenue() for Music"; |
|
1045 SmfLocation place; |
|
1046 stream>>flag; |
|
1047 stream>>place; |
|
1048 stream>>flag; |
|
1049 stream>>pageNum; |
|
1050 stream>>flag; |
|
1051 stream>>itemPerPage; |
|
1052 pluginErrorVal = plugin->searchVenue(aReqData, place, pageNum, itemPerPage); |
|
1053 break; |
|
1054 } |
939 |
1055 |
940 case SmfMusicSearchUser: |
1056 case SmfMusicSearchUser: |
941 { |
1057 { |
942 qDebug()<<"Plugin Operation requested : serachNear() for Music"; |
1058 qDebug()<<"Plugin Operation requested : serachNear() for Music"; |
943 SmfLocation place; |
1059 SmfLocation place; |
1422 case SmfContactSharePost: |
1538 case SmfContactSharePost: |
1423 case SmfContactPostCustomRequest: |
1539 case SmfContactPostCustomRequest: |
1424 case SmfMusicGetLyrics: |
1540 case SmfMusicGetLyrics: |
1425 case SmfMusicGetSubtitle: |
1541 case SmfMusicGetSubtitle: |
1426 case SmfMusicLyricsCustomRequest: |
1542 case SmfMusicLyricsCustomRequest: |
1427 case SmfMusicGetEventsOnLoc: |
1543 case SmfEventsGetEvents: |
1428 case SmfMusicGetVenueOnLoc: |
1544 case SmfEventsGetVenues: |
1429 case SmfMusicPostEvents: |
1545 case SmfEventsGetEventAttendees: |
1430 case SmfMusicEventsCustomRequest: |
1546 case SmfEventsPostEvents: |
|
1547 case SmfEventsCustomRequest: |
1431 case SmfMusicGetRecommendations: |
1548 case SmfMusicGetRecommendations: |
1432 case SmfMusicGetTracks: |
1549 case SmfMusicGetTracksSimilar: |
|
1550 case SmfMusicGetTracksOfAlbum: |
|
1551 case SmfMusicGetTracksOfArtist: |
1433 case SmfMusicGetTrackInfo: |
1552 case SmfMusicGetTrackInfo: |
1434 case SmfMusicGetStores: |
1553 case SmfMusicGetStores: |
1435 case SmfMusicSearchCustomRequest: |
1554 case SmfMusicSearchCustomRequest: |
1436 case SmfMusicGetUserInfo: |
1555 case SmfMusicGetUserInfo: |
|
1556 case SmfMusicSearchArtist: |
|
1557 case SmfMusicSearchAlbum: |
|
1558 case SmfMusicSearchEvent: |
|
1559 case SmfMusicSearchVenue: |
1437 case SmfMusicSearchUser: |
1560 case SmfMusicSearchUser: |
1438 case SmfMusicPostCurrentPlaying: |
1561 case SmfMusicPostCurrentPlaying: |
1439 case SmfMusicPostRating: |
1562 case SmfMusicPostRating: |
1440 case SmfMusicPostComment: |
1563 case SmfMusicPostComment: |
1441 case SmfMusicServiceCustomRequest: |
1564 case SmfMusicServiceCustomRequest: |
1604 aDataStream<<subtitleList; |
1727 aDataStream<<subtitleList; |
1605 |
1728 |
1606 break; |
1729 break; |
1607 } |
1730 } |
1608 |
1731 |
1609 // FOR MUSIC - EVENTS |
1732 // FOR EVENTS - FETCHER |
1610 case SmfMusicGetEventsOnLoc: |
1733 case SmfEventsGetEvents: |
1611 { |
1734 { |
1612 qDebug()<<"Serializing to : QList<SmfEvent>"; |
1735 qDebug()<<"Serializing to : QList<SmfEvent>"; |
1613 QList<SmfEvent> eventList; |
1736 QList<SmfEvent> eventList; |
1614 if( aResult->canConvert<SmfEventList>() ) |
1737 if( aResult->canConvert<SmfEventList>() ) |
1615 eventList = aResult->value<SmfEventList>(); |
1738 eventList = aResult->value<SmfEventList>(); |
1616 aDataStream<<eventList; |
1739 aDataStream<<eventList; |
1617 |
1740 |
1618 break; |
1741 break; |
1619 } |
1742 } |
1620 |
1743 |
1621 case SmfMusicGetVenueOnLoc: |
1744 case SmfEventsGetVenues: |
1622 { |
1745 { |
1623 qDebug()<<"Serializing to : QList<SmfLocation>"; |
1746 qDebug()<<"Serializing to : QList<SmfLocation>"; |
1624 QList<SmfLocation> venueList; |
1747 QList<SmfLocation> venueList; |
1625 if( aResult->canConvert<SmfLocationList>() ) |
1748 if( aResult->canConvert<SmfLocationList>() ) |
1626 venueList = aResult->value<SmfLocationList>(); |
1749 venueList = aResult->value<SmfLocationList>(); |
1627 aDataStream<<venueList; |
1750 aDataStream<<venueList; |
1628 break; |
1751 break; |
1629 } |
1752 } |
|
1753 |
|
1754 case SmfEventsGetEventAttendees: |
|
1755 { |
|
1756 qDebug()<<"Serializing to : QList<SmfContact>"; |
|
1757 QList<SmfContact> contactList; |
|
1758 if( aResult->canConvert<SmfContactList>() ) |
|
1759 contactList = aResult->value<SmfContactList>(); |
|
1760 aDataStream<<contactList; |
|
1761 break; |
|
1762 } |
1630 |
1763 |
1631 case SmfMusicPostEvents: |
1764 case SmfEventsPostEvents: |
1632 { |
1765 { |
1633 qDebug()<<"Serializing to : bool"; |
1766 qDebug()<<"Serializing to : bool"; |
1634 bool value; |
1767 bool value; |
1635 if( QVariant::Bool == aResult->type() ) |
1768 if( QVariant::Bool == aResult->type() ) |
1636 value = aResult->toBool(); |
1769 value = aResult->toBool(); |
1638 break; |
1771 break; |
1639 } |
1772 } |
1640 |
1773 |
1641 // FOR MUSIC - SEARCH |
1774 // FOR MUSIC - SEARCH |
1642 case SmfMusicGetRecommendations: |
1775 case SmfMusicGetRecommendations: |
1643 case SmfMusicGetTracks: |
1776 case SmfMusicGetTracksSimilar: |
|
1777 case SmfMusicGetTracksOfAlbum: |
|
1778 case SmfMusicGetTracksOfArtist: |
1644 case SmfMusicGetTrackInfo: |
1779 case SmfMusicGetTrackInfo: |
1645 { |
1780 { |
1646 qDebug()<<"Serializing to : QList<SmfTrackInfo>"; |
1781 qDebug()<<"Serializing to : QList<SmfTrackInfo>"; |
1647 QList<SmfTrackInfo> trackList; |
1782 QList<SmfTrackInfo> trackList; |
1648 if( aResult->canConvert<SmfTrackInfoList>() ) |
1783 if( aResult->canConvert<SmfTrackInfoList>() ) |
1671 user = aResult->value<SmfMusicProfile>(); |
1806 user = aResult->value<SmfMusicProfile>(); |
1672 aDataStream<<user; |
1807 aDataStream<<user; |
1673 break; |
1808 break; |
1674 } |
1809 } |
1675 |
1810 |
|
1811 case SmfMusicSearchArtist: |
|
1812 { |
|
1813 qDebug()<<"Serializing to : QList<SmfArtists>"; |
|
1814 QList<SmfArtists> artistsList; |
|
1815 if( aResult->canConvert<SmfArtistsList>() ) |
|
1816 artistsList = aResult->value<SmfArtistsList>(); |
|
1817 aDataStream<<artistsList; |
|
1818 break; |
|
1819 } |
|
1820 |
|
1821 case SmfMusicSearchAlbum: |
|
1822 { |
|
1823 qDebug()<<"Serializing to : QList<SmfAlbum>"; |
|
1824 QList<SmfAlbum> albumList; |
|
1825 if( aResult->canConvert<SmfAlbumList>() ) |
|
1826 albumList = aResult->value<SmfAlbumList>(); |
|
1827 aDataStream<<albumList; |
|
1828 break; |
|
1829 } |
|
1830 |
|
1831 case SmfMusicSearchEvent: |
|
1832 { |
|
1833 qDebug()<<"Serializing to : QList<SmfEvent>"; |
|
1834 QList<SmfEvent> eventList; |
|
1835 if( aResult->canConvert<SmfEventList>() ) |
|
1836 eventList = aResult->value<SmfEventList>(); |
|
1837 aDataStream<<eventList; |
|
1838 break; |
|
1839 } |
|
1840 |
|
1841 case SmfMusicSearchVenue: |
|
1842 { |
|
1843 qDebug()<<"Serializing to : QList<SmfLocation>"; |
|
1844 QList<SmfLocation> venueList; |
|
1845 if( aResult->canConvert<SmfLocationList>() ) |
|
1846 venueList = aResult->value<SmfLocationList>(); |
|
1847 aDataStream<<venueList; |
|
1848 break; |
|
1849 } |
|
1850 |
1676 case SmfMusicSearchUser: |
1851 case SmfMusicSearchUser: |
1677 { |
1852 { |
1678 qDebug()<<"Serializing to : QList<SmfMusicProfile>"; |
1853 qDebug()<<"Serializing to : QList<SmfMusicProfile>"; |
1679 QList<SmfMusicProfile> userList; |
1854 QList<SmfMusicProfile> userList; |
1680 if( aResult->canConvert<SmfMusicProfileList>() ) |
1855 if( aResult->canConvert<SmfMusicProfileList>() ) |
1763 |
1938 |
1764 // FOR ALL INTERFACES CUSTOM REQUESTS |
1939 // FOR ALL INTERFACES CUSTOM REQUESTS |
1765 case SmfContactCustomRequest: |
1940 case SmfContactCustomRequest: |
1766 case SmfContactPostCustomRequest: |
1941 case SmfContactPostCustomRequest: |
1767 case SmfMusicLyricsCustomRequest: |
1942 case SmfMusicLyricsCustomRequest: |
1768 case SmfMusicEventsCustomRequest: |
1943 case SmfEventsCustomRequest: |
1769 case SmfMusicSearchCustomRequest: |
1944 case SmfMusicSearchCustomRequest: |
1770 case SmfMusicServiceCustomRequest: |
1945 case SmfMusicServiceCustomRequest: |
1771 case SmfMusicPlaylistCustomRequest: |
1946 case SmfMusicPlaylistCustomRequest: |
1772 case SmfPictureCustomRequest: |
1947 case SmfPictureCustomRequest: |
1773 case SmfActivityCustomRequest: |
1948 case SmfActivityCustomRequest: |
1795 */ |
1970 */ |
1796 void SmfPluginManagerUtil::convertPluginErrorType( |
1971 void SmfPluginManagerUtil::convertPluginErrorType( |
1797 const SmfPluginError &aPluginError, |
1972 const SmfPluginError &aPluginError, |
1798 SmfError &aSMFError ) |
1973 SmfError &aSMFError ) |
1799 { |
1974 { |
1800 qDebug()<<"Converting Plugin error code to SmfError"; |
|
1801 switch(aPluginError) |
1975 switch(aPluginError) |
1802 { |
1976 { |
1803 case SmfPluginErrNone: |
1977 case SmfPluginErrNone: |
1804 aSMFError = SmfNoError; |
1978 aSMFError = SmfNoError; |
1805 break; |
1979 break; |