home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / winli.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.3 KB  |  139 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #include "widgetry.h"
  20. #include "pw_public.h"
  21.  
  22.  
  23. extern Bool winli_QueryNetworkProfile(void);
  24. extern Bool FEU_StartGetCriticalFiles(const char * szProfileName, const char * szProfileDir);
  25.  
  26. class CXPProgressDialog: public CDialog
  27. {
  28. public:
  29.     CXPProgressDialog(CWnd* pParent =NULL);
  30.  
  31.     virtual  BOOL OnInitDialog( );
  32.     BOOL PreTranslateMessage( MSG* pMsg );
  33.     CProgressMeter m_ProgressMeter;
  34.     CStatic    m_PercentComplete;
  35.     int32 m_Min;
  36.     int32 m_Max;
  37.     int32 m_Range;
  38.     PW_CancelCallback m_cancelCallback;
  39.     void * m_cancelClosure;
  40.  
  41. protected:
  42.     virtual void OnCancel();
  43.     virtual void DoDataExchange(CDataExchange*);
  44.     afx_msg int OnCreate( LPCREATESTRUCT );
  45.  
  46.     DECLARE_MESSAGE_MAP()
  47. };
  48.  
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CLoginDlg dialog
  52.  
  53. class CRemoteProfileLoginDlg : public CDialog
  54. {
  55. // Construction
  56. public:
  57.     CRemoteProfileLoginDlg(CWnd* pParent = NULL);   // standard constructor
  58.  
  59. // Dialog Data
  60.     //{{AFX_DATA(CLoginDlg)
  61.     enum { IDD = IDD_NETPROFILE_LOGIN };
  62.     CString    m_csLoginName;
  63.     CString m_csPasswordName;
  64.     //}}AFX_DATA
  65.  
  66.     void Done();
  67.  
  68. // Overrides
  69.     // ClassWizard generated virtual function overrides
  70.     //{{AFX_VIRTUAL(CLoginDlg)
  71.     protected:
  72.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  73.     //}}AFX_VIRTUAL
  74.  
  75. // Implementation
  76. protected:
  77.  
  78.     // Generated message map functions
  79.     //{{AFX_MSG(CLoginDlg)
  80.     virtual void OnOK();
  81.     void OnAdvanced();
  82.     BOOL OnInitDialog();
  83.  
  84.     //virtual BOOL OnInitDialog();
  85.     //}}AFX_MSG
  86.     DECLARE_MESSAGE_MAP()
  87.  
  88. private:
  89. };
  90.  
  91. class CAdvRemoteProfileLoginDlg : public CDialog
  92. {
  93. // Construction
  94. public:
  95.     CAdvRemoteProfileLoginDlg(CWnd* pParent = NULL);   // standard constructor
  96.  
  97. // Dialog Data
  98.     //{{AFX_DATA(CLoginDlg)
  99.     enum { IDD = IDD_NETPROFILE_ADVANCED };
  100.     CString    m_csLdapAddress;
  101.     CString m_csLdapBase;
  102.     CString m_csHttpBase;
  103.     BOOL    m_bBookmarks;
  104.     BOOL    m_bCookies;
  105.     BOOL    m_bFilters;
  106.     BOOL    m_bAddressBook;
  107.     BOOL    m_bSecurity;
  108.     BOOL    m_bJavaSec;
  109.     BOOL    m_bNavcntr;
  110.     BOOL    m_bPrefs;
  111.     int        m_iLDAP;
  112.     int        m_iHTTP;
  113.  
  114.     //}}AFX_DATA
  115.  
  116.  
  117. // Overrides
  118.     // ClassWizard generated virtual function overrides
  119.     //{{AFX_VIRTUAL(CLoginDlg)
  120.     protected:
  121.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  122.     //}}AFX_VIRTUAL
  123.  
  124. // Implementation
  125. protected:
  126.  
  127.     // Generated message map functions
  128.     //{{AFX_MSG(CLoginDlg)
  129.     virtual void OnOK();
  130.     void OnLDAP();
  131.     void OnHTTP();
  132.     BOOL OnInitDialog();
  133.     //virtual BOOL OnInitDialog();
  134.     //}}AFX_MSG
  135.     DECLARE_MESSAGE_MAP()
  136.  
  137. private:
  138. };
  139.