1 /** |
|
2 * Copyright (c) 2010 Sasken Communication Technologies Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html" |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Manasij Roy, Nalina Hariharan |
|
14 * |
|
15 * Description: |
|
16 * Interface specification for music events |
|
17 * Note: This class has dependencies on QtMobility project |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef SMFMUSICEVENTSPLUGIN_H_ |
|
23 #define SMFMUSICEVENTSPLUGIN_H_ |
|
24 |
|
25 #include <smfpluginbase.h> |
|
26 #include <smfevent.h> |
|
27 #include <smflocation.h> |
|
28 #include <qgeopositioninfo.h> // Qt mobility class |
|
29 |
|
30 using namespace QtMobility; |
|
31 |
|
32 /** |
|
33 * @ingroup smf_plugin_group |
|
34 * Interface specification for music events |
|
35 * |
|
36 * All of the functionality described here should be implemented by a service |
|
37 * specific plug-in. |
|
38 * |
|
39 * Note: This class has dependencies on QtMobility project |
|
40 */ |
|
41 class SmfMusicEventsPlugin : public SmfPluginBase |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 virtual ~SmfMusicEventsPlugin( ) {} |
|
49 |
|
50 /** |
|
51 * Method to get the events based on location |
|
52 * @param aRequest [out] The request data to be sent to network |
|
53 * @param aLocation Location of the event |
|
54 * @param aPageNum The page to be extracted |
|
55 * @param aItemsPerPage Number of items per page |
|
56 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
|
57 */ |
|
58 virtual SmfPluginError events( SmfPluginRequestData &aRequest, |
|
59 const QGeoPositionInfo &aLocation, |
|
60 const int aPageNum = SMF_FIRST_PAGE, |
|
61 const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
|
62 |
|
63 /** |
|
64 * Method to get the venues based on location |
|
65 * @param aRequest [out] The request data to be sent to network |
|
66 * @param aLocation Location of the venue |
|
67 * @param aPageNum The page to be extracted |
|
68 * @param aItemsPerPage Number of items per page |
|
69 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
|
70 */ |
|
71 virtual SmfPluginError venues( SmfPluginRequestData &aRequest, |
|
72 const QGeoPositionInfo &aLocation, |
|
73 const int aPageNum = SMF_FIRST_PAGE, |
|
74 const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
|
75 |
|
76 /** |
|
77 * Method to get the events based on venues |
|
78 * @param aRequest [out] The request data to be sent to network |
|
79 * @param aVenue Venue of the event |
|
80 * @param aPageNum The page to be extracted |
|
81 * @param aItemsPerPage Number of items per page |
|
82 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
|
83 */ |
|
84 virtual SmfPluginError events( SmfPluginRequestData &aRequest, |
|
85 const SmfLocation &aVenue, |
|
86 const int aPageNum = SMF_FIRST_PAGE, |
|
87 const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
|
88 |
|
89 /** |
|
90 * Method to post events |
|
91 * @param aRequest [out] The request data to be sent to network |
|
92 * @param aEventList The list of events to be posted |
|
93 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
|
94 */ |
|
95 virtual SmfPluginError postEvents( SmfPluginRequestData &aRequest, |
|
96 const QList<SmfEvent> &aEventList ) = 0; |
|
97 |
|
98 /** |
|
99 * Customised method for SmfMusicEventsPlugin interface |
|
100 * @param aRequest [out] The request data to be sent to network |
|
101 * @param aOperation The operation type (should be known between |
|
102 * the client interface and the plugin) |
|
103 * @param aData The data required to form the request (The type |
|
104 * of data should be known between client and the plugin) |
|
105 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
|
106 */ |
|
107 virtual SmfPluginError customRequest( SmfPluginRequestData &aRequest, |
|
108 const int &aOperation, QByteArray *aData ) = 0; |
|
109 |
|
110 }; |
|
111 |
|
112 Q_DECLARE_INTERFACE( SmfMusicEventsPlugin, "org.symbian.smf.plugin.music.events/v1.0" ); |
|
113 |
|
114 #endif /* SMFMUSICEVENTSPLUGIN_H_ */ |
|