qcpix/tsrc/samplesearch/samplesearch.h
changeset 13 fcb2a58c181b
parent 0 671dee74050a
equal deleted inserted replaced
11:7c6f43cd91cf 13:fcb2a58c181b
    30 #include <QTableWidgetItem>
    30 #include <QTableWidgetItem>
    31 #include <QMessageBox>
    31 #include <QMessageBox>
    32 #include <QVector>
    32 #include <QVector>
    33 
    33 
    34 class CSearchHandler;
    34 class CSearchHandler;
    35 class QCPixDocument;
    35 class CpixDocument;
    36 class DocLaunchInfo;
    36 class DocLaunchInfo;
    37 
    37 
    38 class SampleSearch : public QWidget
    38 class SampleSearch : public QWidget
    39 {
    39 {
    40     Q_OBJECT
    40     Q_OBJECT
    73     void clearSearchResults();
    73     void clearSearchResults();
    74     int getStartIndexForPage();
    74     int getStartIndexForPage();
    75     void createSearchResultTableAndAddContents();
    75     void createSearchResultTableAndAddContents();
    76     void searchCompleteHelper(int aError, int aResultCount);
    76     void searchCompleteHelper(int aError, int aResultCount);
    77     void setSearchResultsHeader();
    77     void setSearchResultsHeader();
    78     void addDocumentToResultsPage( QCPixDocument* aSearchDoc, int rowCount );
    78     void addDocumentToResultsPage( CpixDocument* aSearchDoc, int rowCount );
    79     void openMessaging( int aMessagingId );
    79     void openMessaging( int aMessagingId );
    80     void doLaunchDoc(DocLaunchInfo& info);
    80     void doLaunchDoc(DocLaunchInfo& info);
    81     
    81     
    82 private slots:
    82 private slots:
    83     void launchDoc(int,int);
    83     void launchDoc(int,int);
    84     void doSearch();
    84     void doSearch();
    85     void doSearchAsync();
    85     void doSearchAsync();
    86     void onSearchComplete(int aError, int aResultCount);
    86     void onSearchComplete(int aError, int aResultCount);
    87     void onAsyncSearchComplete(int aError, int aResultCount);
    87     void onAsyncSearchComplete(int aError, int aResultCount);
    88     void onGetDocumentComplete(int aError, QCPixDocument* aDoc);
    88     void onGetDocumentComplete(int aError, CpixDocument* aDoc);
    89     void displayNextPage();
    89     void displayNextPage();
    90     void displayPrevPage();   
    90     void displayPrevPage();   
    91 };
    91 };
    92 
    92 
    93 #endif // SAMPLESEARCH_H
    93 #endif // SAMPLESEARCH_H