Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions
IHTMLLocationImpl< T > Class Template Reference

#include <IHTMLLocationImpl.h>

Inheritance diagram for IHTMLLocationImpl< T >:
Inheritance graph
[legend]
Collaboration diagram for IHTMLLocationImpl< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual HRESULT STDMETHODCALLTYPE put_href (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_href (BSTR *p)
virtual HRESULT STDMETHODCALLTYPE put_protocol (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_protocol (BSTR *p)
virtual HRESULT STDMETHODCALLTYPE put_host (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_host (BSTR *p)
virtual HRESULT STDMETHODCALLTYPE put_hostname (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_hostname (BSTR *p)
virtual HRESULT STDMETHODCALLTYPE put_port (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_port (BSTR *p)
virtual HRESULT STDMETHODCALLTYPE put_pathname (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_pathname (BSTR *p)
virtual HRESULT STDMETHODCALLTYPE put_search (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_search (BSTR *p)
virtual HRESULT STDMETHODCALLTYPE put_hash (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_hash (BSTR *p)
virtual HRESULT STDMETHODCALLTYPE reload (VARIANT_BOOL flag)
virtual HRESULT STDMETHODCALLTYPE replace (BSTR bstr)
virtual HRESULT STDMETHODCALLTYPE assign (BSTR bstr)
virtual HRESULT STDMETHODCALLTYPE toString (BSTR *string)

Protected Member Functions

virtual nsresult GetDOMLocation (nsIDOMLocation **aLocation)=0

Detailed Description

template<class T>
class IHTMLLocationImpl< T >

Definition at line 58 of file IHTMLLocationImpl.h.


Member Function Documentation

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::assign ( BSTR  bstr) [inline, virtual]

Definition at line 164 of file IHTMLLocationImpl.h.

    {
        nsCOMPtr<nsIDOMLocation> location;
        if (NS_FAILED(GetDOMLocation(getter_AddRefs(location))) || !location)
            return E_UNEXPECTED;
        nsAutoString value(bstr);
        return NS_SUCCEEDED(location->Assign(value)) ? S_OK : E_FAIL;
    }
template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::get_hash ( BSTR *  p) [inline, virtual]

Definition at line 142 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::get_host ( BSTR *  p) [inline, virtual]

Definition at line 92 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::get_hostname ( BSTR *  p) [inline, virtual]

Definition at line 102 of file IHTMLLocationImpl.h.

    {
        IHTMLLOCATION_GET_IMPL(Hostname);
    }
template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::get_href ( BSTR *  p) [inline, virtual]

Definition at line 72 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::get_pathname ( BSTR *  p) [inline, virtual]

Definition at line 122 of file IHTMLLocationImpl.h.

    {
        IHTMLLOCATION_GET_IMPL(Pathname);
    }
template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::get_port ( BSTR *  p) [inline, virtual]

Definition at line 112 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::get_protocol ( BSTR *  p) [inline, virtual]

Definition at line 82 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::get_search ( BSTR *  p) [inline, virtual]

Definition at line 132 of file IHTMLLocationImpl.h.

template<class T>
virtual nsresult IHTMLLocationImpl< T >::GetDOMLocation ( nsIDOMLocation **  aLocation) [protected, pure virtual]

Implemented in IELocation.

Here is the caller graph for this function:

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::put_hash ( BSTR  v) [inline, virtual]

Definition at line 137 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::put_host ( BSTR  v) [inline, virtual]

Definition at line 87 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::put_hostname ( BSTR  v) [inline, virtual]

Definition at line 97 of file IHTMLLocationImpl.h.

    {
        IHTMLLOCATION_PUT_IMPL(Hostname);
    }
template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::put_href ( BSTR  v) [inline, virtual]

Definition at line 67 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::put_pathname ( BSTR  v) [inline, virtual]

Definition at line 117 of file IHTMLLocationImpl.h.

    {
        IHTMLLOCATION_PUT_IMPL(Pathname);
    }
template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::put_port ( BSTR  v) [inline, virtual]

Definition at line 107 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::put_protocol ( BSTR  v) [inline, virtual]

Definition at line 77 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::put_search ( BSTR  v) [inline, virtual]

Definition at line 127 of file IHTMLLocationImpl.h.

template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::reload ( VARIANT_BOOL  flag) [inline, virtual]

Definition at line 147 of file IHTMLLocationImpl.h.

    {
        nsCOMPtr<nsIDOMLocation> location;
        if (NS_FAILED(GetDOMLocation(getter_AddRefs(location))) || !location)
            return E_UNEXPECTED;
        return NS_SUCCEEDED(location->Reload(flag)) ? S_OK : E_FAIL;
    }
template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::replace ( BSTR  bstr) [inline, virtual]

Definition at line 155 of file IHTMLLocationImpl.h.

    {
        nsCOMPtr<nsIDOMLocation> location;
        if (NS_FAILED(GetDOMLocation(getter_AddRefs(location))) || !location)
            return E_UNEXPECTED;
        nsAutoString value(bstr);
        return NS_SUCCEEDED(location->Replace(value)) ? S_OK : E_FAIL;
    }
template<class T>
virtual HRESULT STDMETHODCALLTYPE IHTMLLocationImpl< T >::toString ( BSTR *  string) [inline, virtual]

Definition at line 173 of file IHTMLLocationImpl.h.

    {
        if (!string) return E_INVALIDARG;
        nsCOMPtr<nsIDOMLocation> location;
        if (NS_FAILED(GetDOMLocation(getter_AddRefs(location))) || !location)
            return E_UNEXPECTED;
        nsAutoString value;
        NS_ENSURE_SUCCESS(location->ToString(value), E_UNEXPECTED);
        *string = ::SysAllocString(value.get());
        return (*string) ? S_OK : E_OUTOFMEMORY;
    }

The documentation for this class was generated from the following file: