Diffstat (limited to 'noncore/apps/opie-reader/ebookcodec.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ebookcodec.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/noncore/apps/opie-reader/ebookcodec.h b/noncore/apps/opie-reader/ebookcodec.h index f6e2daf..4229fb9 100644 --- a/noncore/apps/opie-reader/ebookcodec.h +++ b/noncore/apps/opie-reader/ebookcodec.h @@ -8,6 +8,4 @@ #endif -#include "util.h" - #ifndef __STATIC #include <dlfcn.h> @@ -18,4 +16,5 @@ class ebookcodec : public CExpander_Interface int status; public: + QString getTableAsHtml(unsigned long loc) { return codec->getTableAsHtml(loc); } QString about() { @@ -24,5 +23,15 @@ class ebookcodec : public CExpander_Interface ebookcodec(const QString& _s) : codec(NULL), handle(NULL), status(0) { - QString codecpath(QTReaderUtil::getPluginPath()); +#ifdef USEQPE +#ifdef OPIE + QString codecpath(getenv("OPIEDIR")); +#else + QString codecpath(getenv("QTDIR")); +#endif + codecpath += "/plugins/reader/codecs/"; +#else + QString codecpath(getenv("READERDIR")); + codecpath += "/codecs/"; +#endif codecpath += _s; if (QFile::exists(codecpath)) @@ -114,5 +123,9 @@ class ebookcodec : public CExpander_Interface int getwidth() { return codec->getwidth(); } QImage* getPicture(const QString& href) { return codec->getPicture(href); } - bool getFile(const QString& href) { return codec->getFile(href); } + bool getFile(const QString& href, const QString& nm) { return codec->getFile(href, nm); } + bool findanchor(const QString& nm) + { + return codec->findanchor(nm); + } }; #endif |