ifc_podcast.h 844 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef NULLSOFT_ML_WIRE_IFC_PODCAST_H
  2. #define NULLSOFT_ML_WIRE_IFC_PODCAST_H
  3. #include <bfc/dispatch.h>
  4. class ifc_podcast : public Dispatchable
  5. {
  6. protected:
  7. ifc_podcast() {}
  8. ~ifc_podcast() {}
  9. public:
  10. //int GetUrl(wchar_t *str, size_t len);
  11. int GetTitle(wchar_t *str, size_t len);
  12. //int GetLink(wchar_t *str, size_t len);
  13. //int GetDescription(wchar_t *str, size_t len);
  14. size_t GetNumArticles();
  15. // TODO: ifc_article *EnumArticle(size_t i);
  16. enum
  17. {
  18. IFC_PODCAST_GETURL = 0,
  19. IFC_PODCAST_GETTITLE = 1,
  20. IFC_PODCAST_GETLINK = 2,
  21. IFC_PODCAST_GETDESCRIPTION = 3,
  22. IFC_PODCAST_GETNUMARTICLES = 4,
  23. };
  24. };
  25. inline int ifc_podcast::GetTitle(wchar_t *str, size_t len)
  26. {
  27. return _call(IFC_PODCAST_GETTITLE, (int)1, str, len);
  28. }
  29. inline size_t ifc_podcast::GetNumArticles()
  30. {
  31. return _call(IFC_PODCAST_GETNUMARTICLES, (size_t)0);
  32. }
  33. #endif