Browse Source

comm: Move to pragma once

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 7 years ago
parent
commit
7588454516
  1. 6
      src/comm/BluetoothLink.h
  2. 5
      src/comm/CallConv.h
  3. 6
      src/comm/LinkConfiguration.h
  4. 6
      src/comm/LinkInterface.h
  5. 6
      src/comm/LinkManager.h
  6. 6
      src/comm/LogReplayLink.h
  7. 6
      src/comm/MAVLinkProtocol.h
  8. 4
      src/comm/MavlinkMessagesTimer.h
  9. 6
      src/comm/MockLink.h
  10. 6
      src/comm/MockLinkFileServer.h
  11. 6
      src/comm/MockLinkMissionItemHandler.h
  12. 6
      src/comm/QGCFlightGearLink.h
  13. 4
      src/comm/QGCHilLink.h
  14. 6
      src/comm/QGCJSBSimLink.h
  15. 6
      src/comm/QGCMAVLink.h
  16. 6
      src/comm/QGCSerialPortInfo.h
  17. 6
      src/comm/QGCXPlaneLink.h
  18. 6
      src/comm/SerialInterface.h
  19. 6
      src/comm/SerialLink.h
  20. 6
      src/comm/TCPLink.h
  21. 6
      src/comm/UDPLink.h

6
src/comm/BluetoothLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -15,8 +15,7 @@ @@ -15,8 +15,7 @@
*
*/
#ifndef BTLINK_H
#define BTLINK_H
#pragma once
#include <QString>
#include <QList>
@ -194,4 +193,3 @@ private: @@ -194,4 +193,3 @@ private:
};
#endif // BTLINK_H

5
src/comm/CallConv.h

@ -1,11 +1,8 @@ @@ -1,11 +1,8 @@
#ifndef _CALLCONV_H_
#define _CALLCONV_H_
#pragma once
#ifdef Q_OS_WIN
#define CALLTYPEXBEE __stdcall
#else // Q_OS_WIN
#define CALLTYPEXBEE
#endif // Q_OS_WIN
#endif // _CALLCONV_H_

6
src/comm/LinkConfiguration.h

@ -1,14 +1,13 @@ @@ -1,14 +1,13 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#ifndef LINKCONFIGURATION_H
#define LINKCONFIGURATION_H
#pragma once
#include <QSettings>
@ -208,4 +207,3 @@ private: @@ -208,4 +207,3 @@ private:
typedef QSharedPointer<LinkConfiguration> SharedLinkConfigurationPointer;
#endif // LINKCONFIGURATION_H

6
src/comm/LinkInterface.h

@ -1,14 +1,13 @@ @@ -1,14 +1,13 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#ifndef _LINKINTERFACE_H_
#define _LINKINTERFACE_H_
#pragma once
#include <QThread>
#include <QDateTime>
@ -308,4 +307,3 @@ private: @@ -308,4 +307,3 @@ private:
typedef QSharedPointer<LinkInterface> SharedLinkInterfacePointer;
#endif // _LINKINTERFACE_H_

6
src/comm/LinkManager.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -11,8 +11,7 @@ @@ -11,8 +11,7 @@
/// @file
/// @author Lorenz Meier <mavteam@student.ethz.ch>
#ifndef _LINKMANAGER_H_
#define _LINKMANAGER_H_
#pragma once
#include <QList>
#include <QMultiMap>
@ -244,4 +243,3 @@ private: @@ -244,4 +243,3 @@ private:
#endif
};
#endif

6
src/comm/LogReplayLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef LogReplayLink_H
#define LogReplayLink_H
#pragma once
#include "LinkInterface.h"
#include "LinkConfiguration.h"
@ -155,4 +154,3 @@ private: @@ -155,4 +154,3 @@ private:
static const int cbTimestamp = sizeof(quint64);
};
#endif

6
src/comm/MAVLinkProtocol.h

@ -1,14 +1,13 @@ @@ -1,14 +1,13 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#ifndef MAVLINKPROTOCOL_H_
#define MAVLINKPROTOCOL_H_
#pragma once
#include <QObject>
#include <QMutex>
@ -171,4 +170,3 @@ private: @@ -171,4 +170,3 @@ private:
MultiVehicleManager* _multiVehicleManager;
};
#endif // MAVLINKPROTOCOL_H_

4
src/comm/MavlinkMessagesTimer.h

@ -7,8 +7,7 @@ @@ -7,8 +7,7 @@
*
****************************************************************************/
#ifndef _MAVLINKMESSAGESTIMER_H_
#define _MAVLINKMESSAGESTIMER_H_
#pragma once
#include <QTimer>
#include <QObject>
@ -103,4 +102,3 @@ private: @@ -103,4 +102,3 @@ private:
static const int _messageReceivedTimeoutMSecs = 3500; // Signal connection lost after 3.5 seconds of no messages
};
#endif // _MAVLINKMESSAGESTIMER_H_

6
src/comm/MockLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef MOCKLINK_H
#define MOCKLINK_H
#pragma once
#include <QMap>
#include <QLoggingCategory>
@ -259,4 +258,3 @@ private: @@ -259,4 +258,3 @@ private:
static const char* _failParam;
};
#endif

