drmfile_p.h 651 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef DRMFILE_P_H
  2. #define DRMFILE_P_H
  3. #include <qglobal.h>
  4. #include <caf/content.h>
  5. using namespace ContentAccess;
  6. class DRMFile;
  7. class DRMFilePrivate
  8. {
  9. public:
  10. explicit DRMFilePrivate();
  11. virtual ~DRMFilePrivate();
  12. public:
  13. int open(const QString & fileName);
  14. int read(char* data, int length);
  15. void close();
  16. int size();
  17. #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
  18. qint64 size64();
  19. #endif
  20. bool isDRMError(int error);
  21. private:
  22. int openL(const TDesC& fileName);
  23. private:
  24. CContent *CAF_file;
  25. CData *CAF_data;
  26. TBool intentExecuted;
  27. };
  28. #endif // DRMFILE_P_H