aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/urlmanager.h
blob: 6483dd5c11b7c155224296823436f10f6870f93c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include "api_urlmanager.h"
#include <vector>

class URLManager : public api_urlmanager
{
public:
	static const char *getServiceName() { return "URL Manager API"; }
	static const GUID getServiceGuid() { return urlManagerGUID; }
public:
	const wchar_t *GetURL(const wchar_t *urlid);
//	int Parse(const wchar_t *filename);

private:
	void AddURL(const wchar_t *urlid, const wchar_t *url);
	struct URLS
	{
		wchar_t *urlid;
		wchar_t *url;
	};
	typedef std::vector<URLS> URLList;
	URLList urls;

protected:
	RECVS_DISPATCH;
};