GEInterfaces.cpp 663 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Copyright (c) 2011 Nokia Corporation.
  3. *
  4. * Part of the Qt GameEnabler.
  5. */
  6. #include "GEInterfaces.h"
  7. using namespace GE;
  8. /*!
  9. \class AudioSource
  10. \brief An abstract interface for an audio source.
  11. */
  12. /*!
  13. Constructor.
  14. */
  15. AudioSource::AudioSource(QObject *parent /* = 0 */)
  16. : QObject(parent)
  17. {
  18. }
  19. /*!
  20. Destructor.
  21. */
  22. AudioSource::~AudioSource()
  23. {
  24. }
  25. /*!
  26. This method is used to check whether this instance can be (auto-)destroyed
  27. or not.
  28. To be implemented in the derived class. This default implementation always
  29. returns false.
  30. */
  31. bool AudioSource::canBeDestroyed()
  32. {
  33. return false;
  34. }