X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fapplication.hpp;h=c618f80d9c1abeee91a1ee61e54d46d8d3c7b9b3;hb=a42d2514a57051f971e7b239bc3765ebf93669ae;hp=5a80ec865dd76b22f476efe353b79199745cec48;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git
diff --git a/pv/application.hpp b/pv/application.hpp
index 5a80ec8..c618f80 100644
--- a/pv/application.hpp
+++ b/pv/application.hpp
@@ -14,21 +14,50 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
-#ifndef PULSEVIEW_PV_APPLICATION_H
-#define PULSEVIEW_PV_APPLICATION_H
+#ifndef PULSEVIEW_PV_APPLICATION_HPP
+#define PULSEVIEW_PV_APPLICATION_HPP
+
+#include
#include
+#include
+
+using std::shared_ptr;
+using std::pair;
+using std::vector;
+
class Application : public QApplication
{
+ Q_OBJECT
+
public:
Application(int &argc, char* argv[]);
+
+ void collect_version_info(shared_ptr context);
+ void print_version_info();
+
+ vector< pair > get_version_info() const;
+ vector get_fw_path_list() const;
+ vector get_pd_path_list() const;
+ vector< pair > get_driver_list() const;
+ vector< pair > get_input_format_list() const;
+ vector< pair > get_output_format_list() const;
+ vector< pair > get_pd_list() const;
+
private:
bool notify(QObject *receiver, QEvent *event);
+
+ vector< pair > version_info_;
+ vector fw_path_list_;
+ vector pd_path_list_;
+ vector< pair > driver_list_;
+ vector< pair > input_format_list_;
+ vector< pair > output_format_list_;
+ vector< pair > pd_list_;
};
-#endif // PULSEVIEW_PV_APPLICATION_H
+#endif // PULSEVIEW_PV_APPLICATION_HPP