mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Revert previously mostly-bad commit, oops.
This commit is contained in:
@@ -94,7 +94,6 @@ SET( tomahawkUI ${tomahawkUI}
|
|||||||
INCLUDE_DIRECTORIES(
|
INCLUDE_DIRECTORIES(
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
/usr/include/c++/v1/
|
|
||||||
|
|
||||||
audio
|
audio
|
||||||
database
|
database
|
||||||
|
@@ -15,6 +15,7 @@ include( ${QT_USE_FILE} )
|
|||||||
add_definitions( ${QT_DEFINITIONS} )
|
add_definitions( ${QT_DEFINITIONS} )
|
||||||
add_definitions( -DQT_SHARED )
|
add_definitions( -DQT_SHARED )
|
||||||
add_definitions( -DDLLEXPORT_PRO )
|
add_definitions( -DDLLEXPORT_PRO )
|
||||||
|
add_definitions( -DQT_SHAREDPOINTER_TRACK_POINTERS )
|
||||||
|
|
||||||
|
|
||||||
set( libGuiSources
|
set( libGuiSources
|
||||||
@@ -332,8 +333,6 @@ include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/.
|
|||||||
${LIBLASTFM_INCLUDE_DIRS}/..
|
${LIBLASTFM_INCLUDE_DIRS}/..
|
||||||
${CLUCENE_INCLUDE_DIRS}
|
${CLUCENE_INCLUDE_DIRS}
|
||||||
${PHONON_INCLUDES}
|
${PHONON_INCLUDES}
|
||||||
/usr/include/c++/v1/
|
|
||||||
|
|
||||||
|
|
||||||
playlist
|
playlist
|
||||||
|
|
||||||
|
@@ -1,39 +0,0 @@
|
|||||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
|
||||||
*
|
|
||||||
* Copyright 2012 Leo Franchi <lfranchi@kde.org>
|
|
||||||
*
|
|
||||||
* Tomahawk 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 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* Tomahawk 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 Tomahawk. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
#ifndef IDTHREADWORKER_H
|
|
||||||
#define IDTHREADWORKER_H
|
|
||||||
|
|
||||||
#include <QThread>
|
|
||||||
|
|
||||||
//#include <v1/future>
|
|
||||||
//#include <c++/v1/chrono>
|
|
||||||
|
|
||||||
class IdThreadWorker : public QThread
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
explicit IdThreadWorker( QObject *parent = 0 );
|
|
||||||
|
|
||||||
void run();
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // IDTHREADWORKER_H
|
|
@@ -46,7 +46,7 @@ Closure::Closure(QObject* sender,
|
|||||||
|
|
||||||
Closure::Closure(QObject* sender,
|
Closure::Closure(QObject* sender,
|
||||||
const char* signal,
|
const char* signal,
|
||||||
std::function<void()> callback)
|
std::tr1::function<void()> callback)
|
||||||
: callback_(callback) {
|
: callback_(callback) {
|
||||||
Connect(sender, signal);
|
Connect(sender, signal);
|
||||||
}
|
}
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include "DllMacro.h"
|
#include "DllMacro.h"
|
||||||
|
|
||||||
#include <functional>
|
#include <tr1/functional>
|
||||||
|
|
||||||
#include <QMetaMethod>
|
#include <QMetaMethod>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
@@ -64,7 +64,7 @@ class DLLEXPORT Closure : public QObject, boost::noncopyable {
|
|||||||
const ClosureArgumentWrapper* val3 = 0);
|
const ClosureArgumentWrapper* val3 = 0);
|
||||||
|
|
||||||
Closure(QObject* sender, const char* signal,
|
Closure(QObject* sender, const char* signal,
|
||||||
std::function<void()> callback);
|
std::tr1::function<void()> callback);
|
||||||
|
|
||||||
void setAutoDelete( bool autoDelete ) { autoDelete_ = autoDelete; }
|
void setAutoDelete( bool autoDelete ) { autoDelete_ = autoDelete; }
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ class DLLEXPORT Closure : public QObject, boost::noncopyable {
|
|||||||
void Connect(QObject* sender, const char* signal);
|
void Connect(QObject* sender, const char* signal);
|
||||||
|
|
||||||
QMetaMethod slot_;
|
QMetaMethod slot_;
|
||||||
std::function<void()> callback_;
|
std::tr1::function<void()> callback_;
|
||||||
bool autoDelete_;
|
bool autoDelete_;
|
||||||
|
|
||||||
boost::scoped_ptr<const ClosureArgumentWrapper> val0_;
|
boost::scoped_ptr<const ClosureArgumentWrapper> val0_;
|
||||||
|
Reference in New Issue
Block a user