diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-25 16:50:07 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-25 16:50:07 +0200 |
| commit | 7aaf0fb85fd60c04a612fe483f696a4f00f1f85e (patch) | |
| tree | 33f67da71c7eac6b5113e0bbf81b93888dd32bb4 /src/Daemon/CommLayerServer.h | |
| parent | 39f00225b96499fbc765f9eaa353a93ebe8912e2 (diff) | |
| parent | f495fd571cc063c2e0980e14b0cac604a5c71b32 (diff) | |
| download | abrt-7aaf0fb85fd60c04a612fe483f696a4f00f1f85e.tar.gz abrt-7aaf0fb85fd60c04a612fe483f696a4f00f1f85e.tar.xz abrt-7aaf0fb85fd60c04a612fe483f696a4f00f1f85e.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/Daemon/CommLayerServer.h')
| -rw-r--r-- | src/Daemon/CommLayerServer.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/Daemon/CommLayerServer.h b/src/Daemon/CommLayerServer.h index af79511..76af62b 100644 --- a/src/Daemon/CommLayerServer.h +++ b/src/Daemon/CommLayerServer.h @@ -9,40 +9,28 @@ #include "Observer.h" #include "CrashTypes.h" -/* just a helper function */ -template< class T > -std::string -to_string( T x ) -{ - std::ostringstream o; - o << x; - return o.str(); -} - - class CCommLayerServer { protected: CObserver *m_pObserver; public: CCommLayerServer(); virtual ~CCommLayerServer(); + /* observer */ void Attach(CObserver *pObs); void Detach(CObserver *pObs); void Notify(const std::string& pMessage); - virtual vector_crash_infos_t GetCrashInfos(const std::string &pSender) = 0; - virtual map_crash_report_t CreateReport(const std::string &pUUID,const std::string &pSender) = 0; - virtual report_status_t Report(map_crash_report_t pReport,const std::string &pSender) = 0; + virtual vector_crash_infos_t GetCrashInfos(const std::string& pSender) = 0; + virtual report_status_t Report(const map_crash_report_t& pReport, const std::string& pSender) = 0; virtual bool DeleteDebugDump(const std::string& pUUID, const std::string& pSender) = 0; - public: - /* just stubs to be called when not implemented in specific comm layer */ + /* just stubs to be called when not implemented in specific comm layer */ virtual void Crash(const std::string& arg1) {} - virtual void AnalyzeComplete(map_crash_report_t arg1) {} + virtual void AnalyzeComplete(const map_crash_report_t& arg1) {} virtual void Error(const std::string& arg1) {} virtual void Update(const std::string& pDest, const std::string& pMessage) {}; - virtual void Warning(const std::string& pDest, const std::string& pMessage) {}; + virtual void Warning(const std::string& pMessage) {}; virtual void JobDone(const std::string &pDest, uint64_t pJobID) {}; }; |
