#include <juce_Process.h>
|
enum | ProcessPriority { LowPriority = 0
, NormalPriority = 1
, HighPriority = 2
, RealtimePriority = 3
} |
|
Represents the current executable's process.
This contains methods for controlling the current application at the process-level.
- See also
- Thread, JUCEApplicationBase
Definition at line 36 of file juce_Process.h.
◆ ProcessPriority
enum juce::Process::ProcessPriority |
◆ hide()
static void JUCE_CALLTYPE juce::Process::hide |
( |
| ) |
|
|
static |
Hides the application (on an OS that supports this, e.g. OSX, iOS, Android)
◆ isForegroundProcess()
static bool JUCE_CALLTYPE juce::Process::isForegroundProcess |
( |
| ) |
|
|
static |
Returns true if this application process is the one that the user is currently using.
◆ isRunningUnderDebugger()
bool JUCE_CALLTYPE juce::Process::isRunningUnderDebugger |
( |
| ) |
|
|
staticnoexcept |
Returns true if this process is being hosted by a debugger.
Definition at line 348 of file juce_Thread.cpp.
◆ lowerPrivilege()
static void JUCE_CALLTYPE juce::Process::lowerPrivilege |
( |
| ) |
|
|
static |
Lowers the current process's privilege level.
Does nothing if this isn't supported by the current OS, or if process privilege level is fixed.
◆ makeForegroundProcess()
static void JUCE_CALLTYPE juce::Process::makeForegroundProcess |
( |
| ) |
|
|
static |
Attempts to make the current process the active one. (This is not possible on some platforms).
◆ openDocument()
static bool JUCE_CALLTYPE juce::Process::openDocument |
( |
const String & |
documentURL, |
|
|
const String & |
parameters |
|
) |
| |
|
static |
◆ openEmailWithAttachments()
static bool JUCE_CALLTYPE juce::Process::openEmailWithAttachments |
( |
const String & |
targetEmailAddress, |
|
|
const String & |
emailSubject, |
|
|
const String & |
bodyText, |
|
|
const StringArray & |
filesToAttach |
|
) |
| |
|
static |
Tries to launch the OS's default email application to let the user create a message.
◆ raisePrivilege()
static void JUCE_CALLTYPE juce::Process::raisePrivilege |
( |
| ) |
|
|
static |
Raises the current process's privilege level.
Does nothing if this isn't supported by the current OS, or if process privilege level is fixed.
◆ setPriority()
static void JUCE_CALLTYPE juce::Process::setPriority |
( |
ProcessPriority |
priority | ) |
|
|
static |
Changes the current process's priority.
- Parameters
-
priority | the process priority, where 0=low, 1=normal, 2=high, 3=realtime |
◆ terminate()
static void JUCE_CALLTYPE juce::Process::terminate |
( |
| ) |
|
|
static |
Kills the current process immediately.
This is an emergency process terminator that kills the application immediately - it's intended only for use only when something goes horribly wrong.
- See also
- JUCEApplicationBase::quit
The documentation for this class was generated from the following files: