Tests/TestApp/Mainwindow.h
author cgandhi
Mon, 11 Oct 2010 21:59:54 +0530
changeset 26 83d6a149c755
permissions -rw-r--r--
Submitting following changes - AuthApps for Last.fm and Twitter added API for checking ServiceAuthorization added for SMFCredMgrClient API added for forcefully removing credential details from SMFCredMgr Extra argument checks in SMfClient APIs APIs for service login and logout from SMFClient Redundant members removed from SmfServerSymbian DSM bug fixes Test Apps included
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     1
#ifndef MAINWINDOW_H
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     2
#define MAINWINDOW_H
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     3
#include<smfglobal.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     4
#include<QPushButton>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     5
#include <QWidget>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     6
#include <smfclient.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     7
#include <smfactivityfetcher.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     8
#include <smfpicture.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     9
#include <smfpicturealbum.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    10
#include <smfContact.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    11
#include <smfcomment.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    12
#include <smfgallery.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    13
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    14
class MainWindow : public QWidget
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    15
{
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    16
	Q_OBJECT
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    17
public:
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    18
MainWindow(QWidget *parent =0);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    19
~MainWindow();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    20
QPushButton *pB; 
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    21
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    22
void TestFlickrAPIS();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    23
void TestFaceBookAPIS();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    24
//void TestActivities();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    25
void TestUpload();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    26
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    27
////////////////////////////////////////////
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    28
void TEST_CASE_FLCRUpload_func(SmfGallery *pSmfGallery);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    29
void TEST_CASE_FLCRMultiUpload_func(SmfGallery *pSmfGallery);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    30
void TEST_CASE_FLCRGetDescription_func(SmfGallery *pSmfGallery);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    31
void TEST_CASE_FLCRPostComment_func(SmfGallery *pSmfGallery);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    32
void TEST_CASE_FLCRGetPictures_func(SmfGallery *pSmfGallery);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    33
void TEST_CASE_FLCRGetAlbums_func(SmfGallery *pSmfGallery);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    34
void TEST_CASE_FBFriendsActivities_func(SmfActivityFetcher *actvityFetcher);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    35
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    36
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    37
////////////////////////////////////////////////
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    38
private slots:
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    39
void StartTesting();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    40
void activitiesAvailableSlot(SmfActivityEntryList* activitiesList, SmfError error, SmfResultPage resultPage);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    41
void uploadFinishedSlot( QList<SmfError> error );
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    42
void descSlot(QString str,SmfError err );
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    43
void picturesAvailableSlot(SmfPictureList* picList, SmfError error, SmfResultPage resultPage);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    44
void albumsAvailableSlot(SmfPictureAlbumList* albums, SmfError error, SmfResultPage resultPage);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    45
private:
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    46
SmfPictureAlbumList *m_albumsList;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    47
SmfPictureList *m_picList;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    48
SmfGallery *pSmfGallery ;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    49
SmfActivityFetcher *activityFetcher;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    50
};
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    51
#endif