Improved samples and debugging information

* DBus test for CSimulatedAircraft
* Output of metatypes in GUI/core
* Changed output from qDebug() to QTextStream
* Variant test for CSimulatedAircraft
This commit is contained in:
Klaus Basan
2015-01-25 03:49:32 +01:00
parent deba08eef0
commit ca07e68c34
14 changed files with 95 additions and 24 deletions

View File

@@ -500,19 +500,18 @@ namespace BlackSound
if (removeFileAfterPlaying) BlackMisc::CFileDeleter::addFileForDeletion(file);
}
void CSoundGenerator::printAllQtSoundDevices()
void CSoundGenerator::printAllQtSoundDevices(QTextStream &out)
{
QTextStream qtout(stdout);
qtout << "output" << endl;
out << "output:" << endl;
foreach(QAudioDeviceInfo qd, QAudioDeviceInfo::availableDevices(QAudio::AudioOutput))
{
qtout << qd.deviceName() << endl;
out << qd.deviceName() << endl;
}
qtout << "input" << endl;
out << "input:" << endl;
foreach(QAudioDeviceInfo qd, QAudioDeviceInfo::availableDevices(QAudio::AudioInput))
{
qtout << qd.deviceName() << endl;
out << qd.deviceName() << endl;
}
}

View File

@@ -191,7 +191,7 @@ namespace BlackSound
static void playNotificationSound(qint32 volume, CNotificationSounds::Notification notification);
//! For debugging purposes
void static printAllQtSoundDevices();
void static printAllQtSoundDevices(QTextStream &qtout = QTextStream(stdout));
signals:
/*!