Line data Source code
1 : /*
2 : * Copyright (C) 2026 Sky UK
3 : *
4 : * This library is free software; you can redistribute it and/or
5 : * modify it under the terms of the GNU Lesser General Public
6 : * License as published by the Free Software Foundation;
7 : * version 2.1 of the License.
8 : *
9 : * This library is distributed in the hope that it will be useful,
10 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 : * Lesser General Public License for more details.
13 : *
14 : * You should have received a copy of the GNU Lesser General Public
15 : * License along with this library; if not, write to the Free Software
16 : * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 : */
18 :
19 : #ifndef IFLUSH_AND_DATA_SYNCHRONIZER_H_
20 : #define IFLUSH_AND_DATA_SYNCHRONIZER_H_
21 :
22 : #include <cstdint>
23 :
24 : class IFlushAndDataSynchronizer
25 : {
26 : public:
27 279 : virtual ~IFlushAndDataSynchronizer() = default;
28 :
29 : virtual void addSource(int32_t sourceId) = 0;
30 : virtual void removeSource(int32_t sourceId) = 0;
31 : virtual void notifyFlushStarted(int32_t sourceId) = 0;
32 : virtual void notifyFlushCompleted(int32_t sourceId) = 0;
33 : virtual void notifyDataReceived(int32_t sourceId) = 0;
34 : virtual void notifyDataPushed(int32_t sourceId) = 0;
35 : virtual void waitIfRequired(int32_t sourceId) = 0;
36 : virtual bool isAnySourceFlushing() const = 0;
37 : };
38 :
39 : #endif // IFLUSH_AND_DATA_SYNCHRONIZER_H_
|