summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Bugzilla.h
blob: ee6bc6a596ceaf6c0d433f0afeb5e77410ce014b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef BUGZILLA_H_
#define BUGZILLA_H_

#include "Plugin.h"
#include "Reporter.h"

class CReporterBugzilla : public CReporter
{
    private:
        bool m_bNoSSLVerify;
        std::string m_sBugzillaURL;
        std::string m_sBugzillaXMLRPC;
        std::string m_sLogin;
        std::string m_sPassword;
        std::string m_sAttchmentInBase64;

        map_plugin_settings_t parse_settings(const map_plugin_settings_t& pSettings);

    public:
        CReporterBugzilla();
        virtual ~CReporterBugzilla();

        virtual std::string Report(const map_crash_report_t& pCrashReport,
                                   const map_plugin_settings_t& pSettings,
                                   const char *pArgs);

        virtual void SetSettings(const map_plugin_settings_t& pSettings);
        virtual const map_plugin_settings_t& GetSettings();
};

#endif /* BUGZILLA_H_ */