mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 00:45:46 +08:00
VoiceRoom: removed default initializers, fixed Doxygen
This commit is contained in:
@@ -18,16 +18,16 @@ namespace BlackMisc
|
|||||||
namespace Voice
|
namespace Voice
|
||||||
{
|
{
|
||||||
CVoiceRoom::CVoiceRoom(const QString &serverUrl, bool connected) :
|
CVoiceRoom::CVoiceRoom(const QString &serverUrl, bool connected) :
|
||||||
m_hostname(""), m_channel(""), m_connected(connected), m_audioPlaying(false)
|
m_connected(connected), m_audioPlaying(false)
|
||||||
{
|
{
|
||||||
if (serverUrl.contains("/"))
|
if (serverUrl.contains("/"))
|
||||||
{
|
{
|
||||||
QString url = serverUrl.trimmed().toLower();
|
QString url = serverUrl.trimmed().toLower();
|
||||||
url.replace(CVoiceRoom::protocolComplete(), "");
|
url.replace(CVoiceRoom::protocolComplete(), "");
|
||||||
url.replace(CVoiceRoom::protocol(), "");
|
url.replace(CVoiceRoom::protocol(), "");
|
||||||
QStringList splittedSpec = serverUrl.split("/");
|
QStringList splitParts = serverUrl.split("/");
|
||||||
m_hostname = splittedSpec.at(0);
|
m_hostname = splitParts.at(0);
|
||||||
m_channel = splittedSpec.at(1);
|
m_channel = splitParts.at(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace BlackMisc
|
|||||||
* \param channel
|
* \param channel
|
||||||
*/
|
*/
|
||||||
CVoiceRoom(const QString &hostname, const QString &channel) :
|
CVoiceRoom(const QString &hostname, const QString &channel) :
|
||||||
m_hostname(hostname), m_channel(channel), m_audioPlaying(false) {}
|
m_hostname(hostname), m_channel(channel), m_connected(false), m_audioPlaying(false) {}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|||||||
Reference in New Issue
Block a user