DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Implementation

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 *
 * The contents of this file are subject to the Netscape Public License
 * Version 1.0 (the "NPL"); you may not use this file except in
 * compliance with the NPL.  You may obtain a copy of the NPL at
 * http://www.mozilla.org/NPL/
 *
 * Software distributed under the NPL is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
 * for the specific language governing rights and limitations under the
 * NPL.
 *
 * The Initial Developer of this code under the NPL is Netscape
 * Communications Corporation.  Portions created by Netscape are
 * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
 * Reserved.
 */

/*
   addrbk.h --- X-specific headers for the front end.
   Created: Tao Cheng  <tao@netscape.com>, 10-nov-96.
 */
#ifndef _ADDRBK_H_
#define _ADDRBK_H_

#include "addrbook.h"
#include "abcom.h"
#include "xfe.h"

#define AB_MAX_ENTRIES  175000
#define AB_MAX_STRLEN   1024

#if !defined(EMPTY_STRVAL)
#define EMPTY_STRVAL(value) \
  (!(value) || !((value)->u.string) || !XP_STRLEN(((value)->u.string)))

#endif

#ifndef IS_AB_PANE_CMD
#define IS_AB_PANE_CMD(command) \
        ((command == xfeCmdComposeMessage) || \
		 (command == xfeCmdComposeMessagePlain) || \
		 (command == xfeCmdComposeMessageHTML) || \
		 \
		 (command == xfeCmdImport) ||  \
		 (command == xfeCmdSaveAs) || \
		  \
		 (command == xfeCmdClose) ||  \
		  \
		 (command == xfeCmdUndo) ||  \
		 (command == xfeCmdRedo) ||  \
		  \
		 (command == xfeCmdABDeleteAllEntries) ||  \
		  \
		 (command == xfeCmdABByType) ||  \
		 (command == xfeCmdABByName) ||  \
		 (command == xfeCmdABByEmailAddress) ||  \
		 (command == xfeCmdABByNickName) ||  \
		 (command == xfeCmdABByCompany) ||  \
		 (command == xfeCmdABByLocality) ||  \
		  \
		 (command == xfeCmdSortAscending) ||  \
		 (command == xfeCmdSortDescending) ||  \
		 \
		 (command == xfeCmdAddToAddressBook) ||  \
		 (command == xfeCmdABNewList) ||  \
		  \
		 (command == xfeCmdABCall)  \
		 )

#endif /* IS_AB_PANE_CMD */

#ifndef IS_CONTAINER_PANE_CMD
#define IS_CONTAINER_PANE_CMD(command) \
        ((command == xfeCmdABNewPAB) ||  \
		 (command == xfeCmdABNewLDAPDirectory)\
		 )
#endif /* IS_CONTAINER_PANE_CMD */

#ifndef IS_2_PANE_CMD
#define IS_2_PANE_CMD(command) \
        ((command == xfeCmdShowPopup) ||  \
		 (command == xfeCmdABDeleteEntry) ||  \
		 (command == xfeCmdABEditEntry) ||\
		 (command == xfeCmdViewProperties)\
		 )
#endif /* IS_2_PANE_CMD */

typedef struct fe_addrbk_data 
{

  ABPane *abpane;
  ABID editUID;
  ABID editLID;

  feABtype type;

  Widget mcwin;
  Widget outline;
  Widget edituser;              /* Edit user container widget */

  /* Personal Folder */
  Widget edituser_p;  
  Widget edituser_p_fn;
  Widget edituser_p_mi;
  Widget edituser_p_ln;
  Widget edituser_p_org;
  Widget edituser_p_desp;
  Widget edituser_p_locality;
  Widget edituser_p_region;
  Widget edituser_p_nickname;
  Widget edituser_p_em;

  /* Security Folder */
  Widget edituser_b; 
  Widget edituser_b_text;

  /* Edit list stuff */
  Widget editlist;  
  Widget editlist_m;
  Widget editlist_m_nickname;
  Widget editlist_m_name;
  Widget editlist_m_desp;
  Widget editlist_m_members;

  /* General window */
  Widget title;
  Widget nickname;
  Widget name;
  Widget lname;
  Widget mname;

  /* tool bar stuff */
  Widget queryText;
  Widget helpBar;

  /* find stuff */
  Widget findshell; 
  Widget findtext;
  Widget findnicknameT;
  Widget findnameT;
  Widget findlocationT;
  Widget finddescriptionT;
  Widget findcaseT;
  Widget findwordT;

  Widget popup;			/* addrbook popup menu */
} fe_addrbk_data;

/* define callback proc and struc
 */

typedef enum {
  TO = 0,
  CC,
  BCC,
  REPLYTO,
  FOLLOWUPTO,
  NEWSGROUP
} SEND_STATUS;

typedef struct {
  SEND_STATUS  status;
  DIR_Server  *dir;  
  ABID         id;
  char        *emailAddr;
  char        *dplyStr;
  ABID         type;
} StatusID_t;

typedef struct {
  StatusID_t** m_pairs;
  int          m_count;
} ABAddrMsgCBProcStruc;

typedef void (*ABAddrMsgCBProc)(ABAddrMsgCBProcStruc* clientData, 
								void*                 callData);

XP_BEGIN_PROTOS

void
fe_showAddrMSGDlg(Widget toplevel, 
                  ABAddrMsgCBProc proc, void* callData, MWContext *context);

XP_END_PROTOS

#endif /* _ADDRBK_H_ */