Audacity 3.2.0
Public Member Functions | List of all members
PluginHostModule Class Referencefinal
Inheritance diagram for PluginHostModule:
[legend]
Collaboration diagram for PluginHostModule:
[legend]

Public Member Functions

bool OnInit () override
 
void OnExit () override
 

Detailed Description

Definition at line 208 of file PluginHost.cpp.

Member Function Documentation

◆ OnExit()

void PluginHostModule::OnExit ( void  )
inlineoverride

Definition at line 236 of file PluginHost.cpp.

237 {
238
239 }

◆ OnInit()

bool PluginHostModule::OnInit ( )
inlineoverride

Definition at line 214 of file PluginHost.cpp.

215 {
217 {
218 long connectPort;
219 if(!wxString{ CommandLineArgs::argv[2] }.ToLong(&connectPort))
220 return false;
221
222 //log messages will appear in a separate window
223 //redirect to log file later
224 wxLog::EnableLogging(false);
225
226 //Handle requests...
227 PluginHost host(connectPort);
228 while(host.Serve()) { }
229 //...and terminate app
230 return false;
231 }
232 //do nothing if current process isn't a host process
233 return true;
234 }
Internal class, processes plugin validation requests from the main app. Request is a simple string fo...
Definition: PluginHost.h:36
static bool IsHostProcess()
Returns true if current process is considered to be a plugin host process.
Definition: PluginHost.cpp:202
UTILITY_API const char *const * argv
A copy of argv; responsibility of application startup to assign it.

References CommandLineArgs::argv, PluginHost::IsHostProcess(), and PluginHost::Serve().

Here is the call graph for this function:

The documentation for this class was generated from the following file: