![]() |
LIDL Soundboard
1.9.0
A simple soundboard, yet better than EXP Soundboard forsenE
|
The HookController class. More...
#include <HookController.h>
Public Member Functions | |
void | SetHooks () |
SetHooks Sets up the hooks. More... | |
void | UnSetHooks () |
UnSetHooks Unregister the hooks (before closing app, because if you don't unregister them close the app, and switch to another window fast it will trigger a "must construct QApplication before QPixMap" error and crash because of the overlay still trying to show. More... | |
Static Public Member Functions | |
static HookController * | GetInstance () |
GetInstace. More... | |
static Profile * | GetProfileForExe (HWND handle) |
GetProfileForExe. More... | |
Private Member Functions | |
HookController () | |
Private Attributes | |
QVector< HWINEVENTHOOK > | _hookHandles |
Static Private Attributes | |
static HookController * | self = nullptr |
The HookController class.
The singleton dealing with registering and unregistering the WinApi hooks
|
private |
|
static |
GetInstace.
References HookController().
Referenced by SoundboardMainUI::closeEvent(), and SoundboardMainUI::SoundboardMainUI().
|
static |
GetProfileForExe.
Basically will: Get the full path to the executable linked to the window Transform it to linux style path with forward slash Search for it in the array of profile using the designated method in SettingsController
References FALSE, LIDL::Controller::ProfileController::GetInstance(), and LIDL::Controller::ProfileController::GetProfileForExe().
Referenced by LIDL::Callback::ShowOverlay().
void LIDL::Controller::HookController::SetHooks | ( | ) |
SetHooks Sets up the hooks.
References _hookHandles, LIDL::Callback::ResizeToWindow(), LIDL::Callback::ShowOverlay(), and UnSetHooks().
Referenced by SoundboardMainUI::SoundboardMainUI().
void LIDL::Controller::HookController::UnSetHooks | ( | ) |
UnSetHooks Unregister the hooks (before closing app, because if you don't unregister them close the app, and switch to another window fast it will trigger a "must construct QApplication before QPixMap" error and crash because of the overlay still trying to show.
References _hookHandles.
Referenced by SoundboardMainUI::closeEvent(), and SetHooks().
|
private |
Referenced by SetHooks(), and UnSetHooks().
|
staticprivate |