OSDN Git Service

WebGUIのレスポンスが悪かったのを修正
[peercast-im/PeerCastIM.git] / PeerCast.root / PeerCast / core / common / url.h
1 // ------------------------------------------------
2 // File : url.h
3 // Date: 20-feb-2004
4 // Author: giles
5 //
6 // (c) 2002-4 peercast.org
7 // ------------------------------------------------
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 // GNU General Public License for more details.
17 // ------------------------------------------------
18
19 #ifndef _URL_H
20 #define _URL_H
21
22 #include "channel.h"
23
24 // ------------------------------------------------
25 class URLSource : public ChannelSource
26 {
27 public:
28         URLSource(const char *url) 
29         :inputStream(NULL)
30         {
31                 baseurl.set(url);
32         }
33
34         ::String streamURL(Channel *, const char *);    
35
36         virtual void stream(Channel *);
37
38         virtual int getSourceRate();
39
40
41         Stream          *inputStream;
42         ::String        baseurl;
43 };
44
45
46
47
48 #endif
49