PProcess::HostSystemURLHandlerInfo Class Reference

#include <pprocess.h>

List of all members.

Public Member Functions

 HostSystemURLHandlerInfo ()
 HostSystemURLHandlerInfo (const PString &_type)
void SetIcon (const PString &icon)
PString GetIcon () const
void SetCommand (const PString &key, const PString &command)
PString GetCommand (const PString &key) const
bool GetFromSystem ()
bool CheckIfRegistered ()
bool Register ()

Static Public Member Functions

static bool RegisterTypes (const PString &_types, bool force=true)

Public Attributes

PString type


Detailed Description

This class can be used to register various URL types with the host operating system so that URLs will automatically launch the correct application.

The simplest way to use these functions is to add the code similar to the following to the Main function of the PProcess descendant

PString urlTypes("sip\nh323\nsips\nh323s"); if (!PProcessHostSystemURLHandlerInfo::RegisterTypes(urlTypes, false)) PProcess::HostSystemURLHandlerInfo::RegisterTypes(urlTypes, true);

This will check to see if the URL types sip, h323, sips and h323s are registered with the operating system to launch the current application. If they are not, it will rewrite the system configuraton so that they will.

For more information on the Windows implementation, see the following link:

http://msdn2.microsoft.com/en-us/library/aa767914.aspx


Constructor & Destructor Documentation

PProcess::HostSystemURLHandlerInfo::HostSystemURLHandlerInfo (  )  [inline]

PProcess::HostSystemURLHandlerInfo::HostSystemURLHandlerInfo ( const PString _type  )  [inline]


Member Function Documentation

static bool PProcess::HostSystemURLHandlerInfo::RegisterTypes ( const PString _types,
bool  force = true 
) [static]

void PProcess::HostSystemURLHandlerInfo::SetIcon ( const PString icon  ) 

PString PProcess::HostSystemURLHandlerInfo::GetIcon (  )  const

void PProcess::HostSystemURLHandlerInfo::SetCommand ( const PString key,
const PString command 
)

PString PProcess::HostSystemURLHandlerInfo::GetCommand ( const PString key  )  const

bool PProcess::HostSystemURLHandlerInfo::GetFromSystem (  ) 

bool PProcess::HostSystemURLHandlerInfo::CheckIfRegistered (  ) 

bool PProcess::HostSystemURLHandlerInfo::Register (  ) 


Member Data Documentation

PString PProcess::HostSystemURLHandlerInfo::type


The documentation for this class was generated from the following file:
Generated on Mon Feb 23 01:57:57 2009 for PTLib by  doxygen 1.5.1