openshot-audio  0.1.6
juce_Application.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission is granted to use this software under the terms of either:
8  a) the GPL v2 (or any later version)
9  b) the Affero GPL v3
10 
11  Details of these licenses can be found at: www.gnu.org/licenses
12 
13  JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15  A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 
17  ------------------------------------------------------------------------------
18 
19  To release a closed-source product which uses JUCE, commercial licenses are
20  available: visit www.juce.com for more information.
21 
22  ==============================================================================
23 */
24 
25 #ifndef JUCE_APPLICATION_H_INCLUDED
26 #define JUCE_APPLICATION_H_INCLUDED
27 
28 
29 //==============================================================================
90 {
91 public:
92  //==============================================================================
100 
107  ~JUCEApplication();
108 
109  //==============================================================================
112 
113  //==============================================================================
114  #if DOXYGEN
115 
116  virtual const String getApplicationName() = 0;
117 
119  virtual const String getApplicationVersion() = 0;
120  #endif
121 
132  bool moreThanOneInstanceAllowed() override;
133 
137  void anotherInstanceStarted (const String& commandLine) override;
138 
151  void systemRequestedQuit() override;
152 
156  void suspended() override;
157 
161  void resumed() override;
162 
171  void unhandledException (const std::exception* e,
172  const String& sourceFilename,
173  int lineNumber) override;
174 
175  //==============================================================================
181  void getAllCommands (Array<CommandID>&) override;
183  bool perform (const InvocationInfo&) override;
184 
185 private:
186  bool initialiseApp() override;
187 
189 };
190 
191 
192 #endif // JUCE_APPLICATION_H_INCLUDED
virtual bool perform(const InvocationInfo &info)=0
#define noexcept
Definition: juce_CompilerSupport.h:141
virtual const String getApplicationVersion()=0
#define JUCE_CALLTYPE
Definition: juce_PlatformDefs.h:50
Definition: juce_String.h:43
static JUCEApplicationBase * getInstance() noexcept
Definition: juce_ApplicationBase.h:97
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_ApplicationCommandTarget.h:58
virtual void suspended()=0
Definition: juce_ApplicationCommandTarget.h:44
virtual bool initialiseApp()
Definition: juce_ApplicationBase.cpp:250
Definition: juce_ApplicationBase.h:85
virtual void systemRequestedQuit()=0
virtual void getAllCommands(Array< CommandID > &commands)=0
Definition: juce_win32_Windowing.cpp:76
virtual void resumed()=0
virtual void unhandledException(const std::exception *, const String &sourceFilename, int lineNumber)=0
Definition: juce_Array.h:60
#define JUCE_DECLARE_NON_COPYABLE(className)
Definition: juce_PlatformDefs.h:191
virtual const String getApplicationName()=0
virtual void anotherInstanceStarted(const String &commandLine)=0
virtual void getCommandInfo(CommandID commandID, ApplicationCommandInfo &result)=0
Definition: juce_ApplicationCommandInfo.h:42
Definition: juce_Application.h:88
virtual ApplicationCommandTarget * getNextCommandTarget()=0
virtual bool moreThanOneInstanceAllowed()=0