summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CommLayerServer.h
blob: 6ede5815550c827217bd0efe16c2f3d88a2cacea (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 std::string& progname, const std::string& uid) {}
        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