VideoDisplayName.cxx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (C) 2011-2013 Doubango Telecom <http://www.doubango.org>
  2. *
  3. * This file is part of Open Source Doubango Framework.
  4. *
  5. * DOUBANGO is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * DOUBANGO is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with DOUBANGO.
  17. */
  18. #include "internals/VideoDisplayName.h"
  19. VideoDisplayName::VideoDisplayName(std::string name_, std::string descr) : name(name_), description(descr)
  20. {
  21. }
  22. std::string VideoDisplayName::getName() const
  23. {
  24. return this->name;
  25. }
  26. std::string VideoDisplayName::getDescription() const
  27. {
  28. return this->description;
  29. }
  30. int VideoDisplayName::operator==(const VideoDisplayName &dev) const
  31. {
  32. return this->name == dev.name;
  33. }