-
Notifications
You must be signed in to change notification settings - Fork 2
/
PListener.h
34 lines (26 loc) · 938 Bytes
/
PListener.h
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
26
27
28
29
30
31
32
33
34
//==============================================================================
// File: PListener.h
//
// Copyright (c) 2017, Phil Harvey, Queen's University
//==============================================================================
#ifndef __PListener_h__
#define __PListener_h__
#include "messages.h"
class PSpeaker;
class PListener {
public:
friend class PSpeaker;
PListener();
virtual ~PListener();
virtual void Listen(int message, void *dataPt) = 0;
int IsIgnoring() { return mIgnoring; }
void Ignore(int ignore_on=1) { mIgnoring = ignore_on; }
private:
void AddSpeaker(PSpeaker *aSpeaker);
void RemoveSpeaker(PSpeaker *aSpeaker);
int mIgnoring;
PSpeaker ** mSpeakers;
int mNumSpeakers;
int mMaxSpeakers;
};
#endif // __PListener_h__