drmfile.cpp 825 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #include "drmfile.h"
  2. #ifdef QT_WS_S60
  3. #include "Symbian/drmfile_p.h"
  4. #else
  5. #include "Simulator/drmfile_p.h"
  6. #endif
  7. DRMFile::DRMFile(QObject *parent) :
  8. QObject(parent), d_ptr(new DRMFilePrivate())
  9. {
  10. }
  11. DRMFile::~DRMFile()
  12. {
  13. }
  14. int DRMFile::open(const QString & name)
  15. {
  16. Q_D(DRMFile);
  17. return d->open(name);
  18. }
  19. int DRMFile::read(char* data, int length)
  20. {
  21. Q_D(DRMFile);
  22. return d->read(data, length);
  23. }
  24. void DRMFile::close()
  25. {
  26. Q_D(DRMFile);
  27. d->close();
  28. }
  29. int DRMFile::size()
  30. {
  31. Q_D(DRMFile);
  32. return d->size();
  33. }
  34. #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
  35. qint64 DRMFile::size64()
  36. {
  37. Q_D(DRMFile);
  38. return d->size64();
  39. }
  40. #endif
  41. bool DRMFile::isDRMError(int error)
  42. {
  43. Q_D(DRMFile);
  44. return d->isDRMError(error);
  45. }