home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ABNameFolderDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.3 KB  |  76 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.    ABNameFolderDlg.h -- class definition for ABNameFolderDlg
  20.    Created: Tao Cheng <tao@netscape.com>, 12-nov-96
  21.  */
  22.  
  23. #ifndef _xfe_abnamefolderdlg_h
  24. #define _xfe_abnamefolderdlg_h
  25.  
  26. #include "PropertySheetDialog.h"
  27.  
  28. #include "addrbook.h"
  29.  
  30. class XFE_AddrBookView;
  31. // 
  32. class XFE_ABNameFolderDlg: public XFE_PropertySheetDialog {
  33. public:
  34.     XFE_ABNameFolderDlg(Widget    parent,
  35.                         char     *name,
  36.                         Boolean   modal,
  37.                         MWContext *context);
  38. #if defined(USE_ABCOM)
  39.     XFE_ABNameFolderDlg(MSG_Pane  *personPane,
  40.                         MWContext *context);
  41.     void setDlgValues(MSG_Pane *pane);
  42. #endif /* USE_ABCOM */
  43.   virtual ~XFE_ABNameFolderDlg();
  44.  
  45.   //
  46.   virtual void setDlgValues(ABID entry, Boolean newUser);
  47.   virtual void setDlgValues(ABID entry, PersonEntry* pPerson, Boolean newUser);
  48.  
  49.   //
  50.   Boolean           IsNewUser() { return m_newUser;}
  51.   ABID              getEntryID() { return m_entry;}
  52.   PersonEntry&      getPersonEntry() { return m_personEntry;}
  53.  
  54.   char*             getFullname();
  55.   void              setCardName(char *name);
  56.   DIR_Server*       getABDir();
  57.  
  58. protected:
  59.   virtual void apply();
  60.  
  61. private:
  62.   PersonEntry       m_personEntry;
  63.   Boolean           m_newUser;
  64.   ABID              m_entry;
  65.  
  66. }; /* XFE_PropertySheetDialog */
  67.  
  68. extern "C" void 
  69. fe_showABCardPropertyDlg(Widget parent, MWContext *context, ABID entry, 
  70.                          XP_Bool newuser);
  71.  
  72. extern "C" int 
  73. fe_ShowPropertySheetForEntry(MSG_Pane *pane, MWContext *context);
  74.  
  75. #endif /* _xfe_xmlfolderdialog_h */
  76.