| 3531 | } |
| 3532 | |
| 3533 | QDir WindowsSystem::GetUserLocalApplicationDataPath() |
| 3534 | { |
| 3535 | static QDir btAppDataPath; |
| 3536 | if (empty(btAppDataPath)) |
| 3537 | { |
| 3538 | QDir appPath = winOS->GetSystemPath(CSIDL_LOCAL_APPDATA); |
| 3539 | QDir companyPath = appPath / "Bump Technologies, Inc"; |
| 3540 | QDir productName = companyPath / "BumpTop"; |
| 3541 | |
| 3542 | // ensure company path exists |
| 3543 | if (!exists(companyPath)) |
| 3544 | create_directory(companyPath); |
| 3545 | |
| 3546 | // ensure product path exists |
| 3547 | if (!exists(productName)) |
| 3548 | create_directory(productName); |
| 3549 | |
| 3550 | btAppDataPath = productName; |
| 3551 | } |
| 3552 | return btAppDataPath; |
| 3553 | } |
| 3554 | |
| 3555 | HWND WindowsSystem::GetWindowsHandle() |
| 3556 | { |
no test coverage detected