/* -*- Mode: C++; tab-width: 4; 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. */ #ifndef _NAB_UTILS_H_ #define _NAB_UTILS_H_ #define CHAR_VALUE 0 #define BOOL_VALUE 1 #define INT_VALUE 2 BOOL GetLDIFLineForUser(MSG_Pane *abPane, LONG userIndex, LPSTR outString, NABUserID *userID, NABUpdateTime *updtTime); // For creating HTML output file... BOOL OpenNABAPIHTMLFile(LPSTR fName, LPSTR title); BOOL CloseNABAPIHTMLFile(void); BOOL DumpHTMLTableLineForUser(MSG_Pane *abPane, LONG userIndex); BOOL SearchABForAttrib(AB_ContainerInfo *abContainer, LPSTR searchAttrib, LPSTR ldifInfo, NABUserID *userID, NABUpdateTime *updtTime); // For insert entries... NABError InsertEntryToAB(AB_ContainerInfo *abContainer, LPSTR newLine, BOOL updateOnly, ABID *updateID); #define HTML_HEAD1 \ "\n\ \n\ \n\ " #define HMTL_HEAD2 \ "\n\ \n\  \n\ \n" #define HTML_TAIL "\
\n\  \n\ \n\ \n" #endif // _NAB_UTILS_H_ /* stuff... AB_attribFamilyName AB_attribGivenName AB_attribEmailAddress AB_attribCompanyName
AB_attribTitle AB_attribWorkPhone AB_attribFaxPhone AB_attribHomePhone AB_attribPOAddress
AB_attribStreetAddress
AB_attribLocality, AB_attribRegion AB_attribZipCode
AB_attribCountry ...end of stuff.... */