Formatting / comments / typos

This commit is contained in:
Klaus Basan
2014-04-28 19:04:51 +02:00
parent 36dbcc6b57
commit 9e5666e0e2
3 changed files with 17 additions and 58 deletions

View File

@@ -15,6 +15,7 @@
#include "blackmisc/avaircraft.h" #include "blackmisc/avaircraft.h"
#include "blacksim/simulatorinfo.h" #include "blacksim/simulatorinfo.h"
#include "blacksim/simulatorinfolist.h" #include "blacksim/simulatorinfolist.h"
#include "blackmisc/project.h"
#include <QObject> #include <QObject>
namespace BlackCore namespace BlackCore
@@ -71,10 +72,10 @@ namespace BlackCore
virtual BlackSim::CSimulatorInfo getSimulatorInfo() const = 0; virtual BlackSim::CSimulatorInfo getSimulatorInfo() const = 0;
//! Load specific simulator plugin //! Load specific simulator plugin
virtual bool loadSimulatorPlugin (const BlackSim::CSimulatorInfo &simulatorInfo) = 0; virtual bool loadSimulatorPlugin(const BlackSim::CSimulatorInfo &simulatorInfo) = 0;
//! Unload simulator plugin //! Unload simulator plugin
virtual void unloadSimulatorPlugin () = 0; virtual void unloadSimulatorPlugin() = 0;
//! Simulator avialable? //! Simulator avialable?
bool isSimulatorAvailable() const { return BlackMisc::CProject::isCompiledWithFlightSimulatorSupport() && !getSimulatorInfo().isUnspecified(); } bool isSimulatorAvailable() const { return BlackMisc::CProject::isCompiledWithFlightSimulatorSupport() && !getSimulatorInfo().isUnspecified(); }

View File

@@ -25,9 +25,6 @@ inline void initBlackMiscResources() { Q_INIT_RESOURCE(blackmisc); }
*/ */
namespace BlackMisc namespace BlackMisc
{ {
/*!
* Free functions in PQs
*/
namespace PhysicalQuantities namespace PhysicalQuantities
{ {
/*! /*!
@@ -37,26 +34,16 @@ namespace BlackMisc
} // PQ } // PQ
/*!
* Free functions in aviation
*/
namespace Aviation namespace Aviation
{ {
/*! //! Register metadata for aviation
* \brief Register metadata for aviation
*/
void registerMetadata(); void registerMetadata();
} // Aviation } // Aviation
/*!
* Free functions in Math
*/
namespace Math namespace Math
{ {
/*! //! Register metadata for math (matrices, vectors)
* \brief Register metadata for math (matrices, vectors)
*/
void registerMetadata(); void registerMetadata();
} // Math } // Math
@@ -64,48 +51,36 @@ namespace BlackMisc
namespace Geo namespace Geo
{ {
/*! //! Register metadata for geo (coordinates)
* \brief Register metadata for geo (coordinates)
*/
void registerMetadata(); void registerMetadata();
} // Geo } // Geo
namespace Network namespace Network
{ {
/*! //! Register metadata for network (server, user)
* \brief Register metadata for network (server, user)
*/
void registerMetadata(); void registerMetadata();
} }
namespace Settings namespace Settings
{ {
/*! //! Register metadata for settings
* \brief Register metadata for settings
*/
void registerMetadata(); void registerMetadata();
} }
namespace Audio namespace Audio
{ {
/*! //! Register metadata for audio / voice
* \brief Register metadata for audio / voice
*/
void registerMetadata(); void registerMetadata();
} }
namespace Hardware namespace Hardware
{ {
/*! //! Register metadata for Hardware
* \brief Register metadata for Hardware
*/
void registerMetadata(); void registerMetadata();
} }
/*! //! Register all relevant metadata in BlackMisc
* \brief Register all relevant metadata in BlackMisc
*/
void registerMetadata(); void registerMetadata();
/*! /*!
@@ -122,22 +97,13 @@ namespace BlackMisc
*/ */
int firstBlackMetaType(); int firstBlackMetaType();
/*! //! Init resources
* \brief Init resources
*/
void initResources(); void initResources();
/*! //! Compare 2 QVariants
* \brief Compare 2 QVariants
*/
bool equalQVariants(const QVariant &v1, const QVariant &v2); bool equalQVariants(const QVariant &v1, const QVariant &v2);
/*! //! Compare QVariants
* \brief Compare QVariants
* \param v1
* \param v2
* \return same return values as in QString::compare()
*/
int compareQVariants(const QVariant &v1, const QVariant &v2); int compareQVariants(const QVariant &v1, const QVariant &v2);
/*! /*!
@@ -182,18 +148,10 @@ namespace BlackMisc
*/ */
uint calculateHash(const QList<uint> &values, const char *className); uint calculateHash(const QList<uint> &values, const char *className);
/*! //! Real heap size of an object
* \brief Real heap size of an object
* \param type
* \return
*/
size_t heapSizeOf(const QMetaType &type); size_t heapSizeOf(const QMetaType &type);
/*! //! Real heap size of an object
* \brief Real heap size of an object
* \param objectType
* \return
*/
size_t heapSizeOf(const QMetaObject &objectType); size_t heapSizeOf(const QMetaObject &objectType);
} // BlackMisc } // BlackMisc

View File

@@ -172,4 +172,4 @@ namespace BlackSimPlugin
} // namespace BlackCore } // namespace BlackCore
#endif // BLACKSIMPLUGIN_SIMULATOR_FSX_H #endif // guard