2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $TOG: MailRetrievalOptions.h /main/3 1998/02/17 12:35:42 mgreess $ */
25 #ifndef _MAIL_RETRIEVAL_OPTIONS_H
26 #define _MAIL_RETRIEVAL_OPTIONS_H
33 * RESTRICTED CONFIDENTIAL INFORMATION:
35 * The information in this document is subject to special
36 * restrictions in a confidential disclosure agreement between
37 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
38 * document outside HP, IBM, Sun, USL, SCO, or Univel without
39 * Sun's specific written approval. This document and all copies
40 * and derivative works thereof must be returned or destroyed at
43 * Copyright 1994 Sun Microsystems, Inc. All rights reserved.
48 * Common Desktop Environment
50 * (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
51 * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
52 * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
53 * (c) Copyright 1993, 1994, 1995 Novell, Inc.
54 * (c) Copyright 1995 Digital Equipment Corp.
55 * (c) Copyright 1995 Fujitsu Limited
56 * (c) Copyright 1995 Hitachi, Ltd.
59 * RESTRICTED RIGHTS LEGEND
61 *Use, duplication, or disclosure by the U.S. Government is subject to
62 *restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
63 *Technical Data and Computer Software clause in DFARS 252.227-7013. Rights
64 *for non-DOD U.S. Government Departments and Agencies are as set forth in
65 *FAR 52.227-19(c)(1,2).
67 *Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
68 *International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A.
69 *Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
70 *Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
71 *Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A.
72 *Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
73 *Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
81 #include <sys/types.h>
84 #include <DtMail/EncryptedTextFieldUiItem.hh>
85 #include <DtMail/PropUi.hh>
86 #include <DtMail/DtMailServer.hh>
87 #include <DtMail/DtVirtArray.hh>
88 #include <DtMail/PropUi.hh>
89 #include "UIComponent.h"
90 #include "IndexedOptionMenu.h"
94 char *prop_value_string;
97 char *dflt_gui_string;
100 class MailRetrievalOptions : public UIComponent
105 DtVirtArray<PropUiItem *>
107 int _propui_array_iterator;
108 EncryptedTextFieldUiItem
110 DtVirtArray<Widget> *_retrieval_tbs;
115 Widget _inboxpath_label;
116 Widget _inboxpath_tf;
117 Widget _checkfornewmail_label;
118 Widget _checkfornewmail_sb;
122 DtVirtArray<Widget> *_server_options;
123 Widget _server_frame;
125 Widget _serverframe_form;
126 Widget _serverprotocol_label;
127 IndexedOptionMenu *_serverprotocol_iom;
128 Widget _servername_label;
129 Widget _servername_tf;
130 Widget _username_label;
132 Widget _password_label;
134 Widget _rememberpassword_tb;
135 Widget _removeafterdelivery_tb;
136 Widget _retrieveold_tb;
138 DtVirtArray<Widget> *_custom_options;
139 Widget _custom_frame;
141 Widget _customframe_form;
142 Widget _customcommand_label;
143 Widget _customcommand_tf;
145 static void rememberPasswordChangedCB(Widget,XtPointer,XtPointer);
146 static void retrievalTBSValueChangedCB(Widget,XtPointer,XtPointer);
150 MailRetrievalOptions(Widget, const char *foldername = NULL);
151 ~MailRetrievalOptions(void);
153 PropUiItem *getFirstProp(void);
154 PropUiItem *getNextProp(void);
155 int getNumProps(void);
156 void initOptionInteractions(void);
157 static char *isValidInboxPath(PropUiItem* pui, void* data);
158 static char *getPassword(char *foldername);
161 #endif // _MAIL_RETRIEVAL_OPTIONS_H