Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
166ed9fa
Commit
166ed9fa
authored
Dec 08, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add deleteTempLogFiles method
parent
1903e1f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
MAVLinkProtocol.cc
src/comm/MAVLinkProtocol.cc
+12
-0
MAVLinkProtocol.h
src/comm/MAVLinkProtocol.h
+3
-0
No files found.
src/comm/MAVLinkProtocol.cc
View file @
166ed9fa
...
...
@@ -757,3 +757,15 @@ void MAVLinkProtocol::suspendLogForReplay(bool suspend)
_logSuspendReplay
=
suspend
;
}
void
MAVLinkProtocol
::
deleteTempLogFiles
(
void
)
{
QDir
tempDir
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
TempLocation
));
QString
filter
(
QString
(
"*.%1"
).
arg
(
_logFileExtension
));
QFileInfoList
fileInfoList
=
tempDir
.
entryInfoList
(
QStringList
(
filter
),
QDir
::
Files
);
foreach
(
const
QFileInfo
fileInfo
,
fileInfoList
)
{
QFile
::
remove
(
fileInfo
.
filePath
());
}
}
src/comm/MAVLinkProtocol.h
View file @
166ed9fa
...
...
@@ -199,6 +199,9 @@ public slots:
/// and not called directly in order to synchronize with the bytesReady signal
/// which may be ahead of it in the signal queue.
void
suspendLogForReplay
(
bool
suspend
);
/// @brief Deletes any log files which are in the temp directory
static
void
deleteTempLogFiles
(
void
);
protected:
// Override from QObject
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment