Browse Source

Make alertdispatcher.h self contained and replace include libtorrent/session with forward declaration

adaptive-webui-19844
Ivan Sorokin 10 years ago
parent
commit
83dd35dbc9
  1. 1
      src/qtlibtorrent/alertdispatcher.cpp
  2. 9
      src/qtlibtorrent/alertdispatcher.h

1
src/qtlibtorrent/alertdispatcher.cpp

@ -30,6 +30,7 @@
#include "alertdispatcher.h" #include "alertdispatcher.h"
#include <libtorrent/session.hpp>
#include <boost/bind.hpp> #include <boost/bind.hpp>
#include <QMutexLocker> #include <QMutexLocker>

9
src/qtlibtorrent/alertdispatcher.h

@ -36,7 +36,14 @@
#include <QWaitCondition> #include <QWaitCondition>
#include <QAtomicPointer> #include <QAtomicPointer>
#include <QSharedPointer> #include <QSharedPointer>
#include <libtorrent/session.hpp>
#include <vector>
#include <memory>
namespace libtorrent {
class session;
class alert;
}
class QAlertDispatcher : public QObject { class QAlertDispatcher : public QObject {
Q_OBJECT Q_OBJECT

Loading…
Cancel
Save