Commit 828ab70a authored by Scott Wheeler's avatar Scott Wheeler

This is the only file indented this way. Make it more like the others...

svn path=/trunk/kdemultimedia/juk/; revision=249643
parent b84416f1
......@@ -16,49 +16,49 @@ class Tag;
class FileRenamer
{
public:
enum TokenType {
Title, Artist, Album, Track, Comment
};
public:
enum TokenType {
Title, Artist, Album, Track, Comment
};
class Config
{
public:
Config(KConfigBase *cfg);
class Config
{
public:
Config(KConfigBase *cfg);
QString filenameScheme() const;
void setFilenameScheme(const QString &scheme);
QString filenameScheme() const;
void setFilenameScheme(const QString &scheme);
QString getToken(TokenType type) const;
void setToken(TokenType type, const QString &value);
QString getToken(TokenType type) const;
void setToken(TokenType type, const QString &value);
bool tokenNeedsValue(TokenType type) const;
void setTokenNeedsValue(TokenType type, bool needsValue);
bool tokenNeedsValue(TokenType type) const;
void setTokenNeedsValue(TokenType type, bool needsValue);
private:
KConfigGroup m_grp;
};
private:
KConfigGroup m_grp;
};
static QString tokenToString(TokenType type);
static QString tokenToString(TokenType type);
FileRenamer();
FileRenamer(PlaylistItem *item);
FileRenamer();
FileRenamer(PlaylistItem *item);
void rename(PlaylistItem *item);
void rename(const PlaylistItemList &items);
QString rename(const QString &filename, const Tag &tag) const;
void rename(PlaylistItem *item);
void rename(const PlaylistItemList &items);
QString rename(const QString &filename, const Tag &tag) const;
private:
class ConfirmationDialog;
private:
class ConfirmationDialog;
QString expandToken(TokenType type, const QString &value) const;
/**
* Attempts to rename the file from \a src to \a dest. Returns true
* if the operation succeeded.
*/
bool moveFile(const QString &src, const QString &dest);
QString expandToken(TokenType type, const QString &value) const;
/**
* Attempts to rename the file from \a src to \a dest. Returns true
* if the operation succeeded.
*/
bool moveFile(const QString &src, const QString &dest);
Config m_cfg;
Config m_cfg;
};
#endif // FILERENAMER_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment