home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ABMListDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.5 KB  |  94 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.    ABMListDlg.h -- class definition for XFE_ABMListDlg
  20.    Created: Tao Cheng <tao@netscape.com>, 12-nov-96
  21.  */
  22.  
  23. #ifndef _ABMLISTDLG_H_
  24. #define _ABMLISTDLG_H_
  25.  
  26.  
  27. #include "ViewDialog.h"
  28.  
  29. #include "addrbook.h"
  30.  
  31. class XFE_AddrBookView;
  32.  
  33. class XFE_ABMListDlg: public XFE_ViewDialog 
  34. {
  35.  
  36. public:
  37.   XFE_ABMListDlg(XFE_View  *view, /* the parent view */
  38.                  Widget     parent,
  39.                  char      *name,
  40.                  Boolean    modal,
  41.                  MWContext *context);
  42. #if defined(USE_ABCOM)
  43.   XFE_ABMListDlg(MSG_Pane  *pane,
  44.                  MWContext *context);
  45. #endif /* USE_ABCOM */
  46.  
  47.   virtual void setDlgValues();
  48.  
  49.   ~XFE_ABMListDlg();
  50.  
  51.   //
  52.   void createUI();
  53.   virtual void setDlgValues(ABID entry, Boolean newList);
  54.   virtual void getDlgValues();
  55.  
  56.   //
  57.   MailingListEntry& getMList() { return m_mailListEntry;}
  58.   Boolean           IsNewList() { return m_newList;}
  59.   ABID              getEntryID() { return m_entry;}
  60.   XFE_AddrBookView* getABView() { return m_abView;}
  61.  
  62.   void Initialize();
  63.   static void entryTTYValChgCallback(Widget, XtPointer, XtPointer);
  64.  
  65. protected:
  66.   virtual void cancel();
  67.   virtual void apply();
  68.   virtual void ok();
  69.   virtual void entryTTYValChgCB(Widget, XtPointer);
  70.  
  71. private:
  72.   Widget            m_textFs[4];
  73.  
  74.   XFE_AddrBookView *m_abView;
  75.  
  76.   MailingListEntry  m_mailListEntry;
  77.   Boolean           m_newList;
  78.   ABID              m_entry;
  79.  
  80.   DIR_Server       *m_dir;
  81. #if defined(USE_ABCOM)
  82.   MSG_Pane         *m_pane;
  83. #endif /* USE_ABCOM */
  84.   MLPane           *m_mListPane;
  85.   ABook            *m_AddrBook;
  86. };
  87.  
  88. #if defined(USE_ABCOM)
  89. extern "C" int
  90. fe_ShowPropertySheetForMList(MSG_Pane *pane, MWContext *context);
  91. #endif /* USE_ABCOM */
  92.  
  93. #endif /* _ABMLISTDLG_H_ */
  94.