openshot-audio  0.1.2
juce_Process.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the juce_core module of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission to use, copy, modify, and/or distribute this software for any purpose with
8  or without fee is hereby granted, provided that the above copyright notice and this
9  permission notice appear in all copies.
10 
11  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
12  TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
13  NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
15  IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 
18  ------------------------------------------------------------------------------
19 
20  NOTE! This permissive ISC license applies ONLY to files within the juce_core module!
21  All other JUCE modules are covered by a dual GPL/commercial license, so if you are
22  using any other modules, be sure to check that you also comply with their license.
23 
24  For more details, visit www.juce.com
25 
26  ==============================================================================
27 */
28 
29 #ifndef JUCE_PROCESS_H_INCLUDED
30 #define JUCE_PROCESS_H_INCLUDED
31 
32 
33 //==============================================================================
42 {
43 public:
44  //==============================================================================
46  {
47  LowPriority = 0,
48  NormalPriority = 1,
49  HighPriority = 2,
50  RealtimePriority = 3
51  };
52 
58  static void JUCE_CALLTYPE setPriority (const ProcessPriority priority);
59 
68  static void JUCE_CALLTYPE terminate();
69 
70  //==============================================================================
74  static bool JUCE_CALLTYPE isForegroundProcess();
75 
79  static void JUCE_CALLTYPE makeForegroundProcess();
80 
82  static void JUCE_CALLTYPE hide();
83 
84  //==============================================================================
90  static void JUCE_CALLTYPE raisePrivilege();
91 
97  static void JUCE_CALLTYPE lowerPrivilege();
98 
99  //==============================================================================
101  static bool JUCE_CALLTYPE isRunningUnderDebugger();
102 
103 
104  //==============================================================================
106  static bool JUCE_CALLTYPE openDocument (const String& documentURL, const String& parameters);
107 
109  static bool JUCE_CALLTYPE openEmailWithAttachments (const String& targetEmailAddress,
110  const String& emailSubject,
111  const String& bodyText,
112  const StringArray& filesToAttach);
113 
114  #if JUCE_WINDOWS || DOXYGEN
115  //==============================================================================
129  static void* JUCE_CALLTYPE getCurrentModuleInstanceHandle() noexcept;
130 
138  static void JUCE_CALLTYPE setCurrentModuleInstanceHandle (void* newHandle) noexcept;
139  #endif
140 
141  #if JUCE_MAC || DOXYGEN
142  //==============================================================================
144  static void setDockIconVisible (bool isVisible);
145  #endif
146 
147 private:
148  Process();
150 };
151 
152 
153 #endif // JUCE_PROCESS_H_INCLUDED
ProcessPriority
Definition: juce_Process.h:45
#define noexcept
Definition: juce_CompilerSupport.h:141
#define JUCE_CALLTYPE
Definition: juce_PlatformDefs.h:50
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_StringArray.h:39
#define JUCE_DECLARE_NON_COPYABLE(className)
Definition: juce_PlatformDefs.h:191
Definition: juce_Process.h:41