</kdevdebugger>
<kdevtrollproject>
<run>
- <mainprogram>/home/vaatala/Projects/qtrapids/trunk</mainprogram>
+ <mainprogram>/home/vaatala/Projects/qtrapids/trunk/bin/qtrapids</mainprogram>
<programargs></programargs>
<directoryradio>executable</directoryradio>
<globaldebugarguments></globaldebugarguments>
- <globalcwd>/home/vaatala/Projects/qtrapids</globalcwd>
- <useglobalprogram>false</useglobalprogram>
+ <globalcwd>/home/vaatala/Projects/qtrapids/trunk/bin</globalcwd>
+ <useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>false</autocompile>
<autoinstall>false</autoinstall>
<autokdesu>false</autokdesu>
- <envvars/>
+ <envvars>
+ <envvar value="." name="LD_LIBRARY_PATH" />
+ </envvars>
<runarguments>
- <qtrapids></qtrapids>
+ <qtrapids/>
</runarguments>
<cwd>
<qtrapids>/home/vaatala/Projects/qtrapids/trunk</qtrapids>
</cwd>
<debugarguments>
- <qtrapids></qtrapids>
+ <qtrapids/>
</debugarguments>
</run>
<general>
<projectdoc>
<docsystem>Doxygen Documentation Collection</docsystem>
<docurl>qtrapids.tag</docurl>
- <usermanualurl></usermanualurl>
+ <usermanualurl/>
</projectdoc>
</kdevdocumentation>
<substmap>
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2009 by Lassi Väätämöinen *
+ * lassi.vaatamoinen@ixonos.com *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#include <QDebug>
+
+#include "AlertWaiterThread.h"
+
+AlertWaiterThread::AlertWaiterThread(QObject* parent): QThread(parent)
+{
+}
+
+
+AlertWaiterThread::~AlertWaiterThread()
+{
+}
+
+
+void AlertWaiterThread::run()
+{
+ while (true)
+ {
+ qDebug() << "AlertWaiter running";
+ emit alert();
+ sleep(2);
+ }
+}
+
+
+// =================== SIGNALS =======================
+// AlertWaiterThread::alert()
+// {
+// }
+
+
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2009 by Lassi Väätämöinen *
+ * lassi.vaatamoinen@ixonos.com *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+#ifndef ALERTWAITERTHREAD_H
+#define ALERTWAITERTHREAD_H
+
+#include <QThread>
+
+/**
+ @author Lassi Väätämöinen <lassi.vaatamoinen@ixonos.com>
+*/
+class AlertWaiterThread : public QThread
+{
+ Q_OBJECT
+
+ public:
+ AlertWaiterThread(QObject* parent = 0);
+
+ ~AlertWaiterThread();
+
+ void run(); // Overridden from QThread
+
+ signals:
+ void alert();
+
+ private:
+
+};
+
+#endif
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2009 by Lassi Väätämöinen *
+ * lassi.vaatamoinen@ixonos.com *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+#include "QBittorrentSession.h"
+
+QBittorrentSession::QBittorrentSession()
+{
+}
+
+
+QBittorrentSession::~QBittorrentSession()
+{
+}
+
+
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2009 by Lassi Väätämöinen *
+ * lassi.vaatamoinen@ixonos.com *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+#ifndef QBITTORRENTSESSION_H
+#define QBITTORRENTSESSION_H
+
+/**
+ @author Lassi Väätämöinen <lassi.vaatamoinen@ixonos.com>
+*/
+class QBittorrentSession {
+
+ public:
+ QBittorrentSession();
+
+ ~QBittorrentSession();
+ public slots:
+ private slots:
+ private:
+
+
+};
+
+#endif
-TEMPLATE = subdirs
+
+TEMPLATE = lib
+
+CONFIG += dll \
+ debug
+
+VERSION = 0.1
+
+HEADERS += AlertWaiterThread.h
+
+SOURCES += AlertWaiterThread.cpp
+
+QT -= gui
+
+CONFIG -= release
+
+TARGET = qtbittorrent
+
+DESTDIR = ../../bin
#include "DownloadView.h"
#include "SeedView.h"
+#include "AlertWaiterThread.h"
#include "MainWindow.h"
addToolBar(Qt::TopToolBarArea, toolBar);
connect(toolBar, SIGNAL(actionTriggered(QAction*)), this, SLOT(handleToolBarAction(QAction*)));
+
+ alertWaiter_ = new AlertWaiterThread(this);
+ connect(alertWaiter_, SIGNAL(alert()), this, SLOT(on_alert()));
+ alertWaiter_->start();
}
}
}
+void MainWindow::on_alert()
+{
+ qDebug() << "MainWindow: got alert()";
+}
class DownloadView;
class SeedView;
+class AlertWaiterThread;
+
/**
@author Lassi Väätämöinen <lassi.vaatamoinen@ixonos.com>
*/
void on_aboutQtAction_clicked();
void handleToolBarAction(QAction* action);
+ void on_alert();
+
private:
QTabWidget *tabWidget_;
DownloadView *dlView_;
SeedView *seedView_;
+
+ AlertWaiterThread *alertWaiter_;
};
#endif
CONFIG += debug \
qtestlib
-DESTDIR = ../../
+TARGETDEPS += ../engine/liblibqtbittorrent.so
+
+DESTDIR = ../../bin
+
+INCLUDEPATH += ../engine
+
+LIBS += -L../../bin \
+ -lqtbittorrent \
+ -L/home/vaatala/Projects/qtrapids/trunk/bin \
+ -L../engine
+
+QMAKE_LFLAGS_DEBUG += -L.
SUBDIRS += gui \
engine
-SOURCES += qtrapids.cpp \
- main.cpp
-HEADERS += qtrapids.h
+
CONFIG += warn_on \
thread \
qt
+
TARGET = qtrapids
DESTDIR = ../bin
-RESOURCES = application.qrc
+
TEMPLATE = subdirs