21 const QString &routeDownloadCommand,
const QString &routeUploadCommand,
22 const QString &trackDownloadCommand,
const QString &trackUploadCommand )
24 const thread_local QRegularExpression whiteSpaceRx( QStringLiteral(
"\\s" ) );
26 if ( !waypointDownloadCommand.isEmpty() )
28 mWaypointDownloadCommand = waypointDownloadCommand.split( whiteSpaceRx, Qt::SkipEmptyParts );
32 if ( !waypointUploadCommand.isEmpty() )
34 mWaypointUploadCommand = waypointUploadCommand.split( whiteSpaceRx, Qt::SkipEmptyParts );
38 if ( !routeDownloadCommand.isEmpty() )
40 mRouteDownloadCommand = routeDownloadCommand.split( whiteSpaceRx, Qt::SkipEmptyParts );
44 if ( !routeUploadCommand.isEmpty() )
46 mRouteUploadCommand = routeUploadCommand.split( whiteSpaceRx, Qt::SkipEmptyParts );
50 if ( !trackDownloadCommand.isEmpty() )
52 mTrackDownloadCommand = trackDownloadCommand.split( whiteSpaceRx, Qt::SkipEmptyParts );
56 if ( !trackUploadCommand.isEmpty() )
58 mTrackUploadCommand = trackUploadCommand.split( whiteSpaceRx, Qt::SkipEmptyParts );