PageRenderTime 122ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 78ms app.codeStats 1ms

/src/breakpad/CrashReporter/CrashReporter.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 54 lines | 26 code | 11 blank | 17 comment | 0 complexity | fee1b443a7ca3e5b773e1f093f4813d2 MD5 | raw file
 1/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
 2 *
 3 *   Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
 4 *
 5 *   Tomahawk is free software: you can redistribute it and/or modify
 6 *   it under the terms of the GNU General Public License as published by
 7 *   the Free Software Foundation, either version 3 of the License, or
 8 *   (at your option) any later version.
 9 *
10 *   Tomahawk is distributed in the hope that it will be useful,
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *   GNU General Public License for more details.
14 *
15 *   You should have received a copy of the GNU General Public License
16 *   along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef CRASHREPORTER_H
20#define CRASHREPORTER_H
21
22#include <QDialog>
23#include <QFile>
24
25#include "ui_CrashReporter.h"
26
27
28class CrashReporter : public QDialog
29{
30    Q_OBJECT
31
32public:
33    CrashReporter( const QStringList& argv );
34    ~CrashReporter( );
35
36private:
37    Ui::CrashReporter ui;
38
39    QString m_minidump;
40    QString m_dir;
41    QString m_product_name;
42    class QHttp* m_http;
43
44public slots:
45    void send();
46
47private slots:
48    void onDone();
49    void onProgress( int done, int total );
50    void onFail( int error, const QString& errorString );
51    void onSendButton();
52};
53
54#endif // CRASHREPORTER_H