summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CommLayerServer.h
blob: 21c1b304652c1b5de8438f3b6687a5ecf42482a0 (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
#ifndef COMMLAYERSERVER_H_
#define COMMLAYERSERVER_H_

#include <string>
#include "abrtlib.h"
#include "CrashTypes.h"

class CCommLayerServer {
    public:
        int m_init_error;

        CCommLayerServer();
        virtual ~CCommLayerServer();

        /* just stubs to be called when not implemented in specific comm layer */
        virtual void Crash(const char *progname, const char *uid_str) {}
        virtual void JobDone(const char* pDest, const char* pUUID) = 0;
        virtual void QuotaExceed(const char* str) {}

        virtual void Update(const std::string& pMessage, const char* peer, uint64_t pJobID) {};
        virtual void Warning(const std::string& pMessage, const char* peer, uint64_t pJobID) {};
};

#endif