~ubuntu-branches/ubuntu/karmic/kid3/karmic

« back to all changes in this revision

Viewing changes to kid3/taggedfile.h

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2009-05-20 16:12:30 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090520161230-qetp532r8ydujkz2
Tags: upstream-1.2
Import upstream version 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
612
612
                        m_newFilename != m_filename; }
613
613
 
614
614
        /**
 
615
         * Check if filename is changed.
 
616
         *
 
617
         * @return true if filename was changed.
 
618
         */
 
619
        bool isFilenameChanged() const { return m_newFilename != m_filename; }
 
620
 
 
621
        /**
615
622
         * Get absolute filename.
616
623
         *
617
624
         * @return absolute file path.
626
633
 
627
634
        /**
628
635
         * Mark tag 2 as changed.
629
 
         * @param changed true if tag is changed
630
 
         */
631
 
        void markTag2Changed(bool changed = true) { m_changedV2 = changed; }
 
636
         *
 
637
         * @param type type of changed frame
 
638
         */
 
639
        void markTag2Changed(Frame::Type type);
 
640
 
 
641
        /**
 
642
         * Mark tag 2 as unchanged.
 
643
         */
 
644
        void markTag2Unchanged() { m_changedV2 = false; m_changedFramesV2 = 0; }
 
645
 
 
646
        /**
 
647
         * Get the mask of the frame types changed in tag 1.
 
648
         * @return mask of frame types.
 
649
         */
 
650
        unsigned long getChangedFramesV1() const { return m_changedFramesV1; }
 
651
 
 
652
        /**
 
653
         * Get the mask of the frame types changed in tag 2.
 
654
         * @return mask of frame types.
 
655
         */
 
656
        unsigned long getChangedFramesV2() const { return m_changedFramesV2; }
632
657
 
633
658
        /**
634
659
         * Get the truncation flags.
733
758
 
734
759
        /**
735
760
         * Mark tag 1 as changed.
736
 
         * @param changed true if tag is changed
737
 
         */
738
 
        void markTag1Changed(bool changed = true) {
739
 
                m_changedV1 = changed;
740
 
                if (!m_changedV1) clearTrunctionFlags();
 
761
         *
 
762
         * @param type type of changed frame
 
763
         */
 
764
        void markTag1Changed(Frame::Type type);
 
765
 
 
766
        /**
 
767
         * Mark tag 1 as unchanged.
 
768
         */
 
769
        void markTag1Unchanged() {
 
770
                m_changedV1 = false;
 
771
                m_changedFramesV1 = 0;
 
772
                clearTrunctionFlags();
741
773
        }
742
774
 
743
775
        /**
781
813
        QString m_newFilename;
782
814
        /** true if ID3v1 tags were changed */
783
815
        bool m_changedV1;
 
816
        /** changed tag 1 frame types */
 
817
        unsigned long m_changedFramesV1;
784
818
        /** true if ID3v2 tags were changed */
785
819
        bool m_changedV2;
 
820
        /** changed tag 2 frame types */
 
821
        unsigned long m_changedFramesV2;
786
822
        /** Truncation flags. */
787
823
        unsigned m_truncation;
788
824