summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/util.h
authorpohly <pohly>2005-05-05 14:39:33 (UTC)
committer pohly <pohly>2005-05-05 14:39:33 (UTC)
commit39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91 (patch) (side-by-side diff)
tree96e66fdc18dca4d4ab8611133e072f57dea224b9 /noncore/apps/opie-reader/util.h
parent279fc4fd1986074acbadd3a8e86fcf3968a8dd5c (diff)
downloadopie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.zip
opie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.tar.gz
opie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.tar.bz2
new opie-reader sources with support for ArriereGo, Reb input and flite output plugins
Diffstat (limited to 'noncore/apps/opie-reader/util.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/util.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/noncore/apps/opie-reader/util.h b/noncore/apps/opie-reader/util.h
index f831ead..3964b5e 100644
--- a/noncore/apps/opie-reader/util.h
+++ b/noncore/apps/opie-reader/util.h
@@ -2,56 +2,8 @@
#define __UTIL_H
#include <qstring.h>
-#include <qdir.h>
-#include <stdlib.h>
QString filesize(unsigned long l);
QString percent(unsigned long pos, unsigned long len);
QString fmt(unsigned long pos, unsigned long len);
-
-/**
- * class with utility inline function(s)
- * (in contrast to global functions they become available by just
- * including util.h)
- */
-class QTReaderUtil
-{
- public:
-
- /**
- * searches for a specific direcory inside OpieReader installation
- *
- * @param subdir name of sub directory inside installation directory which is needed
- * @return full path name including that sub directory
- *
- * search order is (on all platforms):
- * - OPIEDIR
- * - QTDIR
- * - READERDIR
- */
- static QString getPluginPath( const char *subdir = "codecs/" )
- {
- QString dirname;
- dirname = getenv("OPIEDIR");
- dirname += "/plugins/reader/";
- dirname += subdir;
- if (QDir(dirname).exists())
- return dirname;
-
- dirname = getenv("QTDIR");
- dirname += "/plugins/reader/";
- dirname += subdir;
- if (QDir(dirname).exists())
- return dirname;
-
- dirname = getenv("READERDIR");
- dirname += "/";
- dirname += subdir;
- if (QDir(dirname).exists())
- return dirname;
-
- return "";
- }
-};
-
#endif