author | cgandhi |
Mon, 11 Oct 2010 21:59:54 +0530 | |
changeset 26 | 83d6a149c755 |
parent 23 | 574948b60dab |
permissions | -rw-r--r-- |
23
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
1 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
2 |
* Copyright (c) 2010 Sasken Communication Technologies Ltd. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
3 |
* All rights reserved. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
5 |
* under the terms of the "Eclipse Public License v1.0" |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html" |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
8 |
* |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
9 |
* Initial Contributors: |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
10 |
* Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
11 |
* |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
12 |
* Contributors: |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
13 |
* Nalina Hariharan |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
14 |
* |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
15 |
* Description: |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
16 |
* The Plugin that does music search related functionalities from last.fm site |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
17 |
* |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
18 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
19 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
20 |
#ifndef _LASTFMMUSICSEARCHPLUGIN_H |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
21 |
#define _LASTFMMUSICSEARCHPLUGIN_H |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
22 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
23 |
// Include files |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
24 |
#include <smfmusicsearchplugin.h> |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
25 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
26 |
// Class declaration |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
27 |
class LastFmMusicSearchProviderBase; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
28 |
class QVariant; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
29 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
30 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
31 |
* The Plugin does music serach related functionalities from last.fm site |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
32 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
33 |
class LastFmMusicSearchPlugin : public QObject, public SmfMusicSearchPlugin |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
34 |
{ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
35 |
Q_OBJECT |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
36 |
Q_INTERFACES( SmfMusicSearchPlugin SmfPluginBase ) |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
37 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
38 |
public: |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
39 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
40 |
* Destructor |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
41 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
42 |
virtual ~LastFmMusicSearchPlugin ( ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
43 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
44 |
public: // From SmfMusicSearchPlugin interface |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
45 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
46 |
* Method to get recommended tracks |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
47 |
* @param aRequest [out] The request data to be sent to network |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
48 |
* @param aTrack The track for which similar recommendations |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
49 |
* need to be fetched. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
50 |
* @param aPageNum The page to be extracted |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
51 |
* @param aItemsPerPage Number of items per page |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
52 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
53 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
54 |
SmfPluginError recommendations( SmfPluginRequestData &aRequest, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
55 |
const SmfTrackInfo &aTrack, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
56 |
const int aPageNum = SMF_FIRST_PAGE, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
57 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
58 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
59 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
60 |
* Method to search for tracks similar to a given track |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
61 |
* @param aRequest [out] The request data to be sent to network |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
62 |
* @param aTrack The track for which similar tracks |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
63 |
* need to be fetched. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
64 |
* @param aPageNum The page to be extracted |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
65 |
* @param aItemsPerPage Number of items per page |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
66 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
67 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
68 |
SmfPluginError tracksSimilar( SmfPluginRequestData &aRequest, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
69 |
const SmfTrackInfo &aTrack, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
70 |
const int aPageNum = SMF_FIRST_PAGE, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
71 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
72 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
73 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
74 |
* Method to search for tracks of a given album |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
75 |
* @param aRequest [out] The request data to be sent to network |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
76 |
* @param aAlbum The album whose tracks need to be fetched. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
77 |
* @param aPageNum The page to be extracted |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
78 |
* @param aItemsPerPage Number of items per page |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
79 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
80 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
81 |
SmfPluginError tracksOfAlbum( SmfPluginRequestData &aRequest, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
82 |
const SmfAlbum &aAlbum, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
83 |
const int aPageNum = SMF_FIRST_PAGE, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
84 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
85 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
86 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
87 |
* Method to search for tracks of the given artist(s) |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
88 |
* @param aRequest [out] The request data to be sent to network |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
89 |
* @param aArtist The artist(s) whose tracks need to be fetched. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
90 |
* @param aPageNum The page to be extracted |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
91 |
* @param aItemsPerPage Number of items per page |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
92 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
93 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
94 |
SmfPluginError tracksOfArtist( SmfPluginRequestData &aRequest, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
95 |
const SmfArtists &aArtist, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
96 |
const int aPageNum = SMF_FIRST_PAGE, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
97 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
98 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
99 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
100 |
* Method to get tracks having a similar finger print |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
101 |
* @param aRequest [out] The request data to be sent to network |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
102 |
* @param aSignature The finger print to be searched for need to be |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
103 |
* fetched. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
104 |
* @param aPageNum The page to be extracted |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
105 |
* @param aItemsPerPage Number of items per page |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
106 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
107 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
108 |
SmfPluginError trackInfo( SmfPluginRequestData &aRequest, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
109 |
const SmfMusicFingerPrint &aSignature, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
110 |
const int aPageNum = SMF_FIRST_PAGE, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
111 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
112 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
113 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
114 |
* Method to search information about where to buy this song from |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
115 |
* @param aRequest [out] The request data to be sent to network |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
116 |
* @param aTrack The track for which stores need to be searched |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
117 |
* @param aPageNum The page to be extracted |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
118 |
* @param aItemsPerPage Number of items per page |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
119 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
120 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
121 |
SmfPluginError stores( SmfPluginRequestData &aRequest, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
122 |
const SmfTrackInfo &aTrack, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
123 |
const int aPageNum = SMF_FIRST_PAGE, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
124 |
const int aItemsPerPage = SMF_ITEMS_PER_PAGE ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
125 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
126 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
127 |
* Customised method for SmfMusicSearchPlugin interface |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
128 |
* @param aRequest [out] The request data to be sent to network |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
129 |
* @param aOperation The operation type (should be known between |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
130 |
* the client interface and the plugin) |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
131 |
* @param aData The data required to form the request (The type |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
132 |
* of data should be known between client and the plugin) |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
133 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
134 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
135 |
SmfPluginError customRequest( SmfPluginRequestData &aRequest, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
136 |
const int &aOperation, QByteArray *aData ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
137 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
138 |
public: // From SmfPluginBase interface |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
139 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
140 |
* The first method to be called in the plugin that implements this interface. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
141 |
* If this method is not called, plugin may not behave as expected. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
142 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
143 |
void initialize( ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
144 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
145 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
146 |
* Method to get the provider information |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
147 |
* @return Instance of SmfProviderBase |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
148 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
149 |
SmfProviderBase* getProviderInfo( ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
150 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
151 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
152 |
* Method to get the result for a network request. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
153 |
* @param aOperation The type of operation to be requested |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
154 |
* @param aTransportResult The result of transport operation |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
155 |
* @param aResponse The QByteArray instance containing the network response. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
156 |
* The plugins should delete this instance once they have read the |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
157 |
* data from it. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
158 |
* @param aResult [out] An output parameter to the plugin manager.If the |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
159 |
* return value is SmfSendRequestAgain, QVariant will be of type |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
160 |
* SmfPluginRequestData. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
161 |
* For SmfMusicSearchPlugin: If last operation was recommendations(), |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
162 |
* tracksSimilar() or tracksOfAlbum() or tracksOfArtist() or trackInfo(), |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
163 |
* aResult will be of type QList<SmfTrackInfo>. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
164 |
* If last operation was stores(), aResult will be of type QList<SmfProvider>. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
165 |
* @param aRetType [out] SmfPluginRetType |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
166 |
* @param aPageResult [out] The SmfResultPage structure variable |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
167 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
168 |
SmfPluginError responseAvailable( |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
169 |
const SmfRequestTypeID aOperation, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
170 |
const SmfTransportResult &aTransportResult, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
171 |
QByteArray *aResponse, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
172 |
QVariant* aResult, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
173 |
SmfPluginRetType &aRetType, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
174 |
SmfResultPage &aPageResult ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
175 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
176 |
private: |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
177 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
178 |
* Method called by plugins to generate a signature string from a base string |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
179 |
* @param aBaseString The base string |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
180 |
* @return The md5 hash of the base string |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
181 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
182 |
QString generateSignature(const QString aBaseString); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
183 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
184 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
185 |
* Method to interpret the key sets obtained from credential manager |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
186 |
* @param aApiKey [out] The api key |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
187 |
* @param aApiSecret [out] The api secret |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
188 |
* @param aSessionKey [out] The session key |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
189 |
* @param aToken [out] The session token |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
190 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
191 |
void fetchKeys( QString &aApiKey, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
192 |
QString &aApiSecret, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
193 |
QString &aToken ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
194 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
195 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
196 |
* Method to get the last.fm specific ID of the given album |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
197 |
* @param aRequest [out] The request data to be sent to network |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
198 |
* @param aAlbum The album whose tracks need to be fetched. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
199 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
200 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
201 |
SmfPluginError getAlbumId( SmfPluginRequestData &aRequest, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
202 |
const SmfAlbum &aAlbum ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
203 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
204 |
* Method to search for tracks of a given album using its ID in last.fm |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
205 |
* @param aRequest [out] The request data to be sent to network |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
206 |
* @param aAlbum The album whose tracks need to be fetched. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
207 |
* @return SmfPluginError Plugin error if any, else SmfPluginErrNone |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
208 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
209 |
SmfPluginError getTracksOfAlbum( SmfPluginRequestData &aRequest, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
210 |
const SmfAlbum &aAlbum ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
211 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
212 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
213 |
* Method to get the current country name as per ISO 3166-1 standard. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
214 |
* @return Current country name |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
215 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
216 |
QString currentCountryName() const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
217 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
218 |
private: // Data |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
219 |
LastFmMusicSearchProviderBase *m_provider; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
220 |
}; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
221 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
222 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
223 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
224 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
225 |
* The Plugin class that implements SmfProviderBase for this last.fm plugin |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
226 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
227 |
class LastFmMusicSearchProviderBase : public QObject, public SmfProviderBase |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
228 |
{ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
229 |
Q_OBJECT |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
230 |
Q_INTERFACES( SmfProviderBase ) |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
231 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
232 |
public: |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
233 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
234 |
* Destructor |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
235 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
236 |
virtual ~LastFmMusicSearchProviderBase( ); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
237 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
238 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
239 |
* Method to get the Localisable name of the service. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
240 |
* @return The Localisable name of the service. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
241 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
242 |
QString serviceName( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
243 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
244 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
245 |
* Method to get the Logo of the service |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
246 |
* @return The Logo of the service |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
247 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
248 |
QImage serviceIcon( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
249 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
250 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
251 |
* Method to get the Readable service description |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
252 |
* @return The Readable service description |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
253 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
254 |
QString description( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
255 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
256 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
257 |
* Method to get the Website of the service |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
258 |
* @return The Website of the service |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
259 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
260 |
QUrl serviceUrl( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
261 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
262 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
263 |
* Method to get the URL of the Application providing this service |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
264 |
* @return The URL of the Application providing this service |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
265 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
266 |
QUrl applicationUrl( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
267 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
268 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
269 |
* Method to get the Icon of the application |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
270 |
* @return The Icon of the application |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
271 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
272 |
QImage applicationIcon( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
273 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
274 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
275 |
* Method to get the list of interfaces that this provider support |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
276 |
* @return List of supported Interafces |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
277 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
278 |
QList<QString> supportedInterfaces( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
279 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
280 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
281 |
* Method to get the list of languages supported by this service provider |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
282 |
* @return a QStringList of languages supported by this service |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
283 |
* provider in 2 letter ISO 639-1 format. |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
284 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
285 |
QStringList supportedLanguages( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
286 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
287 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
288 |
* Method to get the Plugin specific ID |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
289 |
* @return The Plugin specific ID |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
290 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
291 |
QString pluginId( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
292 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
293 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
294 |
* Method to get the ID of the authentication application |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
295 |
* for this service |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
296 |
* @param aProgram The authentication application name |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
297 |
* @param aArguments List of arguments required for authentication app |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
298 |
* @param aMode Strting mode for authentication application |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
299 |
* @return The ID of the authentication application |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
300 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
301 |
QString authenticationApp( QString &aProgram, QStringList & aArguments, |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
302 |
QIODevice::OpenModeFlag aMode = QIODevice::ReadWrite ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
303 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
304 |
/** |
26 | 305 |
* Method to get the authentication application process name |
306 |
* @return The authentication application process name (eg: "FlickrAuthApp.exe") |
|
307 |
*/ |
|
308 |
QString authenticationAppName( ) const; |
|
309 |
||
310 |
/** |
|
23
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
311 |
* Method to get the unique registration ID provided by the |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
312 |
* Smf for authorised plugins |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
313 |
* @return The unique registration ID/token provided by the Smf for |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
314 |
* authorised plugins |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
315 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
316 |
QString smfRegistrationId( ) const; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
317 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
318 |
private: |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
319 |
/** |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
320 |
* Method that initializes this class. This method should be called |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
321 |
* from the initialize() method of the FBContactFetcherPlugin class |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
322 |
*/ |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
323 |
void initialize(); |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
324 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
325 |
private: |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
326 |
friend class LastFmMusicSearchPlugin; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
327 |
QString m_serviceName; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
328 |
QImage m_serviceIcon; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
329 |
QString m_description; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
330 |
QUrl m_serviceUrl; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
331 |
QUrl m_applicationUrl; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
332 |
QImage m_applicationIcon; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
333 |
QString m_pluginId; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
334 |
QString m_authAppId; |
26 | 335 |
QString m_authAppName; |
23
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
336 |
QString m_smfRegToken; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
337 |
QList<QString> m_supportedInterfaces; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
338 |
QStringList m_supportedLangs; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
339 |
QDateTime m_validity; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
340 |
}; |
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
341 |
|
574948b60dab
updating the lastfm music plugins and adding the smfhelp.chm
cgandhi
parents:
diff
changeset
|
342 |
#endif //_LASTFMMUSICSEARCHPLUGIN_H |