00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef SkStream_Win_DEFINED
00018 #define SkStream_Win_DEFINED
00019
00020 #ifndef SK_BUILD_FOR_WIN
00021 #error "only valid for windows and wince builds"
00022 #endif
00023
00024 #ifndef SkStream_DEFINED
00025 #include "SkStream.h"
00026 #endif
00027 #include "SkString.h"
00028 #include "Wininet.h"
00029
00031 class SkURLStream : public SkStream {
00032 public:
00033 SkURLStream(const char url[] = NULL);
00034 virtual ~SkURLStream();
00035
00039 void setURL(const char url[]);
00040
00041
00042 virtual bool rewind();
00043 virtual size_t read(void* buffer, size_t size);
00044
00045 private:
00046 SkString fURL;
00047 HINTERNET fConnection;
00048 HINTERNET fURLStream;
00049 };
00050
00052 #endif // SkStream_Win_DEFINED
00053