summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CommLayerServer.h
blob: aface8a3075621699afcc4bd3243571f934c45bc (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
25
#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 JobStarted(const char* pDest) {};
        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