QBreakpadHandler.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (C) 2009 Aleksey Palazhchenko
  3. * Copyright (C) 2014 Sergey Shambir
  4. * Copyright (C) 2016 Alexander Makarov
  5. *
  6. * This file is a part of Breakpad-qt library.
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. */
  19. #ifndef QBREAKPAD_HANDLER_H
  20. #define QBREAKPAD_HANDLER_H
  21. #include <QString>
  22. #include <QUrl>
  23. #include "singletone/singleton.h"
  24. namespace google_breakpad {
  25. class ExceptionHandler;
  26. class MinidumpDescriptor;
  27. }
  28. class QBreakpadHandlerPrivate;
  29. class QBreakpadHandler: public QObject
  30. {
  31. Q_OBJECT
  32. public:
  33. static QString version();
  34. QBreakpadHandler();
  35. ~QBreakpadHandler();
  36. QString uploadUrl() const;
  37. QString dumpPath() const;
  38. QStringList dumpFileList() const;
  39. void setDumpPath(const QString& path);
  40. void setUploadUrl(const QUrl& url);
  41. public slots:
  42. void sendDumps();
  43. private:
  44. QBreakpadHandlerPrivate* d;
  45. };
  46. #define QBreakpadInstance Singleton<QBreakpadHandler>::instance()
  47. #endif // QBREAKPAD_HANDLER_H