Audacity 3.2.0
PlatformCompatibility.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 PlatformCompatibility.h
6
7 Platform-specific compatibility functions
8
9 This file implements functions needed to work around
10 platform-specific problems and which cannot be solved by a simple
11 #ifdef/#endif plus two or three lines additional code. Wherever
12 possible, the implementation should be such, that the function is
13 implemented on every platform, but is a dummy for those platforms
14 on which it is not needed, so additional #ifdef's are unnecessary.
15
16 Markus Meyer
17
18**********************************************************************/
19
20#ifndef __AUDACITY_COMPATIBILITY__
21#define __AUDACITY_COMPATIBILITY__
22
23#include "Identifier.h"
24
26{
27 //
28 // On Win32, this function gets the long file name (like
29 // "C:\Program Files\Project.aup3") from a short file name like
30 // "C:\PROGRA~1\PROJEC~1.AUP. On other systems, the function
31 // just returns the exact string it is given.
32 //
33 FilePath FILES_API GetLongFileName(const FilePath& shortFileName);
34
35 std::string FILES_API GetUserDataDir();
36 std::string FILES_API GetUserLocalDataDir();
37 std::string FILES_API GetResourcesDir();
38 std::string FILES_API GetDataDir();
39 std::string FILES_API GetPluginsDir();
40 std::string FILES_API GetDocumentsDir();
41 std::string FILES_API GetExecutablePath();
42 std::string FILES_API GetTempDir();
43 std::string FILES_API GetHomeDir();
44};
45
46#endif
wxString FilePath
Definition: Project.h:21
std::string FILES_API GetPluginsDir()
std::string FILES_API GetUserDataDir()
FilePath FILES_API GetLongFileName(const FilePath &shortFileName)
std::string FILES_API GetDocumentsDir()
std::string FILES_API GetTempDir()
std::string FILES_API GetDataDir()
std::string FILES_API GetResourcesDir()
std::string FILES_API GetExecutablePath()
std::string FILES_API GetHomeDir()
std::string FILES_API GetUserLocalDataDir()