Loading...
Searching...
No Matches
juce_Process.h
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2022 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
The code included in this file is provided under the terms of the ISC license
http://www.isc.org/downloads/software-support-policy/isc-license. Permission
To use, copy, modify, and/or distribute this software for any purpose with or
without fee is hereby granted provided that the above copyright notice and
this permission notice appear in all copies.
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
DISCLAIMED.
==============================================================================
*/
namespace juce
{
//==============================================================================
class JUCE_API Process
{
public:
//==============================================================================
enum ProcessPriority
{
LowPriority = 0,
NormalPriority = 1,
HighPriority = 2,
RealtimePriority = 3
};
static void JUCE_CALLTYPE setPriority (ProcessPriority priority);
static void JUCE_CALLTYPE terminate();
//==============================================================================
static bool JUCE_CALLTYPE isForegroundProcess();
static void JUCE_CALLTYPE makeForegroundProcess();
static void JUCE_CALLTYPE hide();
//==============================================================================
static void JUCE_CALLTYPE raisePrivilege();
static void JUCE_CALLTYPE lowerPrivilege();
//==============================================================================
static bool JUCE_CALLTYPE isRunningUnderDebugger() noexcept;
//==============================================================================
static bool JUCE_CALLTYPE openDocument (const String& documentURL, const String& parameters);
static bool JUCE_CALLTYPE openEmailWithAttachments (const String& targetEmailAddress,
const String& emailSubject,
const String& bodyText,
const StringArray& filesToAttach);
//==============================================================================
#if JUCE_WINDOWS || DOXYGEN
static void* JUCE_CALLTYPE getCurrentModuleInstanceHandle() noexcept;
static void JUCE_CALLTYPE setCurrentModuleInstanceHandle (void* newHandle) noexcept;
#endif
//==============================================================================
#if JUCE_MAC || DOXYGEN
static void setDockIconVisible (bool isVisible);
#endif
//==============================================================================
#if JUCE_MAC || JUCE_LINUX || JUCE_BSD || DOXYGEN
static bool setMaxNumberOfFileHandles (int maxNumberOfFiles) noexcept;
#endif
private:
Process();
JUCE_DECLARE_NON_COPYABLE (Process)
};
} // namespace juce
juce::Process::lowerPrivilege
static void JUCE_CALLTYPE lowerPrivilege()
juce::Process::openEmailWithAttachments
static bool JUCE_CALLTYPE openEmailWithAttachments(const String &targetEmailAddress, const String &emailSubject, const String &bodyText, const StringArray &filesToAttach)
juce::Process::hide
static void JUCE_CALLTYPE hide()
juce::Process::isRunningUnderDebugger
static bool JUCE_CALLTYPE isRunningUnderDebugger() noexcept
Definition juce_Thread.cpp:348
juce::Process::openDocument
static bool JUCE_CALLTYPE openDocument(const String &documentURL, const String &parameters)
juce::Process::makeForegroundProcess
static void JUCE_CALLTYPE makeForegroundProcess()
juce::Process::isForegroundProcess
static bool JUCE_CALLTYPE isForegroundProcess()
juce::Process::raisePrivilege
static void JUCE_CALLTYPE raisePrivilege()
juce::Process::setPriority
static void JUCE_CALLTYPE setPriority(ProcessPriority priority)
juce::Process::terminate
static void JUCE_CALLTYPE terminate()
juce::StringArray
Definition juce_StringArray.h:35
juce::String
Definition juce_String.h:53