Overte C++ Documentation
CrashHandlerBackend.h
1 //
2 // CrashHandler.h
3 // interface/src
4 //
5 // Created by Clement Brisset on 01/19/18.
6 // Copyright 2018 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_CrashHandlerBackend_h
13 #define hifi_CrashHandlerBackend_h
14 
15 #include <string>
16 #include <QCoreApplication>
17 #include <QLoggingCategory>
18 
19 Q_DECLARE_LOGGING_CATEGORY(crash_handler)
20 
21 bool startCrashHandler(std::string appPath, std::string url="", std::string token="");
22 void setCrashAnnotation(std::string name, std::string value);
23 void startCrashHookMonitor(QCoreApplication* app);
24 void setCrashReportingEnabled(bool value);
25 
26 
27 #endif // hifi_CrashHandlerBackend_h