/src/libtomahawk/database/DatabaseCommand_LoadOps.h

http://github.com/tomahawk-player/tomahawk · C Header · 55 lines · 27 code · 10 blank · 18 comment · 0 complexity · 726740eb7a95fb5bd2f5d7b71658923c MD5 · raw file

  1. /* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
  2. *
  3. * Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
  4. * Copyright 2010-2011, Jeff Mitchell <jeff@tomahawk-player.org>
  5. *
  6. * Tomahawk is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Tomahawk is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef DATABASECOMMAND_LOADOPS_H
  20. #define DATABASECOMMAND_LOADOPS_H
  21. #include "Typedefs.h"
  22. #include "DatabaseCommand.h"
  23. #include "Op.h"
  24. #include "DllMacro.h"
  25. namespace Tomahawk
  26. {
  27. class DLLEXPORT DatabaseCommand_loadOps : public DatabaseCommand
  28. {
  29. Q_OBJECT
  30. public:
  31. explicit DatabaseCommand_loadOps( const Tomahawk::source_ptr& src, QString since, QObject* parent = 0 )
  32. : DatabaseCommand( src ), m_since( since )
  33. {
  34. Q_UNUSED( parent );
  35. }
  36. virtual void exec( DatabaseImpl* db );
  37. virtual bool doesMutates() const { return false; }
  38. virtual QString commandname() const { return "loadops"; }
  39. signals:
  40. void done( QString sinceguid, QString lastguid, QList< dbop_ptr > ops );
  41. private:
  42. QString m_since; // guid to load from
  43. };
  44. }
  45. #endif // DATABASECOMMAND_LOADOPS_H