Result dialog files restored to version before email send changes.
[speedfreak] / Client / profiledialog.h
1 /*
2  * Profile dialog class
3  *
4  * @author     Toni Jussila <toni.jussila@fudeco.com>
5  * @copyright  (c) 2010 Speed Freak team
6  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
7  */
8
9 #ifndef PROFILEDIALOG_H
10 #define PROFILEDIALOG_H
11
12 #include <QDialog>
13
14 class SettingsDialog;
15 class XmlReader;
16
17 namespace Ui
18 {
19     class ProfileDialog;
20 }
21
22 class ProfileDialog : public QDialog
23 {
24     Q_OBJECT
25 public:
26     ProfileDialog(SettingsDialog *parent = 0);
27     ~ProfileDialog();
28     XmlReader *xmlReader;
29     QString getManufacturer();
30     QString getType();
31     QString getModel();
32     QString getDescription();
33     QString getPicture();
34     void setManufacturer(QString m);
35     void setType(QString t);
36     void setModel(QString m);
37     void setDescription(QString d);
38     void setPicture(QString p);
39     void setLabelInfoToUser(QString infoText);
40
41 protected:
42     void changeEvent(QEvent *e);
43
44 private:
45     Ui::ProfileDialog *ui;
46     bool imageButtonState;
47     void loadPicture(QString);
48     QString manufacturer;
49     QString type;
50     QString model;
51     QString description;
52     QString picture;
53
54 private slots:
55     void on_buttonSave_clicked();
56     void on_buttonImage_clicked();
57
58 signals:
59     void saveprofile();
60 };
61
62 #endif // PROFILEDIALOG_H