コード例 #1
0
ファイル: PlayAudio.cpp プロジェクト: ganeshncm/mediafly
bool PlayAudio::playqueueGetMediaInfo(const Xmms::PropDict &info)
{
	MusicInfo hash;

	info.each(boost::bind (&PlayAudio::propDictToQHash,_1, _2, _3, boost::ref (hash)));
	m_songLength = hash["duration"].toInt();
	emit stateChange();
	return true;
}
コード例 #2
0
ファイル: xclient.cpp プロジェクト: dsvensson/promoe
/**
 * convert a Xmms::PropDict to a QHash<QString, QVariant>
**/
QHash<QString, QVariant>
XClient::convert_propdict (const Xmms::PropDict &dict)
{
	QHash<QString, QVariant> hash;
#ifdef SOURCEPREF_HACK
	MyPropDict d (dict);
	QList<QRegExp> priolist = d.getSourcePreference ();
	QHash<QString, int> curr_prio;
#endif
	dict.each (boost::bind (&XClient::propDictToQHash,
							_1, _2, _3,
#ifdef SOURCEPREF_HACK
	                        boost::ref (priolist),
	                        boost::ref (curr_prio),
#endif
							boost::ref (hash)));

	return hash;
}