]> sigrok.org Git - pulseview.git/blame - pv/application.hpp
Fix unit tests
[pulseview.git] / pv / application.hpp
CommitLineData
dac1bb97
ML
1/*
2 * This file is part of the PulseView project.
3 *
4 * Copyright (C) 2014 Martin Ling <martin-sigrok@earth.li>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program 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
efdec55a 17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
dac1bb97
ML
18 */
19
7a01bd36
JH
20#ifndef PULSEVIEW_PV_APPLICATION_HPP
21#define PULSEVIEW_PV_APPLICATION_HPP
dac1bb97 22
49719858
SA
23#include <vector>
24
dac1bb97
ML
25#include <QApplication>
26
49719858
SA
27#include <libsigrokcxx/libsigrokcxx.hpp>
28
29using std::shared_ptr;
30using std::pair;
31using std::vector;
32
dac1bb97
ML
33class Application : public QApplication
34{
49719858
SA
35 Q_OBJECT
36
dac1bb97
ML
37public:
38 Application(int &argc, char* argv[]);
49719858
SA
39
40 void collect_version_info(shared_ptr<sigrok::Context> context);
41 void print_version_info();
42
43 vector< pair<QString, QString> > get_version_info() const;
44 vector<QString> get_fw_path_list() const;
45 vector<QString> get_pd_path_list() const;
46 vector< pair<QString, QString> > get_driver_list() const;
47 vector< pair<QString, QString> > get_input_format_list() const;
48 vector< pair<QString, QString> > get_output_format_list() const;
49 vector< pair<QString, QString> > get_pd_list() const;
50
dac1bb97
ML
51private:
52 bool notify(QObject *receiver, QEvent *event);
49719858
SA
53
54 vector< pair<QString, QString> > version_info_;
55 vector<QString> fw_path_list_;
56 vector<QString> pd_path_list_;
57 vector< pair<QString, QString> > driver_list_;
58 vector< pair<QString, QString> > input_format_list_;
59 vector< pair<QString, QString> > output_format_list_;
60 vector< pair<QString, QString> > pd_list_;
dac1bb97
ML
61};
62
7a01bd36 63#endif // PULSEVIEW_PV_APPLICATION_HPP