Skip to content

Commit

Permalink
Rename method for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 16, 2022
1 parent 77a1ca3 commit ab03a9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/app/gps/qgsappgpslogging.cpp
Expand Up @@ -51,14 +51,14 @@ void QgsAppGpsLogging::setNmeaLogFile( const QString &filename )
{
if ( mLogFile )
{
stopLogging();
stopNmeaLogging();
}

mNmeaLogFile = filename;

if ( mEnableNmeaLogging && !mNmeaLogFile.isEmpty() )
{
startLogging();
startNmeaLogging();
}
}

Expand All @@ -69,14 +69,14 @@ void QgsAppGpsLogging::setNmeaLoggingEnabled( bool enabled )

if ( mLogFile && !enabled )
{
stopLogging();
stopNmeaLogging();
}

mEnableNmeaLogging = enabled;

if ( mEnableNmeaLogging && !mNmeaLogFile.isEmpty() )
{
startLogging();
startNmeaLogging();
}
}

Expand All @@ -90,14 +90,14 @@ void QgsAppGpsLogging::gpsConnected()
{
if ( !mLogFile && mEnableNmeaLogging && !mNmeaLogFile.isEmpty() )
{
startLogging();
startNmeaLogging();
}
setConnection( mConnection->connection() );
}

void QgsAppGpsLogging::gpsDisconnected()
{
stopLogging();
stopNmeaLogging();
setConnection( nullptr );
}

Expand All @@ -109,7 +109,7 @@ void QgsAppGpsLogging::logNmeaSentence( const QString &nmeaString )
}
}

void QgsAppGpsLogging::startLogging()
void QgsAppGpsLogging::startNmeaLogging()
{
if ( !mLogFile )
{
Expand All @@ -134,7 +134,7 @@ void QgsAppGpsLogging::startLogging()
}
}

void QgsAppGpsLogging::stopLogging()
void QgsAppGpsLogging::stopNmeaLogging()
{
if ( mLogFile && mLogFile->isOpen() )
{
Expand Down
4 changes: 2 additions & 2 deletions src/app/gps/qgsappgpslogging.h
Expand Up @@ -51,8 +51,8 @@ class APP_EXPORT QgsAppGpsLogging: public QgsGpsLogger

void logNmeaSentence( const QString &nmeaString ); // added to handle 'raw' data

void startLogging();
void stopLogging();
void startNmeaLogging();
void stopNmeaLogging();

private:
QgsAppGpsConnection *mConnection = nullptr;
Expand Down

0 comments on commit ab03a9a

Please sign in to comment.