using wxURL now enforces linking http.o, ftp.o and sckfile.o
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -9,11 +9,12 @@ wxWindows 2 Change Log
|
|||||||
|
|
||||||
wxBase:
|
wxBase:
|
||||||
|
|
||||||
|
- fixed problem with wxURL when using static version of the library
|
||||||
|
- wxZipFSHandler::FindFirst() and FindNext() now correctly list directories
|
||||||
- wxMimeTypesManager now can create file associations too
|
- wxMimeTypesManager now can create file associations too
|
||||||
- wxCopyFile() respects the file permissions (Roland Scholz)
|
- wxCopyFile() respects the file permissions (Roland Scholz)
|
||||||
- wxFTP::GetFileSize() added (S<>ren Erland Vest<73>)
|
- wxFTP::GetFileSize() added (S<>ren Erland Vest<73>)
|
||||||
- wxDateTime::IsSameDate() bug fixed
|
- wxDateTime::IsSameDate() bug fixed
|
||||||
- wxZipFSHandler::FindFirst() and FindNext() now correctly list directories
|
|
||||||
|
|
||||||
All (GUI):
|
All (GUI):
|
||||||
|
|
||||||
|
@@ -96,7 +96,15 @@ public: \
|
|||||||
static wxProtoInfo g_proto_##class;
|
static wxProtoInfo g_proto_##class;
|
||||||
|
|
||||||
#define IMPLEMENT_PROTOCOL(class, name, serv, host) \
|
#define IMPLEMENT_PROTOCOL(class, name, serv, host) \
|
||||||
wxProtoInfo class::g_proto_##class(name, serv, host, CLASSINFO(class));
|
wxProtoInfo class::g_proto_##class(name, serv, host, CLASSINFO(class)); \
|
||||||
|
bool wxProtocolUse##class = TRUE;
|
||||||
|
|
||||||
|
#define USE_PROTOCOL(class) \
|
||||||
|
extern bool wxProtocolUse##class ; \
|
||||||
|
static struct wxProtocolUserFor##class \
|
||||||
|
{ \
|
||||||
|
wxProtocolUserFor##class() { wxProtocolUse##class = TRUE; } \
|
||||||
|
} wxProtocolDoUse##class;
|
||||||
|
|
||||||
class WXDLLEXPORT wxProtoInfo : public wxObject
|
class WXDLLEXPORT wxProtoInfo : public wxObject
|
||||||
{
|
{
|
||||||
|
@@ -35,6 +35,11 @@ IMPLEMENT_CLASS(wxURL, wxObject)
|
|||||||
// Protocols list
|
// Protocols list
|
||||||
wxProtoInfo *wxURL::ms_protocols = NULL;
|
wxProtoInfo *wxURL::ms_protocols = NULL;
|
||||||
|
|
||||||
|
// Enforce linking of protocol classes:
|
||||||
|
USE_PROTOCOL(wxHTTP)
|
||||||
|
USE_PROTOCOL(wxFTP)
|
||||||
|
USE_PROTOCOL(wxFileProto)
|
||||||
|
|
||||||
#if wxUSE_SOCKETS
|
#if wxUSE_SOCKETS
|
||||||
wxHTTP *wxURL::ms_proxyDefault = NULL;
|
wxHTTP *wxURL::ms_proxyDefault = NULL;
|
||||||
bool wxURL::ms_useDefaultProxy = FALSE;
|
bool wxURL::ms_useDefaultProxy = FALSE;
|
||||||
|
Reference in New Issue
Block a user