Public Member Functions | Static Public Member Functions | List of all members
BUrl Class Reference

Undocumented class. More...

Inherits BArchivable.

Public Member Functions

 BUrl (const char *url)
 Undocumented public method. More...
 
 BUrl (BMessage *archive)
 Undocumented public method. More...
 
 BUrl (const BUrl &other)
 Undocumented public method. More...
 
 BUrl (const BUrl &base, const BString &relative)
 Undocumented public method. More...
 
 BUrl (const BPath &path)
 Undocumented public method. More...
 
 BUrl ()
 Undocumented public method. More...
 
virtual ~BUrl ()
 Undocumented public method. More...
 
virtual status_t Archive (BMessage *into, bool deep=true) const
 Archive the object into a BMessage. More...
 
const BStringAuthority () const
 Undocumented public method. More...
 
const BStringFragment () const
 Undocumented public method. More...
 
bool HasAuthority () const
 Undocumented public method. More...
 
bool HasFragment () const
 Undocumented public method. More...
 
bool HasHost () const
 Undocumented public method. More...
 
bool HasPassword () const
 Undocumented public method. More...
 
bool HasPath () const
 Undocumented public method. More...
 
bool HasPort () const
 Undocumented public method. More...
 
bool HasPreferredApplication () const
 Undocumented public method. More...
 
bool HasProtocol () const
 Undocumented public method. More...
 
bool HasRequest () const
 Undocumented public method. More...
 
bool HasUserInfo () const
 Undocumented public method. More...
 
bool HasUserName () const
 Undocumented public method. More...
 
const BStringHost () const
 Undocumented public method. More...
 
status_t IDNAToAscii ()
 Undocumented public method. More...
 
status_t IDNAToUnicode ()
 Undocumented public method. More...
 
bool IsValid () const
 Undocumented public method. More...
 
status_t OpenWithPreferredApplication (bool onProblemAskUser=true) const
 Undocumented public method. More...
 
 operator const char * () const
 Undocumented public method. More...
 
bool operator!= (BUrl &other) const
 Undocumented public method. More...
 
const BUrloperator= (const BUrl &other)
 Undocumented public method. More...
 
const BUrloperator= (const BString &string)
 Undocumented public method. More...
 
const BUrloperator= (const char *string)
 Undocumented public method. More...
 
bool operator== (BUrl &other) const
 Undocumented public method. More...
 
const BStringPassword () const
 Undocumented public method. More...
 
const BStringPath () const
 Undocumented public method. More...
 
int Port () const
 Undocumented public method. More...
 
BString PreferredApplication () const
 Undocumented public method. More...
 
const BStringProtocol () const
 Undocumented public method. More...
 
const BStringRequest () const
 Undocumented public method. More...
 
void SetAuthority (const BString &authority)
 Undocumented public method. More...
 
BUrlSetFragment (const BString &fragment)
 Undocumented public method. More...
 
BUrlSetHost (const BString &host)
 Undocumented public method. More...
 
BUrlSetPassword (const BString &password)
 Undocumented public method. More...
 
BUrlSetPath (const BString &path)
 Undocumented public method. More...
 
BUrlSetPort (int port)
 Undocumented public method. More...
 
BUrlSetProtocol (const BString &scheme)
 Undocumented public method. More...
 
BUrlSetRequest (const BString &request)
 Undocumented public method. More...
 
BUrlSetUrlString (const BString &url)
 Undocumented public method. More...
 
BUrlSetUserName (const BString &user)
 Undocumented public method. More...
 
void UrlDecode (bool strict=false)
 Undocumented public method. More...
 
void UrlEncode (bool strict=false)
 Undocumented public method. More...
 
const BStringUrlString () const
 Undocumented public method. More...
 
const BStringUserInfo () const
 Undocumented public method. More...
 
const BStringUserName () const
 Undocumented public method. More...
 
- Public Member Functions inherited from BArchivable
 BArchivable (BMessage *from)
 Constructor. Does important behind-the-scenes work in the unarchiving process. More...
 
 BArchivable ()
 Constructor. Does nothing. More...
 
virtual ~BArchivable ()
 Destructor. Does nothing. More...
 
virtual status_t AllArchived (BMessage *archive) const
 Method relating to the use of BArchiver. More...
 
virtual status_t AllUnarchived (const BMessage *archive)
 Method relating to the use of BUnarchiver. More...
 
virtual status_t Perform (perform_code d, void *arg)
 Perform some action (Internal method defined for binary compatibility purposes).
 

Static Public Member Functions

static BArchivableInstantiate (BMessage *archive)
 Undocumented public method. More...
 
static BString UrlDecode (const BString &url, bool strict=false)
 Undocumented public method. More...
 
static BString UrlEncode (const BString &url, bool strict=false, bool directory=false)
 Undocumented public method. More...
 
- Static Public Member Functions inherited from BArchivable
static BArchivableInstantiate (BMessage *archive)
 Static member to restore objects from messages. More...
 

Detailed Description

Undocumented class.

Since
Haiku R1

Constructor & Destructor Documentation

◆ BUrl() [1/6]

BUrl::BUrl ( const char *  url)

Undocumented public method.

Parameters
urlUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BUrl() [2/6]

BUrl::BUrl ( BMessage archive)

Undocumented public method.

Parameters
archiveUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BUrl() [3/6]

BUrl::BUrl ( const BUrl other)

Undocumented public method.

