1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 00:24:12 +02:00

Move implementations out of the header

This commit is contained in:
Uwe L. Korn
2013-07-08 12:47:48 +02:00
parent 8097c4a513
commit 0f7038c8bc
2 changed files with 57 additions and 8 deletions

View File

@@ -94,6 +94,34 @@ DropJob::mimeTypes()
}
void
DropJob::setDropTypes( DropTypes types )
{
m_dropTypes = types;
}
void
DropJob::setDropAction( DropJob::DropAction action )
{
m_dropAction = action;
}
DropJob::DropTypes
DropJob::dropTypes() const
{
return m_dropTypes;
}
DropJob::DropAction
DropJob::dropAction() const
{
return m_dropAction;
}
bool
DropJob::acceptsMimeData( const QMimeData* data, DropJob::DropTypes acceptedType, DropJob::DropAction acceptedAction )
{
@@ -704,6 +732,20 @@ DropJob::handleGroovesharkUrls ( const QString& urlsRaw )
}
bool
DropJob::canParseSpotifyPlaylists()
{
return s_canParseSpotifyPlaylists;
}
void
DropJob::setCanParseSpotifyPlaylists( bool parseable )
{
s_canParseSpotifyPlaylists = parseable;
}
void
DropJob::handleAllUrls( const QString& urls )
{

View File

@@ -86,14 +86,21 @@ public:
static QStringList mimeTypes();
/// Set the drop types that should be extracted from this drop
void setDropTypes( DropTypes types ) { m_dropTypes = types; }
/**
* Set the drop types that should be extracted from this drop
*/
void setDropTypes( DropTypes types );
/// Set the action that the drop should do. For example, if dropping a playlist, Create will create a new playlist but Append will generate the raw tracks
void setDropAction( DropAction action ) { m_dropAction = action; }
/**
* Set the action that the drop should do.
*
* For example, if dropping a playlist, Create will create a new playlist
* but Append will generate the raw tracks
*/
void setDropAction( DropAction action );
DropTypes dropTypes() const { return m_dropTypes; }
DropAction dropAction() const { return m_dropAction; }
DropTypes dropTypes() const;
DropAction dropAction() const;
/**
* Begin the parsing of the mime data. The resulting tracks are exposed in the various signals
@@ -110,8 +117,8 @@ public:
void handleExfmUrls( const QString& urls );
void handleGroovesharkUrls( const QString& urls );
static bool canParseSpotifyPlaylists() { return s_canParseSpotifyPlaylists; }
static void setCanParseSpotifyPlaylists( bool parseable ) { s_canParseSpotifyPlaylists = parseable; }
static bool canParseSpotifyPlaylists();
static void setCanParseSpotifyPlaylists( bool parseable );
signals:
/// QMimeData parsing results