Modified mainwindow.cpp and mainwindow.h.
[situare] / src / ui / mainwindow.h
1 /*
2     Situare - A location system for Facebook
3     Copyright (C) 2010  Ixonos Plc. Authors:
4
5        Henri Lampela - henri.lampela@ixonos.com
6
7     Situare is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License
9     version 2 as published by the Free Software Foundation.
10
11     Situare is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with Situare; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
19     USA.
20  */
21
22 #ifndef MAINWINDOW_H
23 #define MAINWINDOW_H
24
25 #include <QtGui/QMainWindow>
26 #include <QLabel>
27 #include <QUrl>
28 #include <QPixmap>
29 #include <QWidget>
30 #include "mapfetcher.h"
31
32 class MainWindow : public QWidget
33 {
34     Q_OBJECT
35
36 public:
37     MainWindow(QWidget *parent = 0);
38     ~MainWindow();
39
40 signals:
41     void fetchImage(const QUrl &url);
42
43 public slots:
44     void debug();
45     void imageReceived(const QUrl &url, const QPixmap &image);
46
47 private:
48     MapFetcher mapFetcher;
49 };
50
51 #endif // MAINWINDOW_H