6
src/comm/MockLinkFileServer.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -11,8 +11,7 @@ @@ -11,8 +11,7 @@
/// @file
/// @author Don Gagne <don@thegagnes.com>
#ifndef MockLinkFileServer_H
#define MockLinkFileServer_H
#pragma once
#include "FileManager.h"
@ -110,4 +109,3 @@ private: @@ -110,4 +109,3 @@ private:
bool _randomDropsEnabled;
};
#endif

6
src/comm/MockLinkMissionItemHandler.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef MockLinkMissionItemHandler_H
#define MockLinkMissionItemHandler_H
#pragma once
#include <QObject>
#include <QMap>
@ -115,4 +114,3 @@ private: @@ -115,4 +114,3 @@ private:
bool _failWriteMissionCountFirstResponse;
};
#endif

6
src/comm/QGCFlightGearLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -15,8 +15,7 @@ @@ -15,8 +15,7 @@
*
*/
#ifndef QGCFLIGHTGEARLINK_H
#define QGCFLIGHTGEARLINK_H
#pragma once
#include <QString>
#include <QList>
@ -160,4 +159,3 @@ private: @@ -160,4 +159,3 @@ private:
float barometerOffsetkPa;
};
#endif // QGCFLIGHTGEARLINK_H

4
src/comm/QGCHilLink.h

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
#ifndef QGCHILLINK_H
#define QGCHILLINK_H
#pragma once
#include <QThread>
#include <QProcess>
@ -148,4 +147,3 @@ signals: @@ -148,4 +147,3 @@ signals:
void _invokeWriteBytes(QByteArray);
};
#endif // QGCHILLINK_H

6
src/comm/QGCJSBSimLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -15,8 +15,7 @@ @@ -15,8 +15,7 @@
*
*/
#ifndef QGCJSBSIMLINK_H
#define QGCJSBSIMLINK_H
#pragma once
#include <QString>
#include <QList>
@ -147,4 +146,3 @@ private: @@ -147,4 +146,3 @@ private:
void setName(QString name);
};
#endif // QGCJSBSimLink_H

6
src/comm/QGCMAVLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -14,8 +14,7 @@ @@ -14,8 +14,7 @@
* @author Lorenz Meier <pixhawk@switched.com>
*/
#ifndef QGCMAVLINK_H
#define QGCMAVLINK_H
#pragma once
#define MAVLINK_USE_MESSAGE_INFO
#define MAVLINK_EXTERNAL_RX_STATUS // Single m_mavlink_status instance is in QGCApplication.cc
@ -33,5 +32,4 @@ public: @@ -33,5 +32,4 @@ public:
static bool isVTOL(MAV_TYPE mavType);
};
#endif // QGCMAVLINK_H

6
src/comm/QGCSerialPortInfo.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
****************************************************************************/
#ifndef QGCSerialPortInfo_H
#define QGCSerialPortInfo_H
#pragma once
#ifdef __android__
#include "qserialportinfo.h"
@ -91,4 +90,3 @@ private: @@ -91,4 +90,3 @@ private:
static QList<BoardFallback_t> _boardFallbackList;
};
#endif

6
src/comm/QGCXPlaneLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -15,8 +15,7 @@ @@ -15,8 +15,7 @@
*
*/
#ifndef QGCXPLANESIMULATIONLINK_H
#define QGCXPLANESIMULATIONLINK_H
#pragma once
#include <QString>
#include <QList>
@ -235,4 +234,3 @@ protected: @@ -235,4 +234,3 @@ protected:
void sendDataRef(QString ref, float value);
};
#endif // QGCXPLANESIMULATIONLINK_H

6
src/comm/SerialInterface.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -16,8 +16,7 @@ @@ -16,8 +16,7 @@
*
*/
#ifndef SERIALINTERFACE_H
#define SERIALINTERFACE_H
#pragma once
#include <QIODevice>
#include <QtSerialPort/QSerialPort>
@ -201,6 +200,5 @@ public: @@ -201,6 +200,5 @@ public:
}
};
#endif // SERIALINTERFACE_H
// vim:ts=4:sw=4:tw=78:expandtab:

6
src/comm/SerialLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -16,8 +16,7 @@ @@ -16,8 +16,7 @@
*
*/
#ifndef SERIALLINK_H
#define SERIALLINK_H
#pragma once
class LinkInterface;
class SerialConfiguration;
@ -194,4 +193,3 @@ signals: @@ -194,4 +193,3 @@ signals:
};
#endif // SERIALLINK_H

6
src/comm/TCPLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -13,8 +13,7 @@ @@ -13,8 +13,7 @@
///
/// @author Don Gagne <don@thegagnes.com>
#ifndef TCPLINK_H
#define TCPLINK_H
#pragma once
#include <QString>
#include <QList>
@ -188,4 +187,3 @@ private: @@ -188,4 +187,3 @@ private:
QMutex _statisticsMutex;
};
#endif // TCPLINK_H

6
src/comm/UDPLink.h

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
@ -15,8 +15,7 @@ @@ -15,8 +15,7 @@
*
*/
#ifndef UDPLINK_H
#define UDPLINK_H
#pragma once
#include <QString>
#include <QList>
@ -204,4 +203,3 @@ private: @@ -204,4 +203,3 @@ private:
};
#endif // UDPLINK_H

Loading…
Cancel
Save