Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/daap/DaapCollection.cpp
Show All 15 Lines | |||||
16 | * this program. If not, see <http://www.gnu.org/licenses/>. * | 16 | * this program. If not, see <http://www.gnu.org/licenses/>. * | ||
17 | ****************************************************************************************/ | 17 | ****************************************************************************************/ | ||
18 | 18 | | |||
19 | #define DEBUG_PREFIX "DaapCollection" | 19 | #define DEBUG_PREFIX "DaapCollection" | ||
20 | 20 | | |||
21 | #include "DaapCollection.h" | 21 | #include "DaapCollection.h" | ||
22 | 22 | | |||
23 | #include "amarokconfig.h" | 23 | #include "amarokconfig.h" | ||
24 | #include "core/interfaces/Logger.h" | 24 | #include "core/logger/Logger.h" | ||
25 | #include "core/support/Components.h" | 25 | #include "core/support/Components.h" | ||
26 | #include "core/support/Debug.h" | 26 | #include "core/support/Debug.h" | ||
27 | #include "DaapMeta.h" | 27 | #include "DaapMeta.h" | ||
28 | #include "MemoryQueryMaker.h" | 28 | #include "MemoryQueryMaker.h" | ||
29 | #include "daapreader/Reader.h" | 29 | #include "daapreader/Reader.h" | ||
30 | 30 | | |||
31 | #include <QStringList> | 31 | #include <QStringList> | ||
32 | #include <QTimer> | 32 | #include <QTimer> | ||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 91 | { | |||
92 | debug() << "Adding server " << server; | 92 | debug() << "Adding server " << server; | ||
93 | QStringList current = server.split( ':', QString::KeepEmptyParts ); | 93 | QStringList current = server.split( ':', QString::KeepEmptyParts ); | ||
94 | //handle invalid urls gracefully | 94 | //handle invalid urls gracefully | ||
95 | if( current.count() < 2 ) | 95 | if( current.count() < 2 ) | ||
96 | continue; | 96 | continue; | ||
97 | 97 | | |||
98 | QString host = current.first(); | 98 | QString host = current.first(); | ||
99 | quint16 port = current.last().toUShort(); | 99 | quint16 port = current.last().toUShort(); | ||
100 | Amarok::Components::logger()->longMessage( | 100 | Amarok::Logger::longMessage( | ||
101 | i18n( "Loading remote collection from host %1", host), | 101 | i18n( "Loading remote collection from host %1", host), | ||
102 | Amarok::Logger::Information ); | 102 | Amarok::Logger::Information ); | ||
103 | 103 | | |||
104 | int lookup_id = QHostInfo::lookupHost( host, this, &DaapCollectionFactory::resolvedManualServerIp ); | 104 | int lookup_id = QHostInfo::lookupHost( host, this, &DaapCollectionFactory::resolvedManualServerIp ); | ||
105 | m_lookupHash.insert( lookup_id, port ); | 105 | m_lookupHash.insert( lookup_id, port ); | ||
106 | } | 106 | } | ||
107 | } | 107 | } | ||
108 | 108 | | |||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |