Commit Graph

33 Commits

Author SHA1 Message Date
Mathew Sutcliffe
cd7cc84fbc refs #116 removed firstBlackMetaType as it is no longer needed 2014-06-05 21:04:29 +01:00
Mathew Sutcliffe
2726a7a09a refs #116 added CVariant, a wrapper for QVariant with more natural/transparent DBus integration 2014-06-05 21:04:26 +01:00
Mathew Sutcliffe
b03a9b11a4 slight improvement to error reporting in complexQtTypeFromDbusArgument 2014-06-05 21:04:26 +01:00
Klaus Basan
5dd2578a4f refs #227, client (representing other pilot client) class
* client class plus list
* aircraft model class, representing the used model
2014-05-06 21:47:12 +02:00
Klaus Basan
e474671ead refs #207, renamed CValueMap to CIndexVariantMap.
* The map will be used with CSimulaorInfo to transfer a variable number of setting information about the flight simulator. It is being used, because it is already DBus and tupel compliant. The new name better fits its purpose.
* Add == operator for CIndexVariantMap (ambiguity error with tupels)
2014-04-17 00:10:04 +02:00
Mathew Sutcliffe
f4a4eddca2 refs #48 value class for flight plans 2014-04-03 23:06:52 +01:00
Klaus Basan
57435b2a73 refs #192, some housekeeping during the JSON introduction
* removed unused tryGet methods for transponder / COM
* adjusted unit tests
2014-03-26 20:18:47 +01:00
Klaus Basan
f9246cb5f9 refs #189 , PQ string class which allows parsing strings like 100m/s.
pqbase contains template method to determine a valid unit.
2014-03-26 19:51:00 +01:00
Klaus Basan
dde9710144 Refs #140 , refs #85 Rename namespace voice to audio.
In #85 the voice context will be renamed to audio context, so the CValueObject classes will be renamed to namespace Audio too.
As #140 changes many CValueClasses, this crossover change is done in the same unit of work.
2014-03-10 14:43:06 +01:00
Klaus Basan
bb5865936b refs #139 added registration for CKeyboardKey et.al. 2014-02-26 03:38:29 +01:00
Mathew Sutcliffe
f6f55cfa61 refs #104 using CValueObject::compare in BlackMisc::equalQVariants 2014-02-12 23:28:17 +00:00
Klaus Basan
5619c29cb6 SELCAL classes (CValueObject based) 2014-02-05 23:15:16 +00:00
Mathew Sutcliffe
17534e5154 refs #92 clarified conditional compilation of BlackMisc::heapSizeOf 2014-02-02 16:50:46 +00:00
Klaus Basan
f5e791e049 Added missing CCallsignList::registerMetadata 2014-01-25 19:48:10 +01: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
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
Mathew Sutcliffe
c37e160a42 simple memory profiling on Windows using the CRT debug heap
refs #81
2014-01-08 00:59:59 +00:00
Klaus Basan
4747b3b484 new value objects for aviation, network, and settings
refs #81
2014-01-08 00:59:39 +00:00
Klaus Basan
f247399575 register CMeasurementUnit as a Qt meta type
refs #81
2014-01-08 00:59:24 +00:00
Klaus Basan
bf1837b414 CValueMap generic representation of a value object as a map of QVariants
refs #81
2014-01-08 00:59:03 +00:00
Klaus Basan
a280d239e6 using hashes to perform comparisons between blackmisc value objects stored inside of QVariant
refs #81
2014-01-08 00:59:00 +00:00
Klaus Basan
67a5dbfe48 converting value objects to/from QVariant
refs #81
2014-01-08 00:58:56 +00:00
Klaus Basan
978f3c88e5 style changes and removals of typeid
refs #81
2014-01-08 00:57:43 +00:00
Mathew Sutcliffe
2c781e8b36 style fixes: mostly just things that make my eyes bleed :) 2013-08-13 22:29:48 +01:00
Klaus Basan
a53ea0c5fd DBus: track, heading, transponder. Added I18N for track/heading, added further I18N keys. Of course not all I18N strings are translated yet. 2013-07-28 03:20:04 +02:00
Klaus Basan
40a97c3d82 Added I18N for PQs, initial version. Hence resource file and language files. Changed samplesphysicalquantities to check some I18N topics. 2013-07-27 20:23:23 +02:00
Klaus Basan
581638ec7f Enabled coordinate classes for DBus, added generation method for lat/lng by WGS84 strings 2013-07-25 23:58:09 +02:00
Klaus Basan
7316980a5c Enabled coordinates for DBus 2013-07-25 12:37:51 +02:00
Klaus Basan
2fc08a0376 Enabled DBus with matrix classes, noticed issue with QList Signature (ad, addddd) 2013-07-25 00:10:50 +02:00
Klaus Basan
9b2cb3b517 Shifted DBus operators to CBaseStreamStringifier, much easier to provide streaming - especially for derived classes.
Still required but unwanted overloaded DBus operator in aviomodulator.h - no compilation without them. Need to be removed.
Enabled more classes for DBus.
2013-07-24 02:20:32 +02:00
Klaus Basan
8b512ba818 DBus enabling of base classes plus sample for testing / show how to use them. Also qdbuscpp2xml plugin for blackmisc classes. 2013-07-22 14:33:50 +02:00