51 * Destructor |
52 * Destructor |
52 */ |
53 */ |
53 ~SmfMusicEventsPlugin( ); |
54 ~SmfMusicEventsPlugin( ); |
54 |
55 |
55 /** |
56 /** |
56 * Method to get the provider information |
|
57 * @return Instance of SmfProviderBase |
|
58 */ |
|
59 virtual SmfProviderBase* getProviderInfo( ) = 0; |
|
60 |
|
61 /** |
|
62 * Method to get the events based on location |
57 * Method to get the events based on location |
|
58 * @param aRequest [out] The request data to be sent to network |
63 * @param aLocation Location of the event |
59 * @param aLocation Location of the event |
64 * @param aRequest [out] The request data to be sent to network |
|
65 * @param aPageNum The page to be extracted |
60 * @param aPageNum The page to be extracted |
66 * @param aItemsPerPage Number of items per page |
61 * @param aItemsPerPage Number of items per page |
67 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
62 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
68 */ |
63 */ |
69 virtual SmfPluginError events( const QtMobility::QContactGeolocation aLocation, |
64 virtual SmfPluginError events( SmfPluginRequestData *aRequest, |
70 SmfPluginRequestData *aRequest, |
65 const QtMobility::QContactGeolocation aLocation, |
71 const int aPageNum = 0, |
66 const int aPageNum = SMF_FIRST_PAGE, |
72 const int aItemsPerPage = 10 ) = 0; |
67 const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
73 |
68 |
74 /** |
69 /** |
75 * Method to get the venues based on location |
70 * Method to get the venues based on location |
|
71 * @param aRequest [out] The request data to be sent to network |
76 * @param aLocation Location of the venue |
72 * @param aLocation Location of the venue |
77 * @param aRequest [out] The request data to be sent to network |
|
78 * @param aPageNum The page to be extracted |
73 * @param aPageNum The page to be extracted |
79 * @param aItemsPerPage Number of items per page |
74 * @param aItemsPerPage Number of items per page |
80 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
75 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
81 */ |
76 */ |
82 virtual SmfPluginError venues( const QtMobility::QContactGeolocation aLocation, |
77 virtual SmfPluginError venues( SmfPluginRequestData *aRequest, |
83 SmfPluginRequestData *aRequest, |
78 const QtMobility::QContactGeolocation aLocation, |
84 const int aPageNum = 0, |
79 const int aPageNum = SMF_FIRST_PAGE, |
85 const int aItemsPerPage = 10 ) = 0; |
80 const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
86 |
81 |
87 /** |
82 /** |
88 * Method to get the events based on venues |
83 * Method to get the events based on venues |
|
84 * @param aRequest [out] The request data to be sent to network |
89 * @param aVenue Venue of the event |
85 * @param aVenue Venue of the event |
90 * @param aRequest [out] The request data to be sent to network |
|
91 * @param aPageNum The page to be extracted |
86 * @param aPageNum The page to be extracted |
92 * @param aItemsPerPage Number of items per page |
87 * @param aItemsPerPage Number of items per page |
93 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
88 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
94 */ |
89 */ |
95 virtual SmfPluginError events( const SmfVenue aVenue, |
90 virtual SmfPluginError events( SmfPluginRequestData *aRequest, |
96 SmfPluginRequestData *aRequest, |
91 const SmfPlace aVenue, |
97 const int aPageNum = 0, |
92 const int aPageNum = SMF_FIRST_PAGE, |
98 const int aItemsPerPage = 10 ) = 0; |
93 const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
99 |
94 |
100 /** |
95 /** |
101 * Method to post events |
96 * Method to post events |
102 * of posting the events is available |
97 * @param aRequest [out] The request data to be sent to network |
103 * @param aEventList The list of events to be posted |
98 * @param aEventList The list of events to be posted |
104 * @param aRequest [out] The request data to be sent to network |
|
105 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
99 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
106 */ |
100 */ |
107 virtual SmfPluginError postEvents( const QList<SmfEvent> aEventList, |
101 virtual SmfPluginError postEvents( SmfPluginRequestData *aRequest, |
108 SmfPluginRequestData *aRequest ) = 0; |
102 const QList<SmfEvent> aEventList ) = 0; |
109 |
|
110 |
|
111 /** |
|
112 * Method to get the result for a network request. |
|
113 * @param aTransportResult The result of transport operation |
|
114 * @param aReply The QNetworkReply instance for the request |
|
115 * @param aResult [out] An output parameter to the plugin manager.If the |
|
116 * return value is SmfSendRequestAgain, QVariant will be of type |
|
117 * SmfPluginRequestData. |
|
118 * If last operation was events(), aResult will be of type QList<SmfEvent> |
|
119 * If last operation was venues(), aResult will be of type QList<SmfVenue> |
|
120 * If last operation was postEvents(), aResult will be of type bool |
|
121 * @param aRetType [out] SmfPluginRetType |
|
122 * @param aIsLastPage [out] true if this the last page, else false |
|
123 * @return SmfPluginError |
|
124 */ |
|
125 virtual SmfPluginError responseAvailable( |
|
126 const SmfTransportResult aTransportResult, |
|
127 QNetworkReply *aReply, |
|
128 QVariant* aResult, |
|
129 SmfPluginRetType aRetType, |
|
130 bool aIsLastPage) = 0; |
|
131 |
103 |
132 }; |
104 }; |
133 |
105 |
134 Q_DECLARE_INTERFACE( SmfMusicEventsPlugin, "org.symbian.smf.plugin.music.events/v1.0" ); |
106 Q_DECLARE_INTERFACE( SmfMusicEventsPlugin, "org.symbian.smf.plugin.music.events/v1.0" ); |
135 |
107 |