LMMS
Loading...
Searching...
No Matches
PathUtil.cpp File Reference
#include "PathUtil.h"
#include <QDir>
#include <QFileInfo>
#include "ConfigManager.h"
#include "Engine.h"
#include "Song.h"

Namespaces

namespace  lmms
namespace  lmms::PathUtil

Functions

QString lmms::PathUtil::baseLocation (const Base base, bool *error)
QDir lmms::PathUtil::baseQDir (const Base base, bool *error)
QString lmms::PathUtil::basePrefix (const Base base)
 Return the prefix used to denote this base in path strings.
Base lmms::PathUtil::baseLookup (const QString &input)
QString lmms::PathUtil::serializePath (const QString &input)
QString lmms::PathUtil::stripPrefix (const QString &input)
 Remove the prefix from a path, iff there is one.
QString lmms::PathUtil::cleanName (const QString &input)
 Get the filename for a path, handling prefixed paths correctly.
QString lmms::PathUtil::oldRelativeUpgrade (const QString &input)
 Upgrade prefix-less relative paths to the new format.
QString lmms::PathUtil::toAbsolute (const QString &input, bool *error)
QString lmms::PathUtil::relativeOrAbsolute (const QString &input, const Base base)
 Make this path relative to a given base, return an absolute path if that fails.
QString lmms::PathUtil::toShortestRelative (const QString &input, bool allowLocal)

Variables

auto lmms::PathUtil::relativeBases