MCPcopy Create free account
hub / github.com/bumptop/BumpTop / GetUserApplicationDataPath

Method GetUserApplicationDataPath

trunk/win/Source/BT_WindowsOS.cpp:3510–3531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3508}
3509
3510QDir WindowsSystem::GetUserApplicationDataPath()
3511{
3512 static QDir btAppDataPath;
3513 QString str = btAppDataPath.absolutePath();
3514 if (empty(btAppDataPath))
3515 {
3516 QDir appPath = winOS->GetSystemPath(CSIDL_APPDATA);
3517 QDir companyPath = appPath / "Bump Technologies, Inc";
3518 QDir productName = companyPath / "BumpTop";
3519
3520 // ensure company path exists
3521 if (!exists(companyPath))
3522 create_directory(companyPath);
3523
3524 // ensure product path exists
3525 if (!exists(productName))
3526 create_directory(productName);
3527
3528 btAppDataPath = productName;
3529 }
3530 return btAppDataPath;
3531}
3532
3533QDir WindowsSystem::GetUserLocalApplicationDataPath()
3534{

Callers 4

openFileMethod · 0.80
renameFileMethod · 0.80
onCommandMethod · 0.80
getRemainingTrialDaysFunction · 0.80

Calls 4

GetSystemPathMethod · 0.80
emptyFunction · 0.70
existsFunction · 0.70
create_directoryFunction · 0.70

Tested by

no test coverage detected