Switch to unified view

a b/src/DAF/CDAP/CACEListeners.h
1
//
2
// This program is free software: you can redistribute it and/or modify
3
// it under the terms of the GNU Lesser General Public License as published by
4
// the Free Software Foundation, either version 3 of the License, or
5
// (at your option) any later version.
6
// 
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
// GNU Lesser General Public License for more details.
11
// 
12
// You should have received a copy of the GNU Lesser General Public License
13
// along with this program.  If not, see http://www.gnu.org/licenses/.
14
// 
15
16
#ifndef CACELISTENERS_H_
17
#define CACELISTENERS_H_
18
19
#include <omnetpp.h>
20
21
#include "CACE.h"
22
23
24
class CACE;
25
class CACEListeners : public cListener {
26
public:
27
    CACEListeners(CACE* ncace);
28
    virtual ~CACEListeners();
29
    virtual void receiveSignal(cComponent *src, simsignal_t id,  cObject *obj) {
30
               EV << "Signal to CACE initiated by " << src->getFullPath() << endl;
31
        }
32
      protected:
33
        CACE* cace;
34
};
35
36
class LisCACEConReq : public CACEListeners {
37
public:
38
    LisCACEConReq(CACE* ncace): CACEListeners(ncace){};
39
    virtual void receiveSignal(cComponent *src, simsignal_t id,  cObject *obj);
40
};
41
42
class LisCACERelReq : public CACEListeners {
43
public:
44
    LisCACERelReq(CACE* ncace): CACEListeners(ncace){};
45
    virtual void receiveSignal(cComponent *src, simsignal_t id,  cObject *obj);
46
};
47
48
class LisCACEAuthRes : public CACEListeners {
49
public:
50
    LisCACEAuthRes(CACE* ncace): CACEListeners(ncace){};
51
    virtual void receiveSignal(cComponent *src, simsignal_t id,  cObject *obj);
52
};
53
54
#endif /* CACELISTENERS_H_ */