11
12
13
14
15
16
19
20
28
29
30
31
32
33
34
35
36
37
38
39
45 m_producers.insert(producer->format(), producer);
49
50
51
52
53
54
55
56
62 auto it = m_producers.find(producer->format());
63 if (it != m_producers.end() && it.value() == producer)
64 m_producers.erase(it);
68
69
70
73 return m_producers.value(format,
nullptr);
77
78
81 return m_producers.values();
Singleton registry for discovering output producers by format.
void registerProducer(IOutputProducer *producer)
Registers producer with this registry.
QList< IOutputProducer * > allProducers() const
Returns all registered producers in unspecified order.
static OutputProducerRegistry & instance()
Returns the singleton registry instance.
void unregisterProducer(IOutputProducer *producer)
Unregisters producer from this registry.
Combined button and popup list for selecting options.