1 // (c) 2005 Alexandre Pereira de Oliveira <aleprj@gmail.com>
2 // (c) 2003 Frerich Raabe <raabe@kde.org>
3 // See COPYING file for licensing information.
10 #include <Q3ValueList>
15 typedef Q3ValueList
<FileNameScheme
> List
;
18 FileNameScheme( const QString
&s
);
20 bool matches( const QString
&s
) const;
22 QString
title() const;
23 QString
artist() const;
24 QString
album() const;
25 QString
track() const;
26 QString
comment() const;
28 QString
composer() const;
29 QString
genre() const;
31 QString
pattern() const { return m_cod
; };
34 QString
composeRegExp( const QString
&s
) const;
37 mutable QRegExp m_regExp
;
53 enum Type
{ FileName
= 0, MusicBrainz
= 1 };
55 static QStringList
schemeStrings();
56 static void setSchemeStrings( const QStringList
&schemes
);
59 TagGuesser( const QString
&absFileName
);
61 void guess( const QString
&absFileName
);
63 QString
title() const { return m_title
; }
64 QString
artist() const { return m_artist
; }
65 QString
album() const { return m_album
; }
66 QString
track() const { return m_track
; }
67 QString
comment() const { return m_comment
; }
68 QString
year() const { return m_year
; }
69 QString
composer() const { return m_composer
; }
70 QString
genre() const { return m_genre
; }
74 QString
capitalizeWords( const QString
&s
);
76 FileNameScheme::List m_schemes
;
87 #endif /* TAGGUESSER_H */