Support SMTP URLs
[zxing.git] / symbian / QQrDecoder / QQrDecoder.h
1 /****************************************************************************\r
2 **\r
3 ** Trolltech hereby grants a license to use the Qt/Eclipse Integration\r
4 ** plug-in (the software contained herein), in binary form, solely for the\r
5 ** purpose of creating code to be used with Trolltech's Qt software.\r
6 **\r
7 ** Qt Designer is licensed under the terms of the GNU General Public\r
8 ** License versions 2.0 and 3.0 ("GPL License"). Trolltech offers users the\r
9 ** right to use certain no GPL licensed software under the terms of its GPL\r
10 ** Exception version 1.2 (http://trolltech.com/products/qt/gplexception).\r
11 **\r
12 ** THIS SOFTWARE IS PROVIDED BY TROLLTECH AND ITS CONTRIBUTORS (IF ANY) "AS\r
13 ** IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
14 ** TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\r
15 ** PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER\r
16 ** OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
17 ** EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
18 ** PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
19 ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
20 ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
21 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
22 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."\r
23 **\r
24 ** Since we now have the GPL exception I think that the "special exception\r
25 ** is no longer needed. The license text proposed above (other than the\r
26 ** special exception portion of it) is the BSD license and we have added\r
27 ** the BSD license as a permissible license under the exception.\r
28 **\r
29 ****************************************************************************/\r
30 \r
31 #ifndef QQRDECODER_H\r
32 #define QQRDECODER_H\r
33 \r
34 #include <QtGui/QMainWindow>\r
35 #include <QPixmap>\r
36 #include "ui_QQrDecoder.h"\r
37 \r
38 #include "CameraImageWrapper.h"\r
39 \r
40 class QQrDecoder : public QMainWindow\r
41 {\r
42     Q_OBJECT\r
43 \r
44 public:\r
45         QQrDecoder(QWidget *parent = 0);\r
46     ~QQrDecoder();\r
47     \r
48 private:\r
49     void InitializeSymbianCamera();\r
50     \r
51 protected slots:\r
52     void findAndDecode();\r
53     void decodeImage(QImage originalImage);\r
54     void reloadFormatedPicture(int x);\r
55 \r
56 private:\r
57     Ui::QQrDecoder ui;\r
58     CameraImageWrapper image;\r
59     QPixmap px;\r
60 };\r
61 \r
62 #endif // QQRDECODER_H\r