~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

Viewing changes to src/tools/tunecontroller/tune.h

  • Committer: Package Import Robot
  • Author(s): Jan Niehusmann
  • Date: 2014-07-01 21:49:34 UTC
  • mfrom: (6.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20140701214934-gt4dkgm94byi4vnn
Tags: 0.15-1
* New upstream version
* set debhelper compat level to 9
* set Standards-Version to 3.9.5 (no further changes)
* add lintian override regarding license-problem-non-free-RFC
* use qconf to regenerate configure script
* implement hardening using buildflags instead of hardening-wrapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this library; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 *
19
19
 */
20
20
 
38
38
        const QString& artist() const { return artist_; }
39
39
        const QString& album() const { return album_; }
40
40
        const QString& track() const { return track_; }
 
41
        const QString& url() const { return url_; }
41
42
        
42
43
        unsigned int time() const { return time_; }
43
44
 
52
53
         * \brief Checks whether this is a null tune.
53
54
         */
54
55
        bool isNull() const {
55
 
                return name_.isEmpty() && artist_.isEmpty() && album_.isEmpty() && track_.isEmpty() && time_ == 0; 
 
56
                return name_.isEmpty() && artist_.isEmpty() && album_.isEmpty() && track_.isEmpty() && url_.isEmpty() && time_ == 0;
56
57
        }
57
58
 
58
59
        /**
59
60
         * \brief Compares this tune with another tune for equality.
60
61
         */
61
62
        bool operator==(const Tune& t) const {
62
 
                return name_ == t.name_ && artist_ == t.artist_ && album_ == t.album_ && track_ == t.track_ && time_ == t.time_; 
 
63
                return name_ == t.name_ && artist_ == t.artist_ && album_ == t.album_ && track_ == t.track_ && url_ == t.url_ && time_ == t.time_;
63
64
        }
64
65
 
65
66
        /**
73
74
        void setArtist(const QString& artist) { artist_ = artist; }
74
75
        void setAlbum(const QString& album) { album_ = album; }
75
76
        void setTrack(const QString& track) { track_ = track; }
 
77
        void setURL(const QString& url) { url_ = url; }
76
78
        void setTime(unsigned int time) { time_ = time; }
77
79
 
78
80
private:
79
 
        QString name_, artist_, album_, track_;
 
81
        QString name_, artist_, album_, track_, url_;
80
82
        unsigned int time_;
81
83
};
82
84