drmfile.cpp 881 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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)
  23. {
  24. Q_D(DRMFile);
  25. return d->read(data);
  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. return (DRMFilePrivate::isDRMError(error));
  47. }