Skip to content

Commit dce8633

Browse files
committed
Update reporter example upload urls
1 parent c245a6e commit dce8633

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

demo/reporter/reporter.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ int main (int argc, char *argv[])
3434

3535
// Set directory to store dumps and url to upload
3636
QBreakpadInstance.setDumpPath("crashes");
37-
QBreakpadInstance.setUploadUrl(QUrl("http://your.site.com/crash_upload"));
37+
// Set server type for uploading
38+
#if defined(SOCORRO)
39+
QBreakpadInstance.setUploadUrl(QUrl("http://[your.site.com]/submit"));
40+
#elif defined(CALIPER)
41+
QBreakpadInstance.setUploadUrl(QUrl("http://[your.site.com]/crash_upload"));
42+
#endif
3843

3944
// Create the dialog and show it
4045
ReporterExample example;

demo/reporter/reporter.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include($$PWD/../../qBreakpad.pri)
1919
QMAKE_LIBDIR += $$OUT_PWD/../../handler
2020
LIBS += -lqBreakpad
2121

22-
# Define the source code
22+
# source code
2323
HEADERS += \
2424
$$PWD/../program/TestThread.h \
2525
$$PWD/reporter.h

0 commit comments

Comments
 (0)