Thumbnail me  3.0
D:/Thumbnail/Thumbnailme/ImageShackResultWidget.h
Go to the documentation of this file.
00001 /***************************************************************************/
00022 /*
00023 Copyright (c) 2009, ImageShack Corp.
00024 All rights reserved.
00025 
00026 Redistribution and use in source and binary forms, with or without modification,
00027 are permitted provided that the following conditions are met:
00028 * Redistributions of source code must retain the above copyright notice, this
00029   list of conditions and the following disclaimer.
00030 * Redistributions in binary form must reproduce the above copyright notice,
00031   this list of conditions and the following disclaimer in the documentation
00032   and/or other materials provided with the distribution.
00033 * Neither the name of the ImageShack nor the names of its contributors may be
00034   used to endorse or promote products derived from this software without
00035   specific prior written permission.
00036 
00037 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00038 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00039 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00040 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00041 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00042 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00043 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00044 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00045 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00046 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00047 */
00048 
00049 
00050 #ifndef HEADER_IMAGESHACKRESULTWIDGET
00051 #define HEADER_IMAGESHACKRESULTWIDGET
00052 
00053 #include <QtGui/QDialog>
00054 #include <QDebug>
00055 #include <QSharedPointer>
00056 #include <QHash>
00057 #include "ImageShackUploader/ImageShackResponse.hpp"
00058 
00059 namespace Ui {class ImageShackResultWidget;}
00060 
00061 class ImageShackResultWidget : public QDialog
00062 {
00063     Q_OBJECT
00064     Q_DISABLE_COPY(ImageShackResultWidget)
00065 
00066     public:
00067     explicit ImageShackResultWidget(QWidget *parent = 0);
00068     virtual  ~ImageShackResultWidget();
00069 
00070     private:
00071     Ui::ImageShackResultWidget *m_ui;
00072     QList < ImageShackResponse * > *imagesDatasList;
00073     int current;
00074 
00075     private:
00076     void retranslate();
00077 
00078     protected:
00079     void changeEvent(QEvent* event);
00080 
00081     public:
00082     void addData(ImageShackResponse *response);
00083     void setIndex(int index);
00084 
00085     private slots:
00086     void prev();
00087     void next();
00088     void done();
00089 
00090     public slots:
00091     void reset();
00092 };
00093 
00094 #endif // HEADER_IMAGESHACKRESULTWIDGET
00095 
 All Classes Files Functions Enumerations