|
1 /**************************************************************************** |
|
2 ** |
|
3 ** Trolltech hereby grants a license to use the Qt/Eclipse Integration |
|
4 ** plug-in (the software contained herein), in binary form, solely for the |
|
5 ** purpose of creating code to be used with Trolltech's Qt software. |
|
6 ** |
|
7 ** Qt Designer is licensed under the terms of the GNU General Public |
|
8 ** License versions 2.0 and 3.0 ("GPL License"). Trolltech offers users the |
|
9 ** right to use certain no GPL licensed software under the terms of its GPL |
|
10 ** Exception version 1.2 (http://trolltech.com/products/qt/gplexception). |
|
11 ** |
|
12 ** THIS SOFTWARE IS PROVIDED BY TROLLTECH AND ITS CONTRIBUTORS (IF ANY) "AS |
|
13 ** IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
|
14 ** TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
|
15 ** PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER |
|
16 ** OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
|
17 ** EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|
18 ** PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
|
19 ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
|
20 ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
|
21 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
|
22 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." |
|
23 ** |
|
24 ** Since we now have the GPL exception I think that the "special exception |
|
25 ** is no longer needed. The license text proposed above (other than the |
|
26 ** special exception portion of it) is the BSD license and we have added |
|
27 ** the BSD license as a permissible license under the exception. |
|
28 ** |
|
29 ****************************************************************************/ |
|
30 |
|
31 #ifndef SMFTESTMUSICNACTIVITY_H |
|
32 #define SMFTESTMUSICNACTIVITY_H |
|
33 |
|
34 #include <QtGui/QWidget> |
|
35 #include <smfprovider.h> |
|
36 #include <smfcontact.h> |
|
37 #include <smfglobal.h> |
|
38 #include <smfmusic.h> |
|
39 #include <smfplaylist.h> |
|
40 #include <smfmusicfingerprint.h> |
|
41 |
|
42 #include "ui_SmfTestMusicnActivty.h" |
|
43 |
|
44 class SmfContactFetcher; |
|
45 class SmfMusicService; |
|
46 //class SmfPlaylistServicePrivate; |
|
47 class SmfTestApp : public QWidget |
|
48 { |
|
49 Q_OBJECT |
|
50 |
|
51 public: |
|
52 SmfTestApp(QWidget *parent = 0); |
|
53 ~SmfTestApp(); |
|
54 void getFacebookFriends(); |
|
55 void getTracksOfArtists(); |
|
56 void getTracksSimilar(); |
|
57 void getTracksOfAlbom(); |
|
58 void getPlaylist(); |
|
59 void getStoresOfTrac(); |
|
60 void addToPlaylist(); |
|
61 void postCurrentPlayingPlaylist(); |
|
62 |
|
63 private slots: |
|
64 |
|
65 void friendsListAvailable ( SmfContactList* list, SmfError error, SmfResultPage resultPage ); |
|
66 void trackSearchAvailableSlot(SmfTrackInfoList* list, SmfError error, SmfResultPage resultPage);//SmfTrackInfoList *s1 ,SmfError err); |
|
67 void playlistsListAvailableSlot(SmfPlaylistList* playlist ,SmfError error,SmfResultPage page); |
|
68 void storelistsListAvailable(SmfProviderList* ,SmfError ,SmfResultPage); |
|
69 private: |
|
70 Ui::SmfTestApp ui; |
|
71 SmfContactFetcher *m_contactFetcher; |
|
72 SmfProviderList *m_providerList; |
|
73 SmfMusicSearch *m_tracksofartist; |
|
74 SmfMusicSearch *m_tracksimilar; |
|
75 SmfMusicSearch *m_trackofAlbum; |
|
76 SmfPlaylistService *m_Playlist; |
|
77 SmfMusicSearch *m_Stores; |
|
78 }; |
|
79 |
|
80 #endif // SMFTESTMUSICNACTIVITY_H |
|
81 |