home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / addrbk.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.9 KB  |  132 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. /*
  20.    addrbk.h --- X-specific headers for the front end.
  21.    Created: Tao Cheng  <tao@netscape.com>, 10-nov-94.
  22.  */
  23. #ifndef _ADDRBK_H_
  24. #define _ADDRBK_H_
  25.  
  26. #include "addrbook.h"
  27. #include "abcom.h"
  28. #include "xfe.h"
  29.  
  30. #define AB_MAX_ENTRIES  175000
  31. #define AB_MAX_STRLEN   1024
  32.  
  33. typedef struct fe_addrbk_data 
  34. {
  35.  
  36.   ABPane *abpane;
  37.   ABID editUID;
  38.   ABID editLID;
  39.  
  40.   feABtype type;
  41.  
  42.   Widget mcwin;
  43.   Widget outline;
  44.   Widget edituser;              /* Edit user container widget */
  45.  
  46.   /* Personal Folder */
  47.   Widget edituser_p;  
  48.   Widget edituser_p_fn;
  49.   Widget edituser_p_mi;
  50.   Widget edituser_p_ln;
  51.   Widget edituser_p_org;
  52.   Widget edituser_p_desp;
  53.   Widget edituser_p_locality;
  54.   Widget edituser_p_region;
  55.   Widget edituser_p_nickname;
  56.   Widget edituser_p_em;
  57.  
  58.   /* Security Folder */
  59.   Widget edituser_b; 
  60.   Widget edituser_b_text;
  61.  
  62.   /* Edit list stuff */
  63.   Widget editlist;  
  64.   Widget editlist_m;
  65.   Widget editlist_m_nickname;
  66.   Widget editlist_m_name;
  67.   Widget editlist_m_desp;
  68.   Widget editlist_m_members;
  69.  
  70.   /* General window */
  71.   Widget title;
  72.   Widget nickname;
  73.   Widget name;
  74.   Widget lname;
  75.   Widget mname;
  76.  
  77.   /* tool bar stuff */
  78.   Widget queryText;
  79.   Widget helpBar;
  80.  
  81.   /* find stuff */
  82.   Widget findshell; 
  83.   Widget findtext;
  84.   Widget findnicknameT;
  85.   Widget findnameT;
  86.   Widget findlocationT;
  87.   Widget finddescriptionT;
  88.   Widget findcaseT;
  89.   Widget findwordT;
  90.  
  91.   Widget popup;            /* addrbook popup menu */
  92. } fe_addrbk_data;
  93.  
  94. /* define callback proc and struc
  95.  */
  96.  
  97. typedef enum {
  98.   TO = 0,
  99.   CC,
  100.   BCC,
  101.   REPLYTO,
  102.   FOLLOWUPTO,
  103.   NEWSGROUP
  104. } SEND_STATUS;
  105.  
  106. typedef struct {
  107.   SEND_STATUS  status;
  108.   DIR_Server  *dir;  
  109.   ABID         id;
  110.   char        *emailAddr;
  111.   char        *dplyStr;
  112.   ABID         type;
  113. } StatusID_t;
  114.  
  115. typedef struct {
  116.   StatusID_t** m_pairs;
  117.   int          m_count;
  118. } ABAddrMsgCBProcStruc;
  119.  
  120. typedef void (*ABAddrMsgCBProc)(ABAddrMsgCBProcStruc* clientData, 
  121.                                 void*                 callData);
  122.  
  123. XP_BEGIN_PROTOS
  124.  
  125. void
  126. fe_showAddrMSGDlg(Widget toplevel, 
  127.                   ABAddrMsgCBProc proc, void* callData, MWContext *context);
  128.  
  129. XP_END_PROTOS
  130.  
  131. #endif /* _ADDRBK_H_ */
  132.