home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ABDirPropertyDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.1 KB  |  69 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.    ABDirPropertyDlg.h -- class definition for ABDirPropertyDlg
  20.    Created: Tao Cheng <tao@netscape.com>, 10-nov-97
  21.  */
  22.  
  23. #ifndef _ABDIRPROPERTYDLG_H_
  24. #define _ABDIRPROPERTYDLG_H_
  25.  
  26. #include "PropertySheetDialog.h"
  27. #include "addrbook.h"
  28.  
  29. typedef void (*ABDirPropertyCBProc)(DIR_Server *dir,
  30.                                     void       *callData);
  31.  
  32. class XFE_ABDirPropertyDlg: public XFE_PropertySheetDialog {
  33. public:
  34.     XFE_ABDirPropertyDlg(Widget    parent,
  35.                          char     *name,
  36.                          Boolean   modal,
  37.                          MWContext *context);
  38.     
  39.     virtual ~XFE_ABDirPropertyDlg();
  40.  
  41. #if defined(USE_ABCOM)
  42.     void    setPane(MSG_Pane *pane);
  43. #endif /* USE_ABCOM */
  44.     virtual void setDlgValues(DIR_Server* dir);
  45.     DIR_Server*  getDir() { return m_dir;}
  46.     void         registerCB(ABDirPropertyCBProc proc, void* callData);
  47.  
  48. protected:
  49.     virtual void apply();
  50.  
  51. private:
  52.     DIR_Server          *m_dir;
  53.     ABDirPropertyCBProc  m_proc;
  54.     void                *m_callData;
  55. #if defined(USE_ABCOM)
  56.     MSG_Pane            *m_pane;
  57. #endif /* USE_ABCOM */
  58. }; /* XFE_ABDirPropertyDlg */
  59.  
  60. /* C API
  61.  */
  62. extern "C" void fe_showABDirPropertyDlg(Widget               parent,
  63.                                         MWContext           *context,
  64.                                         DIR_Server          *dir,
  65.                                         ABDirPropertyCBProc  proc,
  66.                                         void                *callData);
  67.  
  68. #endif /* _ABDIRPROPERTYDLG_H_ */
  69.