Audacity
3.2.0
libraries
lib-files
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
25
namespace
PlatformCompatibility
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
Identifier.h
FilePath
wxString FilePath
Definition:
Project.h:21
PlatformCompatibility
Definition:
PlatformCompatibility.h:26
PlatformCompatibility::GetPluginsDir
std::string FILES_API GetPluginsDir()
PlatformCompatibility::GetUserDataDir
std::string FILES_API GetUserDataDir()
PlatformCompatibility::GetLongFileName
FilePath FILES_API GetLongFileName(const FilePath &shortFileName)
PlatformCompatibility::GetDocumentsDir
std::string FILES_API GetDocumentsDir()
PlatformCompatibility::GetTempDir
std::string FILES_API GetTempDir()
PlatformCompatibility::GetDataDir
std::string FILES_API GetDataDir()
PlatformCompatibility::GetResourcesDir
std::string FILES_API GetResourcesDir()
PlatformCompatibility::GetExecutablePath
std::string FILES_API GetExecutablePath()
PlatformCompatibility::GetHomeDir
std::string FILES_API GetHomeDir()
PlatformCompatibility::GetUserLocalDataDir
std::string FILES_API GetUserLocalDataDir()
Generated by
1.9.3