BUrl::BUrl(const char* url) : fUrlString(), fProtocol(), fUser(), fPassword(), fHost(), fPort(0), fPath(), fRequest(), fHasAuthority(false) { SetUrlString(url); }
BUrl::BUrl(const BPath& path) : fUrlString(), fProtocol(), fUser(), fPassword(), fHost(), fPort(0), fPath(), fRequest(), fHasHost(false), fHasFragment(false) { SetUrlString(UrlEncode(path.Path(), true, true)); SetProtocol("file"); }
BUrl::BUrl(BMessage* archive) : fUrlString(), fProtocol(), fUser(), fPassword(), fHost(), fPort(0), fPath(), fRequest(), fHasAuthority(false) { BString url; if (archive->FindString(kArchivedUrl, &url) == B_OK) SetUrlString(url); }
BUrl::BUrl(BMessage* archive) : fUrlString(), fProtocol(), fUser(), fPassword(), fHost(), fPort(0), fPath(), fRequest(), fHasHost(false), fHasFragment(false) { BString url; if (archive->FindString(kArchivedUrl, &url) == B_OK) SetUrlString(url); else _ResetFields(); }
const BUrl& BUrl::operator=(const char* string) { SetUrlString(string); return *this; }