diff -r 9b00ca3cc206 -r b78fa4cdbf2b example/DemoGUI/HomeView.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example/DemoGUI/HomeView.h Thu Aug 05 16:35:33 2010 +0530 @@ -0,0 +1,75 @@ +#ifndef HOMEVIEW_H +#define HOMEVIEW_H + +#include +#include +//#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "ImageDownload.h" +#include "ToolBar.h" +#include + +class CustomListWidget; +class GridView; + +class HomeView : public QObject +{ + Q_OBJECT +public: + HomeView(QString aHeadName); + ~HomeView(); + void SetupUI(QMainWindow *Mainwindow); + void populateFriendsWidget(); + void populatePostsWidget(); + void populateActivitiesWidget(); + void populatePhotosGridView(); + +private: + void getFriends(); + void getPosts(); + void downloadImages(const SmfItemIdentifier &identifier, const QMap urlMap); + void getAlbums(); + void getActivities(); + void getPhotos(); + +private slots: + void friendsAvailable(SmfContactList* friendsList, SmfError , SmfResultPage ); + void postsAvailable(SmfPostList* postsList, SmfError , SmfResultPage ); + void albumsAvailable(SmfPictureAlbumList* albums, SmfError error, SmfResultPage resultPage); + void activitiesAvailable(SmfActivityEntryList* postsList, SmfError , SmfResultPage ); + void picturesAvailable(SmfPictureList* albums, SmfError error, SmfResultPage resultPage); + void Navigated2OtherTab(int index); + +private: + QString iHeadName; + ToolBar* ToolBarwidget; + QMainWindow *m_mainWindow; + QTabWidget *TabWidget; + CustomListWidget *iFrndsListWidget; + CustomListWidget *iPostsListWidget; + CustomListWidget *iActivityListWidget; + CustomListWidget *iAlbumWidget; + GridView *AlbumView; + ImageDownload m_downloader; + + SmfContactFetcher *m_contactFetcher; + SmfPostProvider *m_postProvider; + SmfGallery *m_gallery; + SmfActivityFetcher *m_activityFetcher; + SmfContactList *m_friendsList; + SmfPostList *m_postsList; + SmfPictureAlbumList *m_albumsList; + SmfActivityEntryList *m_activitiesList; + SmfPictureList *m_picList; + +}; + +#endif // HOMEVIEW_H