Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[nodebase] Emit debug logging if stub methods are reached
Classes that inherit NodeBase should provide actual implementation
for sensor specific setter/getter methods. To ease debugging make
it visible when/if the default virtual stub methods get called.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed May 29, 2018
1 parent 38ed4f8 commit 4a34bdb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/nodebase.cpp
Expand Up @@ -711,36 +711,41 @@ bool NodeBase::setDataRange(const DataRange& range, int sessionId)
{
Q_UNUSED(range);
Q_UNUSED(sessionId);
sensordLogD() << __func__ << "not implemented in some node using it.";
return false;
}

bool NodeBase::setStandbyOverride(bool override)
{
Q_UNUSED(override);
sensordLogD() << __func__ << "not implemented in some node using it.";
return false;
}

unsigned int NodeBase::interval() const
{
sensordLogD() << __func__ << "not implemented in some node using it.";
return 0;
}

bool NodeBase::setInterval(unsigned int value, int sessionId)
{
sensordLogW() << "setInterval() not implemented in some node using it.";
Q_UNUSED(value);
Q_UNUSED(sessionId);
sensordLogD() << __func__ << "not implemented in some node using it.";
return false;
}

bool NodeBase::setBufferSize(unsigned int value)
{
Q_UNUSED(value);
sensordLogD() << __func__ << "not implemented in some node using it.";
return false;
}

bool NodeBase::setBufferInterval(unsigned int value)
{
Q_UNUSED(value);
sensordLogD() << __func__ << "not implemented in some node using it.";
return false;
}

0 comments on commit 4a34bdb

Please sign in to comment.