19a66605cbf6f84d219c3e3dfc549727fdcf7f4c
[jenirok] / src / gui / detailwindow.h
1 /*
2  * This file is part of Jenirok.
3  *
4  * Jenirok is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Jenirok is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Jenirok.  If not, see <http://www.gnu.org/licenses/>.
16  *
17  */
18
19 #ifndef DETAILWINDOW_H
20 #define DETAILWINDOW_H
21
22 #include <QtGui/QMainWindow>
23 #include <QtGui/QVBoxLayout>
24 #include <QtGui/QScrollArea>
25 #include <QtGui/QDialog>
26 #include <QtGui/QLineEdit>
27 #include <QMaemo5ValueButton>
28 #include "searchdialog.h"
29 #include "eniro.h"
30
31 class DetailWindow : public QMainWindow
32 {
33     Q_OBJECT
34
35 public:
36     DetailWindow(QWidget* parent = 0);
37
38 public slots:
39         void loadData(Eniro::Result const& details);
40
41 private slots:
42         void makeCall();
43         void showAddToContactsDialog();
44         void addToContacts();
45         void copyToClipboard();
46
47 private:
48         QScrollArea* area_;
49         QVBoxLayout* layout_;
50         QMaemo5ValueButton* nameButton_;
51         QMaemo5ValueButton* streetButton_;
52         QMaemo5ValueButton* cityButton_;
53         QMaemo5ValueButton* numberButton_;
54         QDialog* addDialog_;
55         QLineEdit* addContactInput_;
56
57
58 };
59
60 #endif