summaryrefslogtreecommitdiffstats
path: root/src/CLI/ABRTSocket.h
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-06-17 11:48:43 +0200
committerZdenek Prikryl <zprikryl@redhat.com>2009-06-17 11:48:43 +0200
commit536c0b4efe3d20bb3351e01e8540730bfbce1eef (patch)
treedae4d37fc2281ae3d2e65f311d9184732dfa3c3e /src/CLI/ABRTSocket.h
parent8e8558fd67905923d0f0b6b1c081faa4ef4267ff (diff)
downloadabrt-536c0b4efe3d20bb3351e01e8540730bfbce1eef.tar.gz
abrt-536c0b4efe3d20bb3351e01e8540730bfbce1eef.tar.xz
abrt-536c0b4efe3d20bb3351e01e8540730bfbce1eef.zip
remaned to proper name (Command Line Interface)
Diffstat (limited to 'src/CLI/ABRTSocket.h')
-rw-r--r--src/CLI/ABRTSocket.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/CLI/ABRTSocket.h b/src/CLI/ABRTSocket.h
new file mode 100644
index 0000000..6e8a777
--- /dev/null
+++ b/src/CLI/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_ */