detect.h 1.61 KB
Newer Older
Dennis Rassmann's avatar
Dennis Rassmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*
 * detect.h
 *
 * Copyright (c) 2012, Dennis Rassmann <showp1984@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 */

17 18 19 20 21 22 23 24
#ifndef DETECT_H
#define DETECT_H

#include <QMainWindow>
#include <QtGui>
#include <QtGui/QApplication>

#include "info.h"
25
#include "openfile.h"
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

namespace Ui {
    class detect;
}

class detect : public QMainWindow {
    Q_OBJECT
public:
    detect(QWidget *parent = 0);
    ~detect();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::detect *ui;
    Info *infowind;
43
    openfile *openfilewind;
44 45 46 47
    QTimer *detecttimer;
    QProcess p;
    QStringList list;
    QStringList list2;
48
    QStringList list3;
49 50
    QStringList list4;
    QStringList list5;
51 52 53
    QString p_out;
    QString snr;
    QString state;
54 55 56 57
    QString model;
    QString device;
    QString romver;
    QString androidver;
58
    QString branchver;
59 60
    QString kernelbuildver;
    QString kernelver;
61
    bool firstcall;
62 63

private slots:
64
    void on_btn_back_clicked();
65
    void on_btn_yes_clicked();
66 67
    void on_btn_no_clicked();
    void on_btn_quit_clicked();
68 69 70 71 72 73
    void on_actionInfo_triggered();
    void on_actionQuit_triggered();
    void detect_device(void);
};

#endif // DETECT_H