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 services |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef SMFMUSICSERVICEPLUGIN_H_ |
|
22 #define SMFMUSICSERVICEPLUGIN_H_ |
|
23 |
|
24 #include <smfpluginbase.h> |
|
25 #include <smfmusicprofile.h> |
|
26 #include <smfplace.h> |
|
27 |
|
28 // Forward declaration |
|
29 class SmfPluginUtil; |
|
30 |
|
31 /** |
|
32 * @ingroup smf_plugin_group |
|
33 * Interface specification for music services. This class provides basic |
|
34 * functionality to allow application to search for a user or check for |
|
35 * user information etc. |
|
36 * |
|
37 * All of the functionality described here should be implemented by a service |
|
38 * specific plug-in. |
|
39 */ |
|
40 class SmfMusicServicePlugin : public SmfPluginBase |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * Constructor with default argument |
|
45 * @param aUtil The SmfPluginUtil instance. The plugins can |
|
46 * call the method getAuthKeys() of this class, with its pluginID to |
|
47 * get the OAuth keys, keys are returned only if this plugin is |
|
48 * authorised by Smf franework |
|
49 */ |
|
50 SmfMusicServicePlugin( SmfPluginUtil *aUtil ); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 ~SmfMusicServicePlugin( ); |
|
56 |
|
57 /** |
|
58 * Method to get self profile information |
|
59 * @param aRequest [out] The request data to be sent to network |
|
60 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
|
61 */ |
|
62 virtual SmfPluginError userInfo( SmfPluginRequestData &aRequest ) = 0; |
|
63 |
|
64 /** |
|
65 * Method to search information about other service users for a |
|
66 * particular place |
|
67 * @param aRequest [out] The request data to be sent to network |
|
68 * @param aPlace The place which is the search criteria |
|
69 * @param aPageNum The page to be extracted |
|
70 * @param aItemsPerPage Number of items per page |
|
71 * @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
|
72 */ |
|
73 virtual SmfPluginError searchUser( SmfPluginRequestData &aRequest, |
|
74 const SmfPlace &aPlace, |
|
75 const int aPageNum = SMF_FIRST_PAGE, |
|
76 const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0; |
|
77 |
|
78 }; |
|
79 |
|
80 Q_DECLARE_INTERFACE( SmfMusicServicePlugin, "org.symbian.smf.plugin.music.service/v1.0" ); |
|
81 |
|
82 #endif /* SMFMUSICSERVICEPLUGIN_H_ */ |
|