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

  1. /* -*- Mode: C++; tab-width: 8; 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.    ABAddressingDlg.h -- class definition for XFE_ABAddressingDlg
  20.    Created: Tao Cheng <tao@netscape.com>, 20-nov-96
  21.  */
  22.  
  23. #ifndef _ABADDRESSINGDLG_H_
  24. #define _ABADDRESSINGDLG_H_
  25.  
  26. #include "ViewDialog.h"
  27.  
  28. #include "addrbook.h"
  29.  
  30. extern "C" {
  31. #include "addrbk.h"
  32. };
  33.  
  34. class  XFE_AddrSearchView;
  35. class  XFE_AddresseeView;
  36.  
  37. //
  38. class XFE_ABAddressingDlg: public XFE_ViewDialog 
  39. {
  40.  
  41. public:
  42.  
  43.   XFE_ABAddressingDlg(Widget           parent,
  44.               char            *name,
  45.               ABAddrMsgCBProc  proc, 
  46.               void            *callData,
  47.               Boolean          modal,
  48.               MWContext *context);
  49.  
  50.   ~XFE_ABAddressingDlg();
  51.  
  52.   enum { AB_SEARCH_VIEW = 0,
  53.      AB_ADDRESSEE_VIEW,
  54.      AB_LAST
  55.   } AB_VIEWTYPE;
  56.  
  57.   void addAddressees(ABAddrMsgCBProcStruc *);
  58.  
  59. protected:
  60.   virtual void cancel();
  61.   virtual void ok();
  62.  
  63. private:
  64.  
  65.   XFE_AddrSearchView    *m_addrSearchView;
  66.   XFE_AddresseeView     *m_addresseeView;
  67.  
  68.   ABAddrMsgCBProc        m_cbProc;
  69.   void                  *m_callData;
  70.  
  71.   MWContext             *m_searchContext;
  72. };
  73.  
  74. #endif /* _ABADDRESSINGDLG_H_ */
  75.