From cf84538b783c48f76f43899d222d3d0a3231c71b Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 10 Feb 2013 08:52:19 +0000 Subject: [PATCH] added CChannelAdditionalInfo --- src/util.h | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/src/util.h b/src/util.h index 0e59b80e..f5af5755 100755 --- a/src/util.h +++ b/src/util.h @@ -489,6 +489,45 @@ public: }; +// Additional info of a channel ------------------------------------------------ +class CChannelAdditionalInfo +{ +public: + CChannelAdditionalInfo() : + iChanID ( 0 ), + eCountry ( QLocale::AnyCountry ), + strCity ( "" ), + iInstrument ( 0 ), + iSkillLevel ( 0 ) {} + + CChannelAdditionalInfo ( const int iNID, + const QLocale::Country& NeCountry, + const QString& NsCity, + const int NiInstrument, + const int NiSkillLevel ) : + iChanID ( iNID ), + eCountry ( NeCountry ), + strCity ( NsCity ), + iInstrument ( NiInstrument ), + iSkillLevel ( NiSkillLevel ) {} + + // ID of the channel + int iChanID; + + // country in which the client is located + QLocale::Country eCountry; + + // city in which the client is located + QString strCity; + + // instrument ID of the client (which instrument is he/she playing) + int iInstrument; + + // skill level of the musician + int iSkillLevel; +}; + + // Server info ----------------------------------------------------------------- class CServerCoreInfo { @@ -518,7 +557,6 @@ public: iMaxNumClients ( NiMaxNumClients ), bPermanentOnline ( NbPermOnline ) {} -public: // local port number of the server quint16 iLocalPortNumber;