syncresult.cpp 1013 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (C) by Duncan Mac-Vicar P. <duncan@kde.org>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. * for more details.
  13. */
  14. #include "mirall/syncresult.h"
  15. namespace Mirall
  16. {
  17. SyncResult::SyncResult()
  18. : _result( Undefined )
  19. {
  20. }
  21. SyncResult::SyncResult(SyncResult::Result result)
  22. : _result(result)
  23. {
  24. }
  25. SyncResult::Result SyncResult::result() const
  26. {
  27. return _result;
  28. }
  29. void SyncResult::setErrorString( const QString& err )
  30. {
  31. _errorMsg = err;
  32. }
  33. QString SyncResult::errorString() const
  34. {
  35. return _errorMsg;
  36. }
  37. SyncResult::~SyncResult()
  38. {
  39. }
  40. } // ns mirall