Browse Source

- still optimizing includes

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
93938d8597
  1. 1
      src/FinishedTorrents.cpp
  2. 8
      src/GUI.cpp
  3. 10
      src/GUI.h
  4. 10
      src/bittorrent.cpp
  5. 18
      src/bittorrent.h
  6. 4
      src/properties_imp.cpp
  7. 8
      src/properties_imp.h
  8. 7
      src/rss_imp.cpp
  9. 5
      src/rss_imp.h

1
src/FinishedTorrents.cpp

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include <QFile>
#include <QSettings>
#include <QStandardItemModel>
#include <QHeaderView>
FinishedTorrents::FinishedTorrents(QObject *parent, bittorrent *BTSession){
setupUi(this);

8
src/GUI.cpp

@ -28,9 +28,7 @@ @@ -28,9 +28,7 @@
#include <QTcpSocket>
#include <QCloseEvent>
#include <QShortcut>
#include <libtorrent/extensions/metadata_transfer.hpp>
#include <libtorrent/extensions/ut_pex.hpp>
#include <QStandardItemModel>
#include "GUI.h"
#include "misc.h"
@ -45,6 +43,10 @@ @@ -45,6 +43,10 @@
#include "FinishedTorrents.h"
#include "allocationDlg.h"
#include "bittorrent.h"
#include "about_imp.h"
#include "trackerLogin.h"
#include "previewSelect.h"
#include "options_imp.h"
/*****************************************************
* *

10
src/GUI.h

@ -22,15 +22,11 @@ @@ -22,15 +22,11 @@
#ifndef GUI_H
#define GUI_H
#include <QMainWindow>
#include <QProcess>
#include <QSystemTrayIcon>
#include <libtorrent/torrent_handle.hpp>
#include "ui_MainWindow.h"
#include "options_imp.h"
#include "about_imp.h"
#include "previewSelect.h"
#include "trackerLogin.h"
class bittorrent;
class createtorrent;
@ -45,6 +41,10 @@ class QTcpSocket; @@ -45,6 +41,10 @@ class QTcpSocket;
class QCloseEvent;
class RSSImp;
class QShortcut;
class about;
class previewSelect;
class options_imp;
class QStandardItemModel;
using namespace libtorrent;
namespace fs = boost::filesystem;

10
src/bittorrent.cpp

@ -23,9 +23,19 @@ @@ -23,9 +23,19 @@
#include <QTime>
#include <QString>
#include <libtorrent/extensions/metadata_transfer.hpp>
#include <libtorrent/extensions/ut_pex.hpp>
#include <libtorrent/entry.hpp>
#include <libtorrent/bencode.hpp>
#include <libtorrent/identify_client.hpp>
#include <libtorrent/alert_types.hpp>
#include <libtorrent/ip_filter.hpp>
#include "bittorrent.h"
#include "misc.h"
#include "downloadThread.h"
#include "deleteThread.h"
#define ETAS_MAX_VALUES 8

18
src/bittorrent.h

@ -23,27 +23,15 @@ @@ -23,27 +23,15 @@
#include <QHash>
#include <QTimer>
#include <QStringList>
#include <libtorrent/entry.hpp>
#include <libtorrent/bencode.hpp>
#include <libtorrent/torrent_handle.hpp>
#include <libtorrent/session.hpp>
#include <libtorrent/fingerprint.hpp>
#include <libtorrent/session_settings.hpp>
#include <libtorrent/identify_client.hpp>
#include <libtorrent/alert_types.hpp>
#include <libtorrent/extensions/metadata_transfer.hpp>
#include <libtorrent/extensions/ut_pex.hpp>
#include <libtorrent/ip_filter.hpp>
#include <boost/format.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/filesystem/exception.hpp>
#include "deleteThread.h"
using namespace libtorrent;
class downloadThread;
class deleteThread;
class bittorrent : public QObject{
Q_OBJECT

4
src/properties_imp.cpp

@ -22,9 +22,13 @@ @@ -22,9 +22,13 @@
#include "properties_imp.h"
#include "misc.h"
#include "PropListDelegate.h"
#include "bittorrent.h"
#include <QInputDialog>
#include <QMessageBox>
#include <QMenu>
#include <QTimer>
#include <QStandardItemModel>
// Constructor
properties::properties(QWidget *parent, bittorrent *BTSession, torrent_handle &h, QStringList trackerErrors): QDialog(parent), h(h){

8
src/properties_imp.h

@ -23,12 +23,12 @@ @@ -23,12 +23,12 @@
#define PROPERTIES_H
#include "ui_properties.h"
#include "bittorrent.h"
#include <libtorrent/session.hpp>
#include <QStandardItemModel>
#include <QTimer>
#include <libtorrent/torrent_handle.hpp>
class PropListDelegate;
class QTimer;
class bittorrent;
class QStandardItemModel;
using namespace libtorrent;

7
src/rss_imp.cpp

@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
#include <QMenu>
#include <QStandardItemModel>
#include <QMessageBox>
#include "misc.h"
#include <QTimer>
// display a right-click menu
void RSSImp::displayRSSListMenu(const QPoint& pos){
@ -292,9 +292,10 @@ @@ -292,9 +292,10 @@
connect(actionRefresh, SIGNAL(triggered()), this, SLOT(refreshStream()));
connect(actionCreate, SIGNAL(triggered()), this, SLOT(createStream()));
connect(actionRefreshAll, SIGNAL(triggered()), this, SLOT(refreshAllStreams()));
connect(&refreshTimeTimer, SIGNAL(timeout()), this, SLOT(updateLastRefreshedTimeForStreams()));
connect(&rssmanager, SIGNAL(streamNeedRefresh(const unsigned short&, const unsigned short&)), this, SLOT(updateStreamName(const unsigned short&, const unsigned short&)));
refreshTimeTimer.start(60000); // 1min
refreshTimeTimer = new QTimer(this);
connect(refreshTimeTimer, SIGNAL(timeout()), this, SLOT(updateLastRefreshedTimeForStreams()));
refreshTimeTimer->start(60000); // 1min
refreshStreamList();
refreshTextBrowser();
qDebug("RSSImp constructed");

5
src/rss_imp.h

@ -23,7 +23,6 @@ @@ -23,7 +23,6 @@
#define REFRESH_MAX_LATENCY 600000
#include <QTimer>
#include "ui_rss.h"
#include "rss.h"
@ -31,12 +30,14 @@ @@ -31,12 +30,14 @@
#define URL_CHILD 1
#define TIME_CHILD 2
class QTimer;
class RSSImp : public QWidget, public Ui::RSS{
Q_OBJECT
private:
RssManager rssmanager;
QTimer refreshTimeTimer;
QTimer *refreshTimeTimer;
protected slots:
void on_addStream_button_clicked();

Loading…
Cancel
Save