mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-19 12:21:52 +02:00
Move implementations out of the header
This commit is contained in:
@@ -31,6 +31,14 @@
|
||||
using namespace Tomahawk;
|
||||
|
||||
|
||||
DatabaseCommand_LoadAllPlaylists::DatabaseCommand_LoadAllPlaylists( const source_ptr& s, QObject* parent )
|
||||
: DatabaseCommand( s, parent )
|
||||
, m_limitAmount( 0 )
|
||||
, m_sortOrder( None )
|
||||
, m_sortDescending( false )
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
DatabaseCommand_LoadAllPlaylists::exec( DatabaseImpl* dbi )
|
||||
{
|
||||
@@ -39,10 +47,10 @@ DatabaseCommand_LoadAllPlaylists::exec( DatabaseImpl* dbi )
|
||||
|
||||
switch ( m_sortOrder )
|
||||
{
|
||||
case 0:
|
||||
break;
|
||||
case 0:
|
||||
break;
|
||||
|
||||
case ModificationTime:
|
||||
case ModificationTime:
|
||||
orderToken = "playlist.createdOn";
|
||||
}
|
||||
|
||||
@@ -80,3 +88,24 @@ DatabaseCommand_LoadAllPlaylists::exec( DatabaseImpl* dbi )
|
||||
emit done( plists );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DatabaseCommand_LoadAllPlaylists::setLimit( unsigned int limit )
|
||||
{
|
||||
m_limitAmount = limit;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DatabaseCommand_LoadAllPlaylists::setSortOrder( DatabaseCommand_LoadAllPlaylists::SortOrder order )
|
||||
{
|
||||
m_sortOrder = order;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DatabaseCommand_LoadAllPlaylists::setSortDescending( bool descending )
|
||||
{
|
||||
m_sortDescending = descending;
|
||||
}
|
||||
|
||||
|
@@ -46,20 +46,15 @@ public:
|
||||
Descending = 2
|
||||
};
|
||||
|
||||
explicit DatabaseCommand_LoadAllPlaylists( const Tomahawk::source_ptr& s, QObject* parent = 0 )
|
||||
: DatabaseCommand( s, parent )
|
||||
, m_limitAmount( 0 )
|
||||
, m_sortOrder( None )
|
||||
, m_sortDescending( false )
|
||||
{}
|
||||
explicit DatabaseCommand_LoadAllPlaylists( const Tomahawk::source_ptr& s, QObject* parent = 0 );
|
||||
|
||||
virtual void exec( DatabaseImpl* );
|
||||
virtual bool doesMutates() const { return false; }
|
||||
virtual QString commandname() const { return "loadallplaylists"; }
|
||||
|
||||
void setLimit( unsigned int limit ) { m_limitAmount = limit; }
|
||||
void setSortOrder( SortOrder order ) { m_sortOrder = order; }
|
||||
void setSortDescending( bool descending ) { m_sortDescending = descending; }
|
||||
void setLimit( unsigned int limit );
|
||||
void setSortOrder( SortOrder order );
|
||||
void setSortDescending( bool descending );
|
||||
|
||||
signals:
|
||||
void done( const QList<Tomahawk::playlist_ptr>& playlists );
|
||||
@@ -70,6 +65,6 @@ private:
|
||||
bool m_sortDescending;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace Tomahawk
|
||||
|
||||
#endif // DATABASECOMMAND_LOADALLPLAYLIST_H
|
||||
|
Reference in New Issue
Block a user