~ubuntu-branches/ubuntu/intrepid/kid3/intrepid

« back to all changes in this revision

Viewing changes to kid3/formatconfig.h

  • Committer: Bazaar Package Importer
  • Author(s): Michele Angrisano
  • Date: 2008-01-09 23:20:54 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080109232054-gtcjxz4ahdnzbt01
Tags: 0.10-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/rules:
    + Use dh_icons instead dh_iconcache.
  - debian/control:
    + Update maintainer field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * \b Project: Kid3
6
6
 * \author Urs Fleisch
7
7
 * \date 17 Sep 2003
 
8
 *
 
9
 * Copyright (C) 2003-2007  Urs Fleisch
 
10
 *
 
11
 * This file is part of Kid3.
 
12
 *
 
13
 * Kid3 is free software; you can redistribute it and/or modify
 
14
 * it under the terms of the GNU General Public License as published by
 
15
 * the Free Software Foundation; either version 2 of the License, or
 
16
 * (at your option) any later version.
 
17
 *
 
18
 * Kid3 is distributed in the hope that it will be useful,
 
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
21
 * GNU General Public License for more details.
 
22
 *
 
23
 * You should have received a copy of the GNU General Public License
 
24
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
8
25
 */
9
26
 
10
27
#ifndef FORMATCONFIG_H
16
33
 
17
34
class QString;
18
35
class StandardTags;
 
36
class FrameCollection;
19
37
 
20
38
/**
21
39
 * Format configuration.
32
50
            AllFirstLettersUppercase,
33
51
            NumCaseConversions
34
52
        };
 
53
 
35
54
        /**
36
55
         * Constructor.
37
56
         *
38
57
         * @param grp configuration group
39
58
         */
40
59
        FormatConfig(const QString& grp);
 
60
 
41
61
        /**
42
62
         * Destructor.
43
63
         */
44
64
        virtual ~FormatConfig();
 
65
 
45
66
        /**
46
67
         * Set specific properties for a filename format.
47
68
         * This will set default string conversions and not touch the file
48
69
         * extension when formatting.
49
70
         */
50
71
        void setAsFilenameFormatter();
 
72
 
51
73
        /**
52
74
         * Format a string using this configuration.
53
75
         *
54
76
         * @param str string to format
55
77
         */
56
78
        void formatString(QString& str) const;
 
79
 
57
80
        /**
58
81
         * Format title, artist and album using this configuration.
59
82
         *
60
83
         * @param st standard tags
61
84
         */
62
85
        void formatStandardTags(StandardTags& st) const;
 
86
 
 
87
        /**
 
88
         * Format frames using this configuration.
 
89
         *
 
90
         * @param frames frames
 
91
         */
 
92
        void formatFrames(FrameCollection& frames) const;
 
93
 
63
94
        /**
64
95
         * Persist configuration.
65
96
         *
72
103
                Kid3Settings* config
73
104
#endif
74
105
                ) const;
 
106
 
75
107
        /**
76
108
         * Read persisted configuration.
77
109
         *