Remove some moc/QObject warnings in KDE builds without streams or http server.
BUG: 507
This commit is contained in:
committed by
craig.p.drummond
parent
20392d4ebb
commit
df7604c302
@@ -14,6 +14,8 @@
|
||||
1.4.1
|
||||
-----
|
||||
1. Remove unused var warning when compiling without online services.
|
||||
2. Remove some moc/QObject warnings in KDE builds without streams or http
|
||||
server.
|
||||
|
||||
1.4.0
|
||||
-----
|
||||
|
||||
@@ -37,7 +37,7 @@ class QTimer;
|
||||
|
||||
class HttpServer : public QObject
|
||||
{
|
||||
#ifdef ENABLE_HTTP_SERVER
|
||||
#if defined ENABLE_HTTP_SERVER || defined ENABLE_KDE_SUPPORT
|
||||
Q_OBJECT
|
||||
#endif
|
||||
|
||||
|
||||
@@ -332,6 +332,17 @@ private:
|
||||
QList<Item *> hiddenCategories;
|
||||
};
|
||||
|
||||
#elif defined ENABLE_KDE_SUPPORT
|
||||
#include <QObject>
|
||||
class StreamsModel : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static const QString constPrefix;
|
||||
static const QString constPlayListName;
|
||||
static QString modifyUrl(const QString &u, bool addPrefix=true, const QString &name=QString());
|
||||
static bool validProtocol(const QString &file);
|
||||
};
|
||||
#else
|
||||
namespace StreamsModel
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user