Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

126 lines
4.2 KiB

/*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
FaxPersonalProfile.h
Abstract:
Definition of Personal Profile Class
Author:
Iv Garber (IvG) May, 2000
Revision History:
--*/
#ifndef __FAXPERSONALPROFILE_H_
#define __FAXPERSONALPROFILE_H_
#include "resource.h"
#include "FaxCommon.h"
//
//================ HIDDEN INTERFACE OF PERSONAL PROFILE ===========================
//
MIDL_INTERFACE("41E2D834-3F09-4860-A426-1698E9ECDC72")
IFaxPersonalProfileInner : public IUnknown
{
STDMETHOD(GetProfileData)(/*[out, retval]*/ FAX_PERSONAL_PROFILE *pProfileData) = 0;
STDMETHOD(PutProfileData)(/*[in]*/ FAX_PERSONAL_PROFILE *pProfileData) = 0;
};
/////////////////////////////////////////////////////////////////////////////
// CFaxPersonalProfile
class ATL_NO_VTABLE CFaxPersonalProfile :
public CComObjectRootEx<CComSingleThreadModel>,
public ISupportErrorInfo,
public IDispatchImpl<IFaxPersonalProfile, &IID_IFaxPersonalProfile, &LIBID_FAXCOMEXLib>,
public IFaxPersonalProfileInner
{
public:
CFaxPersonalProfile()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_FAXPERSONALPROFILE)
DECLARE_NOT_AGGREGATABLE(CFaxPersonalProfile)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CFaxPersonalProfile)
COM_INTERFACE_ENTRY(IFaxPersonalProfile)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(ISupportErrorInfo)
COM_INTERFACE_ENTRY(IFaxPersonalProfileInner)
END_COM_MAP()
// ISupportsErrorInfo
STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
// IFaxPersonalProfile
public:
static HRESULT Create(IFaxPersonalProfile **ppFaxPersonalProfile);
STDMETHOD(GetProfileData)(/*[out, retval]*/ FAX_PERSONAL_PROFILE *pProfileData);
STDMETHOD(PutProfileData)(/*[in]*/ FAX_PERSONAL_PROFILE *pProfileData);
STDMETHOD(SaveDefaultSender)();
STDMETHOD(LoadDefaultSender)();
STDMETHOD(get_BillingCode)(/*[out, retval]*/ BSTR *pbstrBillingCode);
STDMETHOD(put_BillingCode)(/*[in]*/ BSTR bstrBillingCode);
STDMETHOD(get_City)(/*[out, retval]*/ BSTR *pbstrCity);
STDMETHOD(put_City)(/*[in]*/ BSTR bstrCity);
STDMETHOD(get_Company)(/*[out, retval]*/ BSTR *pbstrCompany);
STDMETHOD(put_Company)(/*[in]*/ BSTR bstrCompany);
STDMETHOD(get_Country)(/*[out, retval]*/ BSTR *pbstrCountry);
STDMETHOD(put_Country)(/*[in]*/ BSTR bstrCountry);
STDMETHOD(get_Department)(/*[out, retval]*/ BSTR *pbstrDepartment);
STDMETHOD(put_Department)(/*[in]*/ BSTR bstrDepartment);
STDMETHOD(get_Email)(/*[out, retval]*/ BSTR *pbstrEmail);
STDMETHOD(put_Email)(/*[in]*/ BSTR bstrEmail);
STDMETHOD(get_FaxNumber)(/*[out, retval]*/ BSTR *pbstrFaxNumber);
STDMETHOD(put_FaxNumber)(/*[in]*/ BSTR bstrFaxNumber);
STDMETHOD(get_HomePhone)(/*[out, retval]*/ BSTR *pbstrHomePhone);
STDMETHOD(put_HomePhone)(/*[in]*/ BSTR bstrHomePhone);
STDMETHOD(get_Name)(/*[out, retval]*/ BSTR *pbstrName);
STDMETHOD(put_Name)(/*[in]*/ BSTR bstrName);
STDMETHOD(get_TSID)(/*[out, retval]*/ BSTR *pbstrTSID);
STDMETHOD(put_TSID)(/*[in]*/ BSTR bstrTSID);
STDMETHOD(get_OfficePhone)(/*[out, retval]*/ BSTR *pbstrOfficePhone);
STDMETHOD(put_OfficePhone)(/*[in]*/ BSTR bstrOfficePhone);
STDMETHOD(get_OfficeLocation)(/*[out, retval]*/ BSTR *pbstrOfficeLocation);
STDMETHOD(put_OfficeLocation)(/*[in]*/ BSTR bstrOfficeLocation);
STDMETHOD(get_State)(/*[out, retval]*/ BSTR *pbstrState);
STDMETHOD(put_State)(/*[in]*/ BSTR bstrState);
STDMETHOD(get_StreetAddress)(/*[out, retval]*/ BSTR *pbstrStreetAddress);
STDMETHOD(put_StreetAddress)(/*[in]*/ BSTR bstrStreetAddress);
STDMETHOD(get_Title)(/*[out, retval]*/ BSTR *pbstrTitle);
STDMETHOD(put_Title)(/*[in]*/ BSTR bstrTitle);
STDMETHOD(get_ZipCode)(/*[out, retval]*/ BSTR *pbstrZipCode);
STDMETHOD(put_ZipCode)(/*[in]*/ BSTR bstrZipCode);
private:
CComBSTR m_bstrOfficeLocation;
CComBSTR m_bstrStreetAddress;
CComBSTR m_bstrOfficePhone;
CComBSTR m_bstrBillingCode;
CComBSTR m_bstrDepartment;
CComBSTR m_bstrFaxNumber;
CComBSTR m_bstrHomePhone;
CComBSTR m_bstrCompany;
CComBSTR m_bstrCountry;
CComBSTR m_bstrZipCode;
CComBSTR m_bstrEmail;
CComBSTR m_bstrState;
CComBSTR m_bstrTitle;
CComBSTR m_bstrCity;
CComBSTR m_bstrName;
CComBSTR m_bstrTSID;
};
#endif //__FAXPERSONALPROFILE_H_