Ref T105, adjusted CDirectPlayPeer

* log cats
* and log messages
This commit is contained in:
Klaus Basan
2017-07-10 18:44:17 +02:00
committed by Mathew Sutcliffe
parent 18ab0e8459
commit 4e4d33a755
2 changed files with 30 additions and 20 deletions

View File

@@ -13,8 +13,9 @@
#include "fs9.h"
#include "hostnode.h"
#include "callbackwrapper.h"
#include "blackmisc/worker.h"
#include "blackmisc/aviation/callsign.h"
#include "blackmisc/worker.h"
#include "blackmisc/logcategorylist.h"
#include <QObject>
#include <QList>
#include <QMutex>
@@ -47,6 +48,9 @@ namespace BlackSimPlugin
//! Sets users DirectPlay ID
void setPlayerUserId(DPNID id) { m_playerUser = id; }
//! Log categories
static const BlackMisc::CLogCategoryList &getLogCategories();
public slots:
//! Send a custom DirectPlay message
HRESULT sendMessage(const QByteArray &data);
@@ -92,7 +96,7 @@ namespace BlackSimPlugin
using TCallbackWrapper = CallbackWrapper<CDirectPlayPeer, HRESULT, DWORD, void *>; //!< DirectPlay peer message handler wrapper
TCallbackWrapper m_callbackWrapper; //!< Callback wrapper
};
}
}
} // ns
} // ns
#endif // guard