Commit Graph

171 Commits

Author SHA1 Message Date
Klaus Basan
2cd5f81828 Added booking service URL to setting, updated Doxygen 2014-01-25 01:41:28 +01:00
Klaus Basan
22a79625d1 Added callsign to user object:
* Changed user class
* Updated ATC station / aircraft to keep callsigns in sync
* Updated user list model for GUI
2014-01-25 01:36:49 +01:00
Klaus Basan
8008218d28 Fixed include in wrong place 2014-01-22 17:43:01 +01:00
Klaus Basan
09b3ca1b30 Fixed property index for CUser, and as a result also in the list model 2014-01-22 17:42:33 +01:00
Klaus Basan
935594e9dc VoiceRoom: removed default initializers, fixed Doxygen 2014-01-22 17:35:30 +01:00
Klaus Basan
2307a2b642 Added a default implementation for propertyByIndexAsString
in CValueObject
2014-01-22 17:33:50 +01:00
Klaus Basan
8e80f8e247 Fixed I18N for network checks 2014-01-22 02:48:20 +01:00
Klaus Basan
f2850a68b4 Added new callsign list 2014-01-21 16:39:57 +01:00
Klaus Basan
a69fb246f5 Contains method of const T &object 2014-01-21 02:39:44 +01:00
Klaus Basan
a71658a5f3 Added callsign list 2014-01-21 01:45:36 +01:00
Klaus Basan
60422376bb Doxygen fixes 2014-01-20 13:56:36 +01:00
Klaus Basan
c01dcd85df Improved rounding to 25KHz in COM units 2014-01-20 13:16:01 +01:00
Klaus Basan
3859dcef4f Helper class to check whether a network connection can be established
ref #101
2014-01-20 13:05:11 +01:00
Klaus Basan
49b58cf582 Fixed hash for PQ, was based on long
(which of course did not work properly)
2014-01-20 13:00:39 +01:00
Klaus Basan
1129891532 NOMINMAX fix after removal of some classes
https://dev.vatsim-germany.org/boards/22/topics/1417?r=1440#message-1440
2014-01-19 00:23:23 +01:00
Roland Winklmeier
08302c23bb Remove obsolete logging framework
This changes removes classes of the obsolete logging frame work and
all its references. It was not used anywhere, but included in several
headers.
Had to add header QDateTime in some places, which was not correctly
included and now missing.

refs #90
2014-01-18 20:09:03 +01:00
Klaus Basan
f883babc20 Only Doxygen fixes in order to answer
https://dev.vatsim-germany.org/boards/22/topics/1417?r=1432#message-1432

Fixed some Doxygen warnings along with it
No code changes!
2014-01-17 22:53:37 +01:00
Roland Winklmeier
ba638b8e40 Merge branch 'master' of dev.vatsim-germany.org:vatpilotclient/client 2014-01-17 20:14:37 +01:00
Klaus Basan
16dc959662 Fixed 4 gcc warnings (2x order, 1x explicit constructor, 1x GUI / from related) 2014-01-17 20:05:00 +01:00
Klaus Basan
222756e7ac Fixed 2 bugs only obvious when running with Core/DBus
* init of m_enabled in modulator missing, crashed DBus marshalling
* Need to check boundaries of voice rooms in GUI for empty list
2014-01-17 19:27:15 +01:00
Roland Winklmeier
c384e3d12e Merge branch 'master' of dev.vatsim-germany.org:vatpilotclient/client 2014-01-17 18:20:56 +01:00
Mathew Sutcliffe
a23c9e3f07 Normalizing argument types of CEarthAngle comparison and arithmetic operators:
argument type should be same type as the this pointer.
2014-01-17 01:38:29 +00:00
Mathew Sutcliffe
f156916c0c A copy constructor is needed for CPhysicalQuantity to fix an MSVC2010 linker error introduced by the previous commit.
refs #84
2014-01-17 01:38:28 +00:00
Mathew Sutcliffe
db4c05dd9f refs #84 removed the CValueObject::compare method and added a friend function BlackMisc::compare to replace it.
The new compare is implemented using "multimethods" described in the book Advanced C++ Programming Styles and Idioms by James Coplien.

First, the isA method is used to determine which of the values being compared is the most general. (For example, CLength is more general than CAltitude.)
Then the compareImpl method is called on the most general value, with the other value as an argument.
If there is not a direct inheritance relation between the two values (or they are the same class) then the comparison is invalid and a assert is triggered.
2014-01-17 01:38:27 +00:00
Mathew Sutcliffe
e40c93fe1b Removed CEarthAngle::toAngle, because implicit conversion already works.
Applied a different workaround to resolve the hiding of an inherited name in CEarthAngle, same as was done in CAltitude.
refs #84
2014-01-17 01:29:03 +00:00
Roland Winklmeier
4d6564af64 Remove member string initialization to empty string in constructor
QString always treats null strings and empty strings the same,
except in isNull, so there is no need for this.
2014-01-15 21:24:15 +01:00
Roland Winklmeier
e36448f0a1 Replaced c++ standard integer types with Qt types
In order to be consistent, all standard integer types have been
replaced by the equivalent Qt ones in voice/audio code.
Projects covered
- BlackCore
- BlackMisc
- sample_voice_client

