本文整理汇总了C++中Playlist::moveTo方法的典型用法代码示例。如果您正苦于以下问题:C++ Playlist::moveTo方法的具体用法?C++ Playlist::moveTo怎么用?C++ Playlist::moveTo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Playlist
的用法示例。
在下文中一共展示了Playlist::moveTo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addPath
bool Playlist::addPath (const string &path) {
Playlist backup = Playlist(this);
if (buildPath (path, true)) {
_MESSAGE ("%lld | Playlist: \"%s\" > Added path: \"%s\"", timeStamp, name, path.c_str ());
initialized = true;
destroyed = false;
sortTracks (true);
curIndex = -1;
return true;
} else {
_MESSAGE ("%lld | Playlist: \"%s\" > const string &is not valid or empty: \"%s\"", timeStamp, name, path.c_str ());
backup.moveTo (this);
return false;
}
}
示例2: setPaths
bool Playlist::setPaths (const string &paths, bool randomOrder) {
Playlist backup = Playlist (this);
if (buildPaths (paths)) {
_MESSAGE ("%lld | Playlist: \"%s\" > New paths: \"%s\"", timeStamp, name, paths.c_str ());
initialized = true;
destroyed = false;
Playlist::randomOrder = randomOrder;
sortTracks (true);
curIndex = -1;
return true;
} else {
_MESSAGE ("%lld | Playlist: \"%s\" > Path is not valid or empty: \"%s\"", timeStamp, name, paths.c_str ());
backup.moveTo (this);
initialized = false;
return false;
}
}