ASPiK SDK
appdelegate.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 "../iappdelegate.h"
8 
9 //------------------------------------------------------------------------
10 namespace VSTGUI {
11 namespace Standalone {
12 namespace Application {
13 
14 //------------------------------------------------------------------------
19 class DelegateAdapter : public IDelegate
20 {
21 public:
22  DelegateAdapter (Info&& info) : appInfo (std::move (info)) {}
23 
24  void finishLaunching () override {}
25  void onQuit () override {}
26  bool canQuit () override { return true; }
27  void showAboutDialog () override {}
28  bool hasAboutDialog () override { return false; }
29  void showPreferenceDialog () override {}
30  bool hasPreferenceDialog () override { return false; }
31  const Info& getInfo () const override { return appInfo; }
32  UTF8StringPtr getSharedUIResourceFilename () const override { return nullptr; }
33  bool openFiles (const std::vector<UTF8String>& paths) override { return false; }
34 //------------------------------------------------------------------------
35 private:
36  Info appInfo;
37 };
38 
39 //------------------------------------------------------------------------
40 } // Application
41 } // Standalone
42 } // VSTGUI
void finishLaunching() override
Definition: appdelegate.h:24
Definition: iappdelegate.h:43
void onQuit() override
Definition: appdelegate.h:25
bool hasPreferenceDialog() override
Definition: appdelegate.h:30
bool openFiles(const std::vector< UTF8String > &paths) override
Definition: appdelegate.h:33
UTF8StringPtr getSharedUIResourceFilename() const override
Definition: appdelegate.h:32
Definition: customcontrols.cpp:8
bool canQuit() override
Definition: appdelegate.h:26
void showPreferenceDialog() override
Definition: appdelegate.h:29
const Info & getInfo() const override
Definition: appdelegate.h:31
void showAboutDialog() override
Definition: appdelegate.h:27
Definition: iappdelegate.h:23
bool hasAboutDialog() override
Definition: appdelegate.h:28