3
* Format configuration.
10
#ifndef FORMATCONFIG_H
11
#define FORMATCONFIG_H
14
#include "generalconfig.h"
25
class FormatConfig : public GeneralConfig
28
/** Case conversion options. */
34
AllFirstLettersUppercase,
40
* @param grp configuration group
42
FormatConfig(const QString &grp);
46
virtual ~FormatConfig();
48
* Set specific properties for a filename format.
49
* This will set default string conversions and not touch the file
50
* extension when formatting.
52
void setAsFilenameFormatter();
54
* Format a string using this configuration.
56
* @param str string to format
58
void formatString(QString& str) const;
60
* Format title, artist and album using this configuration.
62
* @param st standard tags
64
void formatStandardTags(StandardTags& st) const;
66
* Persist configuration.
68
* @param config KDE configuration
70
virtual void writeToConfig(
78
* Read persisted configuration.
80
* @param config KDE configuration
82
virtual void readFromConfig(
89
/** Case conversion option */
90
CaseConversion caseConversion;
91
/** true if string replacement enabled */
93
/** Mapping for string replacement */
94
QMap<QString, QString> strRepMap;
96
/** true if it is a file formatter */
97
bool filenameFormatter;