example/DemoGUI/HomeView.h
author cgandhi
Thu, 23 Sep 2010 17:43:31 +0530
changeset 25 a180113055cb
parent 16 b78fa4cdbf2b
permissions -rw-r--r--
Music Events are now normal Fetcher APIs added All APIs now return SmfError Canceling Request now supported Music Search now based on category Providerinfo added in DSM Added secondary ID, count, location to SMFAlbum Tags for Artist added Get tracks for album and artist added Added URL to subtitle DSM Bug fixes Detailed debugging logs filtered in server, pluginmgr, transportmgr playlistsOf() method changed in smfclient and plugin interfaces. RVCT B686 compilation issues resolved.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     1
#ifndef HOMEVIEW_H
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     2
#define HOMEVIEW_H
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     3
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     4
#include <qmainwindow.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     5
#include <WidgetConstants.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     6
//#include <smfglobal.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     7
#include <smfcontact.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     8
#include <smfpost.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     9
#include <smfpicturealbum.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    10
#include <smfactions.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    11
#include <smfpicture.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    12
#include <smfcontactfetcher.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    13
#include <smfpostprovider.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    14
#include <smfgallery.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    15
#include <smfactivityfetcher.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    16
#include "ImageDownload.h"
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    17
#include "ToolBar.h"
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    18
#include <qmenu.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    19
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    20
class CustomListWidget;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    21
class GridView;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    22
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    23
class HomeView : public QObject
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    24
{
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    25
	Q_OBJECT
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    26
public:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    27
    HomeView(QString aHeadName);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    28
    ~HomeView();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    29
    void SetupUI(QMainWindow *Mainwindow);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    30
    void populateFriendsWidget();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    31
    void populatePostsWidget();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    32
    void populateActivitiesWidget();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    33
    void populatePhotosGridView();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    34
    
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    35
private:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    36
    void getFriends();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    37
    void getPosts();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    38
    void downloadImages(const SmfItemIdentifier &identifier, const QMap<QString, QUrl> urlMap);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    39
    void getAlbums();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    40
    void getActivities();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    41
    void getPhotos();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    42
    
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    43
private slots:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    44
    void friendsAvailable(SmfContactList* friendsList, SmfError , SmfResultPage );
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    45
    void postsAvailable(SmfPostList* postsList, SmfError , SmfResultPage );
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    46
    void albumsAvailable(SmfPictureAlbumList* albums, SmfError error, SmfResultPage resultPage);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    47
    void activitiesAvailable(SmfActivityEntryList* postsList, SmfError , SmfResultPage );
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    48
    void picturesAvailable(SmfPictureList* albums, SmfError error, SmfResultPage resultPage);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    49
    void Navigated2OtherTab(int index);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    50
    
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    51
private:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    52
    QString iHeadName;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    53
    ToolBar* ToolBarwidget;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    54
    QMainWindow *m_mainWindow;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    55
    QTabWidget *TabWidget;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    56
    CustomListWidget *iFrndsListWidget;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    57
    CustomListWidget *iPostsListWidget;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    58
    CustomListWidget *iActivityListWidget;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    59
    CustomListWidget *iAlbumWidget;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    60
    GridView *AlbumView;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    61
    ImageDownload m_downloader;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    62
    
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    63
    SmfContactFetcher *m_contactFetcher;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    64
    SmfPostProvider *m_postProvider;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    65
    SmfGallery *m_gallery;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    66
    SmfActivityFetcher *m_activityFetcher;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    67
    SmfContactList *m_friendsList;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    68
    SmfPostList *m_postsList;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    69
    SmfPictureAlbumList *m_albumsList;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    70
    SmfActivityEntryList *m_activitiesList;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    71
    SmfPictureList *m_picList;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    72
    
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    73
};
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    74
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    75
#endif // HOMEVIEW_H