home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / PrefsLdapProp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.5 KB  |  87 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.    PrefsLdapProp.h -- LDAP Server Properties
  20.    Created: Linda Wei <lwei@netscape.com>, 7-Feb-97.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_prefsldapprop_h
  26. #define _xfe_prefsldapprop_h
  27.  
  28. #include "Dialog.h"
  29. #include "PrefsDialog.h"
  30. #include "dirprefs.h"
  31.  
  32. struct PrefsDataLdapProp
  33. {
  34.     MWContext *context;
  35.  
  36.     Widget   desc_text;
  37.     Widget   server_text;
  38.     Widget   root_text;
  39.     Widget   port_number_text;
  40.     Widget   number_of_hit_text;
  41.     Widget   secure_toggle;
  42. #if 0
  43.     Widget   save_passwd_toggle;
  44. #endif
  45. };
  46.  
  47. class XFE_PrefsLdapPropDialog : public XFE_Dialog
  48. {
  49. public:
  50.  
  51.     // Constructors, Destructors
  52.  
  53.     XFE_PrefsLdapPropDialog(XFE_PrefsDialog               *prefsDialog,
  54.                             XFE_PrefsPageMailNewsAddrBook *addrBookPage,
  55.                             Widget                         parent,    
  56.                             char                          *name,  
  57.                             Boolean                        modal = TRUE);
  58.  
  59.     virtual ~XFE_PrefsLdapPropDialog();
  60.  
  61.     virtual void show();                // pop up dialog
  62.     void initPage(DIR_Server *);        // initialize dialog
  63.     Boolean verifyPage();               // verify page
  64.     MWContext *getContext();            // return the context
  65.     PrefsDataLdapProp *getData();
  66.     DIR_Server *getEditDir();
  67.     XFE_PrefsPageMailNewsAddrBook *getAddrBookPage(); // return the address book page
  68.     XFE_PrefsDialog *getPrefsDialog();  // return the pref dialog               
  69.  
  70.     // Callbacks
  71.  
  72.     static void cb_ok(Widget, XtPointer, XtPointer);
  73.     static void cb_cancel(Widget, XtPointer, XtPointer);
  74.  
  75. private:
  76.  
  77.     // User data
  78.  
  79.     XFE_PrefsDialog               *m_prefsDialog;
  80.     XFE_PrefsPageMailNewsAddrBook *m_addrBookPage;
  81.     PrefsDataLdapProp             *m_prefsDataLdapProp;
  82.     DIR_Server                    *m_server;
  83. };
  84.  
  85. #endif /* _xfe_prefsldapprop_h */
  86.  
  87.