File indexing completed on 2025-01-05 04:25:58

0001 /*
0002     Copyright (C) 2009 Dan Meltzer <parallelgrapefruit@gmail.com>
0003 
0004     This program is free software: you can redistribute it and/or modify
0005     it under the terms of the GNU General Public License as published by
0006     the Free Software Foundation, either version 2 of the License, or
0007     (at your option) any later version.
0008 
0009     This program is distributed in the hope that it will be useful,
0010     but WITHOUT ANY WARRANTY; without even the implied warranty of
0011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012     GNU General Public License for more details.
0013 
0014     You should have received a copy of the GNU General Public License
0015     along with this program.  If not, see <http://www.gnu.org/licenses/>.
0016 
0017 */
0018 
0019 #ifndef SQLWRITELABELCAPABILITY_H
0020 #define SQLWRITELABELCAPABILITY_H
0021 
0022 #include "core/capabilities/WriteLabelCapability.h"
0023 #include "SqlMeta.h"
0024 
0025 #include <QSharedPointer>
0026 
0027 class SqlStorage;
0028 
0029 namespace Capabilities
0030 {
0031 
0032 class SqlWriteLabelCapability : public WriteLabelCapability
0033 {
0034     Q_OBJECT
0035     public:
0036         SqlWriteLabelCapability( Meta::SqlTrack *track, const QSharedPointer<SqlStorage> &storage );
0037         void setLabels( const QStringList &removedLabels, const QStringList &newlabels ) override;
0038 
0039     private:
0040         Meta::TrackPtr m_track;
0041         QSharedPointer<SqlStorage> m_storage;
0042 };
0043 
0044 }
0045 
0046 #endif // SQLREADLABELCAPABILITY_H