1998-06-22 21:19:46 +00:00
|
|
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
1998-03-28 02:44:41 +00:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1998-06-22 21:19:46 +00:00
|
|
|
* Copyright (C) 1997 Netscape Communications Corporation. All Rights
|
1998-03-28 02:44:41 +00:00
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
1998-06-22 21:19:46 +00:00
|
|
|
#ifdef MOZ_LOC_INDEP
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
#include "widgetry.h"
|
|
|
|
#include "pw_public.h"
|
|
|
|
|
|
|
|
|
1998-06-22 21:19:46 +00:00
|
|
|
extern Bool winli_QueryNetworkProfile(BOOL bTempProfile);
|
1998-03-28 02:44:41 +00:00
|
|
|
extern Bool FEU_StartGetCriticalFiles(const char * szProfileName, const char * szProfileDir);
|
1998-06-22 21:19:46 +00:00
|
|
|
extern Bool winli_Exit(void);
|
|
|
|
extern void winli_RegisterCallbacks();
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CLoginDlg dialog
|
|
|
|
|
|
|
|
class CRemoteProfileLoginDlg : public CDialog
|
|
|
|
{
|
|
|
|
// Construction
|
|
|
|
public:
|
|
|
|
CRemoteProfileLoginDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
|
|
|
|
// Dialog Data
|
|
|
|
//{{AFX_DATA(CLoginDlg)
|
|
|
|
enum { IDD = IDD_NETPROFILE_LOGIN };
|
|
|
|
CString m_csLoginName;
|
|
|
|
CString m_csPasswordName;
|
|
|
|
//}}AFX_DATA
|
|
|
|
|
|
|
|
void Done();
|
|
|
|
|
|
|
|
// Overrides
|
|
|
|
// ClassWizard generated virtual function overrides
|
|
|
|
//{{AFX_VIRTUAL(CLoginDlg)
|
|
|
|
protected:
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
|
|
//}}AFX_VIRTUAL
|
|
|
|
|
|
|
|
// Implementation
|
|
|
|
protected:
|
1998-06-22 21:19:46 +00:00
|
|
|
void CRemoteProfileLoginDlg::GetPreferenceString(const CString name, CString & buffer, int nID);
|
|
|
|
void CRemoteProfileLoginDlg::SetCheckItemLock(CString csPrefName, int nID) ;
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
// Generated message map functions
|
|
|
|
//{{AFX_MSG(CLoginDlg)
|
|
|
|
virtual void OnOK();
|
|
|
|
void OnAdvanced();
|
|
|
|
BOOL OnInitDialog();
|
|
|
|
|
|
|
|
//virtual BOOL OnInitDialog();
|
|
|
|
//}}AFX_MSG
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
class CAdvRemoteProfileLoginDlg : public CDialog
|
|
|
|
{
|
|
|
|
// Construction
|
|
|
|
public:
|
|
|
|
CAdvRemoteProfileLoginDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
|
|
|
|
// Dialog Data
|
|
|
|
//{{AFX_DATA(CLoginDlg)
|
|
|
|
enum { IDD = IDD_NETPROFILE_ADVANCED };
|
|
|
|
CString m_csLdapAddress;
|
|
|
|
CString m_csLdapBase;
|
|
|
|
CString m_csHttpBase;
|
|
|
|
BOOL m_bBookmarks;
|
|
|
|
BOOL m_bCookies;
|
|
|
|
BOOL m_bFilters;
|
|
|
|
BOOL m_bAddressBook;
|
|
|
|
BOOL m_bSecurity;
|
|
|
|
BOOL m_bJavaSec;
|
1998-06-22 21:19:46 +00:00
|
|
|
BOOL m_bHistory;
|
1998-03-28 02:44:41 +00:00
|
|
|
BOOL m_bPrefs;
|
|
|
|
int m_iLDAP;
|
|
|
|
int m_iHTTP;
|
|
|
|
|
|
|
|
//}}AFX_DATA
|
|
|
|
|
|
|
|
|
|
|
|
// Overrides
|
|
|
|
// ClassWizard generated virtual function overrides
|
|
|
|
//{{AFX_VIRTUAL(CLoginDlg)
|
|
|
|
protected:
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
|
|
//}}AFX_VIRTUAL
|
|
|
|
|
|
|
|
// Implementation
|
|
|
|
protected:
|
1998-06-22 21:19:46 +00:00
|
|
|
void CAdvRemoteProfileLoginDlg::GetPreferenceString(const CString name, CString & buffer, int nID);
|
|
|
|
void CAdvRemoteProfileLoginDlg::GetPreferenceString(const CString name, CString& buffer) ;
|
|
|
|
void CAdvRemoteProfileLoginDlg::GetPreferenceBool(const CString name, BOOL * bPref, int nID);
|
|
|
|
void CAdvRemoteProfileLoginDlg::SetCheckItemLock(CString csPrefName, int nID) ;
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
// Generated message map functions
|
|
|
|
//{{AFX_MSG(CLoginDlg)
|
|
|
|
virtual void OnOK();
|
|
|
|
void OnLDAP();
|
|
|
|
void OnHTTP();
|
|
|
|
BOOL OnInitDialog();
|
|
|
|
//virtual BOOL OnInitDialog();
|
|
|
|
//}}AFX_MSG
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
1998-06-22 21:19:46 +00:00
|
|
|
|
|
|
|
#endif /* MOZ_LOC_INDEP */
|