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