1 /* $TOG: EncryptedTextFieldUiItem.hh /main/1 1997/11/07 15:44:39 mgreess $ */
5 * RESTRICTED CONFIDENTIAL INFORMATION:
7 * The information in this document is subject to special
8 * restrictions in a confidential disclosure agreement bertween
9 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
10 * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
11 * Sun's specific written approval. This documment and all copies
12 * and derivative works thereof must be returned or destroyed at
15 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
20 #ifndef _ENCRYPTEDTEXTFIELDUIITEM_HH
21 #define _ENCRYPTEDTEXTFIELDUIITEM_HH
24 #include <X11/Intrinsic.h>
26 #include <DtMail/DtMailTypes.h>
28 // derived class for prop sheet glue items for textfield
29 ////////////////////////////////////////////////////////
30 class EncryptedTextFieldUiItem : public PropUiItem {
33 EncryptedTextFieldUiItem(
37 PropUiCallback validator = NULL,
38 void * validator_data = NULL);
39 virtual ~EncryptedTextFieldUiItem() {if (NULL!=_text) free(_text);};
41 void writeAllowed(DtMailBoolean);
42 virtual void writeFromUiToSource();
43 virtual void writeFromSourceToUi();
46 DtMailBoolean _loading;
49 DtMailBoolean _writeAllowed;
51 void validateLength(int);
52 void verify(XmTextVerifyPtr);
53 static void verifyCB(Widget, XtPointer, XtPointer);