ASPiK SDK
icommondirectories.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 "../../lib/cstring.h"
8 #include "../../lib/optional.h"
9 #include "interface.h"
10 
11 //------------------------------------------------------------------------
12 namespace VSTGUI {
13 namespace Standalone {
14 
15 //------------------------------------------------------------------------
16 enum class CommonDirectoryLocation
17 {
18  AppPath,
19  AppPreferencesPath,
20  AppCachesPath,
21  UserDocumentsPath,
22 };
23 
24 //------------------------------------------------------------------------
26 {
27 public:
36  virtual Optional<UTF8String> get (CommonDirectoryLocation location,
37  const UTF8String& subDir = "", bool create = false) const = 0;
38 };
39 
40 //------------------------------------------------------------------------
41 } // Standalone
42 } // VSTGUI
Definition: icommondirectories.h:25
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