diff options
author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-06-10 10:01:39 +0200 |
---|---|---|
committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-06-10 10:01:39 +0200 |
commit | da6687d1b76eb8f83ff10010c765e6959a20f3fe (patch) | |
tree | 9a387cb3199a7f788678b83594db8b1c55385253 /src/TUI/ABRTSocket.h | |
parent | 79a688a1e928817f3d95289e9afdd07f4b830b64 (diff) | |
download | abrt-da6687d1b76eb8f83ff10010c765e6959a20f3fe.tar.gz abrt-da6687d1b76eb8f83ff10010c765e6959a20f3fe.tar.xz abrt-da6687d1b76eb8f83ff10010c765e6959a20f3fe.zip |
new simple command line client
Diffstat (limited to 'src/TUI/ABRTSocket.h')
-rw-r--r-- | src/TUI/ABRTSocket.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/TUI/ABRTSocket.h b/src/TUI/ABRTSocket.h new file mode 100644 index 00000000..ef255ac7 --- /dev/null +++ b/src/TUI/ABRTSocket.h @@ -0,0 +1,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_ */ |