26
|
1 |
#ifndef MAINWINDOW_H
|
|
2 |
#define MAINWINDOW_H
|
|
3 |
#include<smfglobal.h>
|
|
4 |
#include<QPushButton>
|
|
5 |
#include <QWidget>
|
|
6 |
#include <smfclient.h>
|
|
7 |
#include <smfactivityfetcher.h>
|
|
8 |
#include <smfpicture.h>
|
|
9 |
#include <smfpicturealbum.h>
|
|
10 |
#include <smfContact.h>
|
|
11 |
#include <smfcomment.h>
|
|
12 |
#include <smfgallery.h>
|
|
13 |
|
|
14 |
class MainWindow : public QWidget
|
|
15 |
{
|
|
16 |
Q_OBJECT
|
|
17 |
public:
|
|
18 |
MainWindow(QWidget *parent =0);
|
|
19 |
~MainWindow();
|
|
20 |
QPushButton *pB;
|
|
21 |
|
|
22 |
void TestFlickrAPIS();
|
|
23 |
void TestFaceBookAPIS();
|
|
24 |
//void TestActivities();
|
|
25 |
void TestUpload();
|
|
26 |
|
|
27 |
////////////////////////////////////////////
|
|
28 |
void TEST_CASE_FLCRUpload_func(SmfGallery *pSmfGallery);
|
|
29 |
void TEST_CASE_FLCRMultiUpload_func(SmfGallery *pSmfGallery);
|
|
30 |
void TEST_CASE_FLCRGetDescription_func(SmfGallery *pSmfGallery);
|
|
31 |
void TEST_CASE_FLCRPostComment_func(SmfGallery *pSmfGallery);
|
|
32 |
void TEST_CASE_FLCRGetPictures_func(SmfGallery *pSmfGallery);
|
|
33 |
void TEST_CASE_FLCRGetAlbums_func(SmfGallery *pSmfGallery);
|
|
34 |
void TEST_CASE_FBFriendsActivities_func(SmfActivityFetcher *actvityFetcher);
|
|
35 |
|
|
36 |
|
|
37 |
////////////////////////////////////////////////
|
|
38 |
private slots:
|
|
39 |
void StartTesting();
|
|
40 |
void activitiesAvailableSlot(SmfActivityEntryList* activitiesList, SmfError error, SmfResultPage resultPage);
|
|
41 |
void uploadFinishedSlot( QList<SmfError> error );
|
|
42 |
void descSlot(QString str,SmfError err );
|
|
43 |
void picturesAvailableSlot(SmfPictureList* picList, SmfError error, SmfResultPage resultPage);
|
|
44 |
void albumsAvailableSlot(SmfPictureAlbumList* albums, SmfError error, SmfResultPage resultPage);
|
|
45 |
private:
|
|
46 |
SmfPictureAlbumList *m_albumsList;
|
|
47 |
SmfPictureList *m_picList;
|
|
48 |
SmfGallery *pSmfGallery ;
|
|
49 |
SmfActivityFetcher *activityFetcher;
|
|
50 |
};
|
|
51 |
#endif
|