00001 00009 #ifndef DRMFILE_H 00010 #define DRMFILE_H 00011 00012 #include <QObject> 00013 00014 class DRMFilePrivate; 00015 00026 class DRMFile : public QObject 00027 { 00028 Q_OBJECT 00029 Q_DECLARE_PRIVATE(DRMFile) 00030 00031 public: 00037 explicit DRMFile(QObject *parent = 0); 00038 00043 virtual ~DRMFile(); 00044 00045 public: 00046 00057 int open(const QString & name); 00058 00068 int read(uchar*& data); 00069 00074 void close(); 00075 00080 int size(); 00081 00082 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API 00083 00088 qint64 size64(); 00089 #endif 00090 00097 static bool isDRMError(int error); 00098 00099 protected: 00103 DRMFilePrivate* const d_ptr; 00104 }; 00105 00106 #endif // DRMFILE_H