refs #99
2014-01-15 21:12:01 +01:00
Mathew Sutcliffe
7f99c6d953 using qSwap in CTextMessage::toggleSenderRecipient 2014-01-14 23:30:20 +00:00
Mathew Sutcliffe
b5f1b101f6 CTransponder::setModeAsString 2014-01-14 23:30:19 +00:00
Klaus Basan
3627d340b2 Enable flag for modulator. Used with the GUI for MUTE. 2014-01-13 02:43:45 +01:00
Klaus Basan
4303cb8897 Hash value 2014-01-13 02:35:33 +01:00
Klaus Basan
43e5e54f22 Added received timestamp. Taken renaming to sender /recipient
one step further. getSender will be used later to return
the real CUser object
2014-01-13 02:30:42 +01:00
Klaus Basan
7cc35b24d3 Get current callsign as observer callsign.
This will be used with OBS mode login.
2014-01-13 01:57:42 +01:00
Roland Winklmeier
05c121b214 Fixed a mistake where CContainerBase::marshallToDbus was using the wrong version of QDBusArgument::beginArray,
leading to the qdbuscpp2xml error "read from a write-only object" reported by Klaus.
2014-01-11 16:58:32 +00:00
Mathew Sutcliffe
405ad7165e Iterator classes: removed templated ctors and added static methods to replace them,
for consistency with the container classes and to avoid any potential infinite recursion with MSVC2010.
See also commit:6a9065b

Also fixed a mistake in CSequence and CCollection, where Pimpl::erase was calling the wrong version of m_impl.erase
reported by Roland.
2014-01-11 16:53:21 +00:00
Mathew Sutcliffe
6a9065b37f Container classes: removed templated ctors and added static methods to replace them.
This resolves an issue with infinite recursion and stack overflows in MSVC2010.
See also http://connect.microsoft.com/VisualStudio/feedback/details/522094/
2014-01-11 01:32:24 +00:00
Mathew Sutcliffe
784d93139b CTextMessage: fromCallsign and toCallsign become sender and recipient (to and from looked like conversion methods)
refs #81
2014-01-10 00:20:22 +00:00
Mathew Sutcliffe
4f4b77f2b2 CSequence: added sort method, an in-place companion to the sorted method
refs #81
2014-01-10 00:20:22 +00:00
Mathew Sutcliffe
08e978c8d6 moved from CContainerBase to CSequence those methods which only support sequential containers
refs #81
2014-01-10 00:20:21 +00:00
Mathew Sutcliffe
bc611263e9 slight change to how we declare our qHash overload for CValueObject,
which fixes some include order dependency shenanigans when compiling with GCC,
which was caused by the requirement to overload qHash for CCollection
and the way qHash interacts with the dreaded two-phase lookup for C++ templates

refs #81
2014-01-09 01:16:02 +00:00
Klaus Basan
64e14b7965 input and output volume stored as part of CModulator
refs #81
2014-01-09 01:16:02 +00:00
Mathew Sutcliffe
b475d7eff1 INetwork builds up the ATIS as it is received, line-by-line, keeping this implementation detail more encapsulated
refs #81
2014-01-09 01:16:01 +00:00
Klaus Basan
37d1466a83 added CCallsign::m_callsignPronounced
refs #81
2014-01-09 01:15:59 +00:00
Klaus Basan
1c1fdabd2e all voice changes from kbatclist branch
refs #81
2014-01-09 01:15:58 +00:00
Klaus Basan
bb61654a29 style and consistency:
* rename CStatusMessages to CStatusMessageList
* rename NetworkVatlib to CNetworkVatlib
* replace all occurrences of Realname with RealName (correct camel case)
* CSequence method corresponding to CList::append is push_back
* don't compile the qdbuscpp2xml metadata plugin by default
* CAircraftIcao string members always trimmed and capitalized
* added CComSystem::roundTo25KHz
* using epsilon comparison in a couple of places

refs #81
2014-01-09 01:15:56 +00:00
Klaus Basan
0c01da4c8e Minor changes such as parameter warnings, added metatype registration for voice
refs #81
2014-01-08 01:01:26 +00:00
Roland Winklmeier
db4a3c5de4 Refactoring and clean up of voice implementation
refs #36
- Cleanup of library and sample code
- Completed now all signals in voice sample
- Fixed minor bugs with the user list
- TODO: Remove the VATSIM id from the user string

refs #81
2014-01-08 01:01:23 +00:00
Roland Winklmeier
0bae898db8 Added commands to voice sample. Test successfull refs #36 - Added commands to list input and output devices - Fixed some compiler errors on win - Voice confirmed working on windows and linux
Signed-off-by: Roland Winklmeier <roland.m.winklmeier@gmail.com>

refs #81
2014-01-08 01:01:20 +00:00
Roland Winklmeier
158de31c0b Added CAudioDevice and cleaning up IVoice
refs #36
- Added a common class CAudioDevice encapsulating each audio device
- One subclass for input and output devices
- Changed IVoice interface slightly to better fit into the event flow

refs #81
2014-01-08 01:00:57 +00:00
Roland Winklmeier
fcebc44b02 Added class CVoiceRoom
refs #36
- This class encapsulates the information on a voice server room.
- It basically consists of the tuple hostname and channel

refs #81
2014-01-08 01:00:50 +00:00