mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
#include "EventHandler.h"
|
|
|
|
void EventHandler::HandleCurrentSceneCollectionChanging()
|
|
{
|
|
json eventData;
|
|
eventData["sceneCollectionName"] = Utils::Obs::StringHelper::GetCurrentSceneCollection();
|
|
BroadcastEvent(EventSubscription::Config, "CurrentSceneCollectionChanging", eventData);
|
|
}
|
|
|
|
void EventHandler::HandleCurrentSceneCollectionChanged()
|
|
{
|
|
json eventData;
|
|
eventData["sceneCollectionName"] = Utils::Obs::StringHelper::GetCurrentSceneCollection();
|
|
BroadcastEvent(EventSubscription::Config, "CurrentSceneCollectionChanged", eventData);
|
|
}
|
|
|
|
void EventHandler::HandleSceneCollectionListChanged()
|
|
{
|
|
json eventData;
|
|
eventData["sceneCollections"] = Utils::Obs::ListHelper::GetSceneCollectionList();
|
|
BroadcastEvent(EventSubscription::Config, "SceneCollectionListChanged", eventData);
|
|
}
|
|
|
|
void EventHandler::HandleCurrentProfileChanging()
|
|
{
|
|
json eventData;
|
|
eventData["profileName"] = Utils::Obs::StringHelper::GetCurrentProfile();
|
|
BroadcastEvent(EventSubscription::Config, "CurrentProfileChanging", eventData);
|
|
}
|
|
|
|
void EventHandler::HandleCurrentProfileChanged()
|
|
{
|
|
json eventData;
|
|
eventData["profileName"] = Utils::Obs::StringHelper::GetCurrentProfile();
|
|
BroadcastEvent(EventSubscription::Config, "CurrentProfileChanged", eventData);
|
|
}
|
|
|
|
void EventHandler::HandleProfileListChanged()
|
|
{
|
|
json eventData;
|
|
eventData["profiles"] = Utils::Obs::ListHelper::GetProfileList();
|
|
BroadcastEvent(EventSubscription::Config, "ProfileListChanged", eventData);
|
|
}
|