filepathconst.cpp 985 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #include "FilePathConst.h"
  2. #include <QtCore/QCoreApplication>
  3. QString getDrmDataRoot()
  4. {
  5. QString str(QCoreApplication::applicationDirPath());
  6. str.prepend("file:///");
  7. #ifdef Q_WS_S60
  8. str += "/drm/data/";
  9. #else
  10. str += "/data/production/drm/data/";
  11. #endif
  12. return str;
  13. }
  14. QString getFreeDataRoot()
  15. {
  16. QString str(QCoreApplication::applicationDirPath());
  17. str.prepend("file:///");
  18. #ifdef Q_WS_S60
  19. str += "/";
  20. #else
  21. str += "/data/production/";
  22. #endif
  23. return str;
  24. }
  25. QString getThumbnailDataRoot()
  26. {
  27. QString str(QCoreApplication::applicationDirPath());
  28. str.prepend("file:///");
  29. #ifdef Q_WS_S60
  30. str += "/thumbnails/";
  31. #else
  32. str += "/data/production/thumbnails/";
  33. #endif
  34. return str;
  35. }
  36. QString getDefaultImageFile()
  37. {
  38. return QString("pig1_2colors_8bits.png"
  39. /*#ifdef Q_WS_S60
  40. "pig1_2colors_8bits.png"
  41. #else
  42. "resourceid_524981/cartman_2colors_8bits.png"
  43. #endif*/
  44. );
  45. }