ASPiK SDK
iappdelegate.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #pragma once
6 
7 #include "fwd.h"
8 #include "../../lib/cstring.h"
9 #include "interface.h"
10 #include <memory>
11 #include <vector>
12 
13 //------------------------------------------------------------------------
14 namespace VSTGUI {
15 namespace Standalone {
16 namespace Application {
17 
18 //------------------------------------------------------------------------
23 struct Info
24 {
31 };
32 
33 //------------------------------------------------------------------------
43 class IDelegate : public Interface
44 {
45 public:
47  virtual void finishLaunching () = 0;
49  virtual void onQuit () = 0;
51  virtual bool canQuit () = 0;
53  virtual void showAboutDialog () = 0;
55  virtual bool hasAboutDialog () = 0;
57  virtual void showPreferenceDialog () = 0;
59  virtual bool hasPreferenceDialog () = 0;
61  virtual const Info& getInfo () const = 0;
68  virtual UTF8StringPtr getSharedUIResourceFilename () const = 0;
74  virtual bool openFiles (const std::vector<UTF8String>& paths) = 0;
75 };
76 
77 //------------------------------------------------------------------------
78 struct Init
79 {
80  explicit Init (DelegatePtr&& delegate);
81 };
82 
83 //------------------------------------------------------------------------
84 } // Application
85 } // Standalone
86 } // VSTGUI
UTF8String name
Definition: iappdelegate.h:26
UTF8String uri
Definition: iappdelegate.h:30
virtual bool openFiles(const std::vector< UTF8String > &paths)=0
Definition: interface.h:13
Definition: iappdelegate.h:43
Definition: customcontrols.cpp:8
virtual UTF8StringPtr getSharedUIResourceFilename() const =0
holds an UTF8 encoded string and a platform representation of it
Definition: cstring.h:56
UTF8String version
Definition: iappdelegate.h:28
virtual const Info & getInfo() const =0
Definition: iappdelegate.h:78
Definition: iappdelegate.h:23