summaryrefslogtreecommitdiffstats
path: root/src/TUI/ABRTSocket.h
blob: ef255ac7681ffc76bae1d3645cecbcbcc43d1b88 (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
#ifndef ABRTSOCKET_H_
#define ABRTSOCKET_H_

#include <string>

#include "CrashTypes.h"

class CABRTSocket
{
    private:
        int m_nSocket;

        void Send(const std::string& pMessage);
        void Recv(std::string& pMessage);

    public:
        CABRTSocket();
        ~CABRTSocket();

        void Connect(const std::string& pPath);
        void DisConnect();

        vector_crash_infos_t GetCrashInfos();
        map_crash_report_t CreateReport(const std::string &pUUID);
        void Report(map_crash_report_t pReport);
        void DeleteDebugDump(const std::string& pUUID);
};

#endif /* ABRTSOCKET_H_ */