| 3508 | } |
| 3509 | |
| 3510 | QDir 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 | |
| 3533 | QDir WindowsSystem::GetUserLocalApplicationDataPath() |
| 3534 | { |
no test coverage detected