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

Method GetStatsDirectory

trunk/win/Source/BT_WindowsOS.cpp:2011–2024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2009}
2010
2011QDir WindowsSystem::GetStatsDirectory()
2012{
2013 // always keep the stats in the Application Data folder
2014 // i.e. C:/Documents and Settings/<User>/Application Data/BumpTop Technologies, Inc./Bumptop
2015
2016 QFileInfo statsPath(GetUserApplicationDataPath(), "stats");
2017 QDir statsDir(statsPath.absoluteFilePath());
2018
2019 // ensure stats path exists
2020 if (!exists(statsPath))
2021 GetUserApplicationDataPath().mkdir(statsPath.fileName());
2022
2023 return statsDir;
2024}
2025
2026QDir WindowsSystem::GetDataDirectory()
2027{

Callers 12

EmailCrashReportFunction · 0.80
for_eachFunction · 0.80
saveStatsMethod · 0.80
loadStatsMethod · 0.80
takeScreenshotMethod · 0.80
getScreenshotMethod · 0.80
hasScreenshotMethod · 0.80
uploadFilesMethod · 0.80
clearScreenshotsMethod · 0.80
shouldUploadStatsMethod · 0.80
checkForMultipleGuidsMethod · 0.80

Calls 3

fileNameMethod · 0.80
existsFunction · 0.70

Tested by

no test coverage detected