|
1 #ifndef HOMEVIEW_H |
|
2 #define HOMEVIEW_H |
|
3 |
|
4 #include <qmainwindow.h> |
|
5 #include <WidgetConstants.h> |
|
6 //#include <smfglobal.h> |
|
7 #include <smfcontact.h> |
|
8 #include <smfpost.h> |
|
9 #include <smfpicturealbum.h> |
|
10 #include <smfactions.h> |
|
11 #include <smfpicture.h> |
|
12 #include <smfcontactfetcher.h> |
|
13 #include <smfpostprovider.h> |
|
14 #include <smfgallery.h> |
|
15 #include <smfactivityfetcher.h> |
|
16 |
|
17 //added by sangeeta |
|
18 #include <smfplaylist.h> |
|
19 #include <smfmusic.h> |
|
20 #include "ImageDownload.h" |
|
21 |
|
22 class CustomListWidget; |
|
23 class GridView; |
|
24 |
|
25 class HomeView : public QObject |
|
26 { |
|
27 Q_OBJECT |
|
28 public: |
|
29 HomeView(QString aHeadName); |
|
30 ~HomeView(); |
|
31 void SetupUI(QMainWindow *Mainwindow); |
|
32 void populateFriendsWidget(); |
|
33 void populatePostsWidget(); |
|
34 void populateActivitiesWidget(); |
|
35 void populatePhotosGridView(); |
|
36 void populatePlaylistWidget(); |
|
37 void populateEventlistWidget(); |
|
38 void populateRecommendationListWidget(); |
|
39 |
|
40 private: |
|
41 void getFriends(); |
|
42 void getPosts(); |
|
43 void downloadImages(const SmfItemIdentifier &identifier, const QMap<QString, QUrl> urlMap); |
|
44 void getAlbums(); |
|
45 void getActivities(); |
|
46 void getPhotos(); |
|
47 void getEvents(); |
|
48 void getPlayList(); |
|
49 void getRecommendationList(); |
|
50 |
|
51 private slots: |
|
52 void friendsAvailable(SmfContactList* friendsList, SmfError , SmfResultPage ); |
|
53 void postsAvailable(SmfPostList* postsList, SmfError , SmfResultPage ); |
|
54 void albumsAvailable(SmfPictureAlbumList* albums, SmfError error, SmfResultPage resultPage); |
|
55 void activitiesAvailable(SmfActivityEntryList* postsList, SmfError , SmfResultPage ); |
|
56 void picturesAvailable(SmfPictureList* albums, SmfError error, SmfResultPage resultPage); |
|
57 void playListAvailable(SmfPlaylistList* playlist, SmfError error, SmfResultPage resultPage); |
|
58 void EventListAvailable(SmfEventList* eventsList,SmfError error, SmfResultPage resultPage); |
|
59 void RecommendationListAvailable(SmfTrackInfoList* eventsList,SmfError error, SmfResultPage resultPage); |
|
60 void Navigated2OtherTab(int index); |
|
61 |
|
62 private: |
|
63 QString iHeadName; |
|
64 QMainWindow *m_mainWindow; |
|
65 QTabWidget *TabWidget; |
|
66 CustomListWidget *iFrndsListWidget; |
|
67 CustomListWidget *iPostsListWidget; |
|
68 CustomListWidget *iActivityListWidget; |
|
69 CustomListWidget *iAlbumWidget; |
|
70 CustomListWidget *iPlaylistWidget; |
|
71 |
|
72 CustomListWidget *iEventslistWidget; |
|
73 CustomListWidget *iMusicSearchListWidget; |
|
74 GridView *AlbumView; |
|
75 ImageDownload m_downloader; |
|
76 |
|
77 SmfContactFetcher *m_contactFetcher; |
|
78 SmfPostProvider *m_postProvider; |
|
79 SmfGallery *m_gallery; |
|
80 SmfActivityFetcher *m_activityFetcher; |
|
81 SmfContactList *m_friendsList; |
|
82 SmfPostList *m_postsList; |
|
83 SmfPictureAlbumList *m_albumsList; |
|
84 SmfActivityEntryList *m_activitiesList; |
|
85 SmfPictureList *m_picList; |
|
86 SmfPlaylistService* m_playlistService; |
|
87 // SmfMusicEvents* m_musicEvents; |
|
88 SmfTrackInfoList* m_TrackinfoList; |
|
89 |
|
90 //added by sangeeta |
|
91 |
|
92 |
|
93 SmfPlaylistList *m_playlist; |
|
94 SmfEventList *m_eventList; |
|
95 SmfMusicSearch *m_musicSearch; |
|
96 |
|
97 }; |
|
98 |
|
99 #endif // HOMEVIEW_H |