Parameters
otherUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BUrl() [4/6]

BUrl::BUrl ( const BUrl base,
const BString relative 
)

Undocumented public method.

Parameters
baseUndocumented
relativeUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BUrl() [5/6]

BUrl::BUrl ( const BPath path)

Undocumented public method.

Parameters
pathUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BUrl() [6/6]

BUrl::BUrl ( )

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ ~BUrl()

BUrl::~BUrl ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Member Function Documentation

◆ Archive()

virtual status_t BUrl::Archive ( BMessage into,
bool  deep = true 
) const
virtual

Archive the object into a BMessage.

You should call this method from your derived implementation as it adds the data needed to instantiate your object to the message.

Parameters
intoThe message you store your object in.
deepIf true, all children of this object should be archived as well.
Return values
B_OKThe archive operation was successful.
B_BAD_VALUENULL archive message.
B_ERRORThe archive operation failed.
Since
BeOS R3

Reimplemented from BArchivable.

◆ Authority()

const BString & BUrl::Authority ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Fragment()

const BString & BUrl::Fragment ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasAuthority()

bool BUrl::HasAuthority ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasFragment()

bool BUrl::HasFragment ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasHost()

bool BUrl::HasHost ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasPassword()

bool BUrl::HasPassword ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasPath()

bool BUrl::HasPath ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasPort()

bool BUrl::HasPort ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasPreferredApplication()

bool BUrl::HasPreferredApplication ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasProtocol()

bool BUrl::HasProtocol ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasRequest()

bool BUrl::HasRequest ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasUserInfo()

bool BUrl::HasUserInfo ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ HasUserName()

bool BUrl::HasUserName ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Host()

const BString & BUrl::Host ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ IDNAToAscii()

status_t BUrl::IDNAToAscii ( )

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ IDNAToUnicode()

status_t BUrl::IDNAToUnicode ( )

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Instantiate()

static static BArchivable * BUrl::Instantiate ( BMessage archive)
static

Undocumented public method.

Parameters
archiveUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ IsValid()

bool BUrl::IsValid ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ OpenWithPreferredApplication()

status_t BUrl::OpenWithPreferredApplication ( bool  onProblemAskUser = true) const

Undocumented public method.

Parameters
onProblemAskUserUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ operator const char *()

BUrl::operator const char * ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ operator!=()

bool BUrl::operator!= ( BUrl other) const

Undocumented public method.

Parameters
otherUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ operator=() [1/3]

const BUrl & BUrl::operator= ( const BUrl other)

Undocumented public method.

Parameters
otherUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ operator=() [2/3]

const BUrl & BUrl::operator= ( const BString string)

Undocumented public method.

Parameters
stringUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ operator=() [3/3]

const BUrl & BUrl::operator= ( const char *  string)

Undocumented public method.

Parameters
stringUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ operator==()

bool BUrl::operator== ( BUrl other) const

Undocumented public method.

Parameters
otherUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Password()

const BString & BUrl::Password ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Path()

const BString & BUrl::Path ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Port()

int BUrl::Port ( void  ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ PreferredApplication()

BString BUrl::PreferredApplication ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Protocol()

const BString & BUrl::Protocol ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Request()

const BString & BUrl::Request ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ SetAuthority()

void BUrl::SetAuthority ( const BString authority)

Undocumented public method.

Parameters
authorityUndocumented
Since
Haiku R1

◆ SetFragment()

BUrl & BUrl::SetFragment ( const BString fragment)

Undocumented public method.

Parameters
fragmentUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ SetHost()

BUrl & BUrl::SetHost ( const BString host)

Undocumented public method.

Parameters
hostUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ SetPassword()

BUrl & BUrl::SetPassword ( const BString password)

Undocumented public method.

Parameters
passwordUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ SetPath()

BUrl & BUrl::SetPath ( const BString path)

Undocumented public method.

Parameters
pathUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ SetPort()

BUrl & BUrl::SetPort ( int  port)

Undocumented public method.

Parameters
portUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ SetProtocol()

BUrl & BUrl::SetProtocol ( const BString scheme)

Undocumented public method.

Parameters
schemeUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ SetRequest()

BUrl & BUrl::SetRequest ( const BString request)

Undocumented public method.

Parameters
requestUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ SetUrlString()

BUrl & BUrl::SetUrlString ( const BString url)

Undocumented public method.

Parameters
urlUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ SetUserName()

BUrl & BUrl::SetUserName ( const BString user)

Undocumented public method.

Parameters
userUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ UrlDecode() [1/2]

void BUrl::UrlDecode ( bool  strict = false)

Undocumented public method.

Parameters
strictUndocumented
Since
Haiku R1

◆ UrlDecode() [2/2]

static static BString BUrl::UrlDecode ( const BString url,
bool  strict = false 
)
static

Undocumented public method.

Parameters
urlUndocumented
strictUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ UrlEncode() [1/2]

void BUrl::UrlEncode ( bool  strict = false)

Undocumented public method.

Parameters
strictUndocumented
Since
Haiku R1

◆ UrlEncode() [2/2]

static static BString BUrl::UrlEncode ( const BString url,
bool  strict = false,
bool  directory = false 
)
static

Undocumented public method.

Parameters
urlUndocumented
strictUndocumented
directoryUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ UrlString()

const BString & BUrl::UrlString ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ UserInfo()

const BString & BUrl::UserInfo ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ UserName()

const BString & BUrl::UserName ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1