1
0

urlmanager.h 539 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "api_urlmanager.h"
  3. #include <vector>
  4. class URLManager : public api_urlmanager
  5. {
  6. public:
  7. static const char *getServiceName() { return "URL Manager API"; }
  8. static const GUID getServiceGuid() { return urlManagerGUID; }
  9. public:
  10. const wchar_t *GetURL(const wchar_t *urlid);
  11. // int Parse(const wchar_t *filename);
  12. private:
  13. void AddURL(const wchar_t *urlid, const wchar_t *url);
  14. struct URLS
  15. {
  16. wchar_t *urlid;
  17. wchar_t *url;
  18. };
  19. typedef std::vector<URLS> URLList;
  20. URLList urls;
  21. protected:
  22. RECVS_DISPATCH;
  23. };