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

View File

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

View File

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