Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Public Attributes
CPPageDlg Class Reference

#include <PropertyDlg.h>

Collaboration diagram for CPPageDlg:
Collaboration graph

List of all members.

Public Types

enum  { IDD = IDD_PPAGE_LINK }

Public Member Functions

LRESULT OnInitDialog (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)

Public Attributes

nsString mType
nsString mURL

Detailed Description

Definition at line 42 of file PropertyDlg.h.

Member Enumeration Documentation

anonymous enum

Definition at line 45 of file PropertyDlg.h.

Member Function Documentation

LRESULT CPPageDlg::OnInitDialog ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 

Definition at line 98 of file PropertyDlg.cpp.

    nsAutoString desc;
    if (!mType.IsEmpty())
        nsresult rv;
        nsCOMPtr<nsIMIMEService> mimeService;
        mimeService = do_GetService(";1", &rv);
        NS_ENSURE_TRUE(mimeService, NS_ERROR_FAILURE);

        nsCOMPtr<nsIMIMEInfo> mimeInfo;
        nsCAutoString contentType;
        // MIME Types are ASCII.
        LossyCopyUTF16toASCII(mType, contentType);
        mimeService->GetFromTypeAndExtension(contentType, EmptyCString(), getter_AddRefs(mimeInfo));
        if (mimeInfo)

    SetDlgItemText(IDC_PROTOCOL, W2T(desc.get()));
    SetDlgItemText(IDC_TYPE, W2T(mType.get()));
    SetDlgItemText(IDC_ADDRESS, W2T(mURL.get()));

    return 1;

Here is the call graph for this function:

Member Data Documentation

Definition at line 47 of file PropertyDlg.h.

Definition at line 48 of file PropertyDlg.h.

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