ASPiK SDK
ipreference.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 "../../lib/optional.h"
10 #include "interface.h"
11 
12 //------------------------------------------------------------------------
13 namespace VSTGUI {
14 namespace Standalone {
15 
16 //------------------------------------------------------------------------
22 class IPreference : public Interface
23 {
24 public:
26  virtual bool set (const UTF8String& key, const UTF8String& value) = 0;
28  virtual Optional<UTF8String> get (const UTF8String& key) = 0;
29 };
30 
31 //------------------------------------------------------------------------
32 } // Standalone
33 } // VSTGUI
Definition: interface.h:13
Definition: customcontrols.cpp:8
holds an UTF8 encoded string and a platform representation of it
Definition: cstring.h:56
Definition: optional.h:18
Definition: ipreference.h:22