Skip to content

Commit

Permalink
TrackDAO: Clarify why internal, static methods must be public
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Aug 17, 2021
1 parent 32d113b commit f4918db
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/library/dao/trackdao.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,20 @@ class TrackDAO : public QObject, public virtual DAO, public virtual GlobalTrackC
bool updatePlayCounterFromPlayedHistory(
const QSet<TrackId>& trackIds) const;

/// Ugly workaround, don't use!!!
/// Don't use even if public!!! Ugly workaround for C++ visibility restrictions.
/// This method is invoked by a free function that needs to access
/// a private Track member that only TrackDAO is allowed to access
/// as a friend.
static void setTrackGenreInternal(Track* pTrack, const QString& genre);
/// Ugly workaround, don't use!!!
/// Don't use even if public!!! Ugly workaround for C++ visibility restrictions.
/// This method is invoked by a free function that needs to access
/// a private TrackRecord member that only TrackDAO is allowed to
/// access as a friend.
static void setTrackHeaderParsedInternal(Track* pTrack, bool headerParsed);
/// Ugly workaround, don't use!!!
/// Don't use even if public!!! Ugly workaround for C++ visibility restrictions.
/// This method is invoked by a free function that needs to access
/// private TrackRecord member that only TrackDAO is allowed to
/// access as a friend.
static bool getTrackHeaderParsedInternal(const mixxx::TrackRecord& trackRecord);

signals:
Expand Down

0 comments on commit f4918db

Please sign in to comment.