drmfile.cpp 964 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
  3. * All rights reserved.
  4. *
  5. * For the applicable distribution terms see the license.txt -file, included in
  6. * the distribution.
  7. */
  8. #include "drmfile.h"
  9. #include "drmfile_p.h"
  10. DRMFile::DRMFile(QObject *parent) :
  11. QObject(parent), d_ptr(new DRMFilePrivate())
  12. {
  13. }
  14. DRMFile::~DRMFile()
  15. {
  16. }
  17. int DRMFile::open(const QString & name)
  18. {
  19. Q_D(DRMFile);
  20. return d->open(name);
  21. }
  22. int DRMFile::read(uchar*& data, int length)
  23. {
  24. Q_D(DRMFile);
  25. return d->read(data, length);
  26. }
  27. void DRMFile::close()
  28. {
  29. Q_D(DRMFile);
  30. d->close();
  31. }
  32. int DRMFile::size()
  33. {
  34. Q_D(DRMFile);
  35. return d->size();
  36. }
  37. #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
  38. qint64 DRMFile::size64()
  39. {
  40. Q_D(DRMFile);
  41. return d->size64();
  42. }
  43. #endif
  44. bool DRMFile::isDRMError(int error)
  45. {
  46. Q_D(DRMFile);
  47. return d->isDRMError(error);
  48. }