_numWindows = 0;
_shutdownEnabled = 1;
_applicationClass = strdup ( appClassName );
+ _appWorkspaceList = NULL;
+ _lastInteractiveEventTime = 0;
+ _originalEgid = 0;
+ _originalRgid = 0;
}
void Application::initialize ( int *argcp, char **argv )
#define PIXMAPSIZE 50
BusyPixmap::BusyPixmap ( Widget w ) :
- PixmapCycler ( NUMPIXMAPS, PIXMAPSIZE, PIXMAPSIZE )
+ PixmapCycler ( NUMPIXMAPS, PIXMAPSIZE, PIXMAPSIZE ),
+ _gc(NULL),
+ _inverseGC(NULL)
{
_w = w;
}
_activationList = NULL;
_deactivationList = NULL;
_hasUndo = TRUE;
+ _previouslyActive = 0;
if (label) {
_label = strdup(label);
_contents = 0;
_numElements = 0;
+ _pane = NULL;
}
CmdList::~CmdList()
_window_invert = NULL;
_icon = 0;
_allow_resize = allowResize;
+ _last_state = 0;
+ _flash_owin = 0;
+ _flash_iwin = 0;
+ memset(&_window_attributes, 0, sizeof(XWindowAttributes));
assert ( theApplication != NULL ); // Application object must exist
// before any MainWindow object
_cancel_clientData = NULL;
_fileBrowser = NULL;
_parentWidget = parent;
+ _hidden_button = NULL;
+ _directory = NULL;
}
SelectFileCmd::SelectFileCmd (const char * name,
_cancel_clientData = cancel_clientData;
_fileBrowser = NULL;
_parentWidget = parent;
+ _hidden_button = NULL;
+ _directory = NULL;
}
SelectFileCmd::~SelectFileCmd()
_attach_area_selection_state = AA_SEL_NONE;
_cache_single_attachment = NULL;
+ _no_selected_label = NULL;
+ _selected_label = NULL;
+ rowOfAttachmentsStatus = NULL;
+ _attachments_status = NULL;
+ _attachments_summary = NULL;
+ _mailbox = NULL;
+ _attachAreaWidth = 0;
+ _attachAreaHeight = 0;
+ _rc = NULL;
+ _sw = NULL;
+ _vsb = NULL;
+ _message = NULL;
+ _clipWindow = NULL;
+ _open = NULL;
+ _saveas = NULL;
+ _selectall = NULL;
+ _unselectall = NULL;
+ _menuBar = NULL;
+ _background = 0;
+ _foreground = 0;
+ _appBackground = 0;
+ _appForeground = 0;
+ _fileCmdList = NULL;
+ _editCmdList = NULL;
+ _size_selected_label = NULL;
+ _format_button = NULL;
+
+
}
void
_label = XmStringCreateLocalized(strrchr(name, '/')+1);
_key = theRoamApp.session()->session()->newObjectKey();
+
+ myIcon = NULL;
+ _background = 0;
+ _foreground = 0;
+ _attachmentWidth = 0;
+ _attachmentHeight = 0;
+ _positionX = 0;
+ _positionY = 0;
+ _deleted = false;
+ _selected = false;
+ _row = 0;
+ _saveAsFilename = NULL;
+ _ce_name = NULL;
+ _ce_type = NULL;
+ _type = 0;
+ _binary = false;
+ _executable = false;
+
}
Attachment::~Attachment(
RoamMenuWindow *window
) : ComposeFamily( name, label, active, window )
{
+ _parent = NULL;
}
// Put up a blank compose window.
) : ComposeFamily(name, label, active, window)
{
_forward = forward;
+ _parent = NULL;
}
// Forward or Include selected messages.
) : ComposeFamily ( name, label, active, window )
{
_include = include;
+ _parent = NULL;
}
// For each message selected, reply to sender.
) : ComposeFamily( name, label, active, window )
{
_include = include;
+ _parent = NULL;
}
// For each message selected, reply to everybody.
_mbox = NULL;
_messageCount = 0;
_fileName = strdup_n(filename);
+ _message = NULL;
}
DmxMailbox::~DmxMailbox (void)
_propui_array = new DtVirtArray<PropUiItem *>(10);
_propui_array_iterator = 0;
_parent = parent;
+ _prop_source = NULL;
//
// Create form to hold the printing options
_dragX = -1;
_dragY = -1;
_editable = FALSE;
+ _container = NULL;
}
_textField = (Widget) NULL;
_maxTextlen = 0;
_clearText = NULL;
+ _shroudText = 0;
_parentshell = parent;
while (_parentshell && !XtIsShell(_parentshell))
_roamWindow = parent;
_num_text_fields = 4;
_num_buttons = 5;
+ _status_text = NULL;
//
// Allocate storage for labels, widgets, and data.
Widget menu;
XmString xms;
+ _strings = NULL;
+ _data = NULL;
+
_nmenu_items = nmenu_items;
if (nmenu_items && strings != NULL)
{
XmString xms;
char *propkey = new char[MAXPATHLEN];
+ _password_pui = NULL;
+ _inboxpath_label = NULL;
+ _inboxpath_tf = NULL;
+ _checkfornewmail_label = NULL;
+ _checkfornewmail_sb = NULL;
+ _system_tb = NULL;
+ _server_frame = NULL;
+ _server_tb = NULL;
+ _serverframe_form = NULL;
+ _serverprotocol_label = NULL;
+ _serverprotocol_iom = NULL;
+ _servername_label = NULL;
+ _servername_tf = NULL;
+ _username_label = NULL;
+ _username_tf = NULL;
+ _password_label = NULL;
+ _password_tf = NULL;
+ _rememberpassword_tb = NULL;
+ _removeafterdelivery_tb = NULL;
+ _retrieveold_tb = NULL;
+ _custom_frame = NULL;
+ _custom_tb = NULL;
+ _customframe_form = NULL;
+ _customcommand_label = NULL;
+ _customcommand_tf = NULL;
+
+
_propui_array = new DtVirtArray<PropUiItem *>(10);
_propui_array_iterator = 0;
_parent = parent;
class MsgStruct {
public:
- MsgStruct() {};
+ MsgStruct() : indexNumber(0), sessionNumber(0), message_handle(NULL), is_deleted(false) {};
~MsgStruct() {};
int indexNumber;
catstr = NULL;
CurrentPane = NULL;
+ mh_pane_list = NULL;
+ msg_view_pane_list = NULL;
+ compose_pane_list = NULL;
+ msg_filing_pane_list = NULL;
+ vacation_pane_list = NULL;
+ template_pane_list = NULL;
+ aliases_pane_list = NULL;
+ advanced_pane_list = NULL;
+ mailretrieval_pane_list = NULL;
+ vaca_sub = NULL;
+ vaca_msg = NULL;
+ generalDialog = NULL;
+ _PrintingOptions = NULL;
+ _MailRetrievalOptions = NULL;
+
}
void
{
// Empty
_pwd[0] = 0;
+ _user = NULL;
+ _password = NULL;
}
Widget PasswordDialogManager::createDialog ( Widget parent )
{
DebugPrintf(2, "RoamApp::RoamApp(%p \"%s\")\n", name, name);
theRoamApp = *this;
+
+ _busy_count = 0;
+ _dialog = NULL;
+ _errorPrintDisplay = NULL;
+ _firstSaveYourselfArrived = false;
+ _options = NULL;
+ _optionsHandle = NULL;
+ _mailview = NULL;
+ _quitSilently = false;
+ _quitQuickly = false;
+ _vacation = NULL;
+ session_fp = NULL;
+ _shutdownWorkprocID = 0;
+ _appTimeoutId = 0;
+ _default_mailbox = NULL;
+ _glyph_font = NULL;
+ _glyph_name = NULL;
+ _mailfiles_folder = NULL;
+ _mail_session = NULL;
+ _mail_transport = NULL;
+ _print_script = NULL;
+ _system_font = NULL;
+ _system_fontlist = NULL;
+ _tt_fd = 0;
+ _user_font = NULL;
+ _user_fontlist = NULL;
+ _default_x_error_handler = NULL;
}
// Let the destructor of parent Application class handle the
) : RoamInterruptibleCmd (name, label, active)
{
_menuWindow = window;
+ _open_create_flag = DTM_FALSE;
+ _open_lock_flag = DTM_FALSE;
}
// Parent's execute() ends up calling derived class's doit()
_num_converted = 0;
_num_to_be_converted = 0;
_dialog = NULL;
+ _criteria = NULL;
+ _conv_cb = NULL;
+ _src = NULL;
+ _dest = NULL;
}
void
) : NoUndoCmd( name, label, active )
{
_menuwindow = window;
+ _msgno = NULL;
}
void
) : Cmd ( name, label, active )
{
_menuwindow = window;
+ _msgno = NULL;
}
void
this,
parent)
{
+ _only_show_mailboxes = DTM_FALSE;
+
if (! _is_initialized)
{
FORCE_SEGV_DECL(DtMail::Session, m_session);
_menuwindow = window;
_undelFromList = NULL;
_fromList = viaDeleteList;
+ _clientData = NULL;
+ _num_deleted = 0;
}
UndeleteCmd::~UndeleteCmd()
_menuwindow = menu_window;
_copy_button = NULL;
_move_button = NULL;
+ _file_list = NULL;
+ _file_text = NULL;
+ _default_button = NULL;
}
MoveCopyCmd::~MoveCopyCmd()
parent)
{
_parent = clientData;
+ _name = NULL;
}
SaveAttachCmd::SaveAttachCmd (
parent )
{
_parent = clientData;
+ _name = NULL;
}
SaveAttachCmd::SaveAttachCmd (
parent )
{
_parent = clientData;
+ _name = NULL;
}
void
int active)
: NoUndoCmd (name, label, active)
{
+ _header = NULL;
}
void
{
label = NULL;
header = NULL;
+ value = NULL;
show = other.show;
form_widget = other.form_widget;
label_widget = other.label_widget;
{
assert (theApplication != NULL);
_list = NULL;
+ _undelete_button = NULL;
+ _close_button = NULL;
+ _undel_list_button = NULL;
+ rowOfLabels = NULL;
+ rowOfButtons = NULL;
+ rowOfMessageStatus = NULL;
+ my_owner = NULL;
}
UndelFromListDialog::~UndelFromListDialog()
_attachmentPopupMenuList = NULL;
_textPopupMenuList = NULL;
+ _main = NULL;
+ _overview = NULL;
+ _tasks = NULL;
+ _reference = NULL;
+ _on_item = NULL;
+ _using_help = NULL;
+ _about_mailer = NULL;
+ _text = NULL;
+ _msgno = NULL;
+
assert( theApplication != NULL );
}
isCurrent = B_FALSE;
hasAttachments = B_FALSE;
isNew = B_FALSE;
+ msgHandle = NULL;
+ msgHeader.header_values = NULL;
+ msgHeader.number_of_names = 0;
+ bodyParts = NULL;
return;
}
_client = NULL;
_implClearFunc = NULL;
_fatal = DTM_FALSE;
+ _error_minor_code = DTME_NoError;
}
#ifdef hpV4
_callback = cb;
_cb_data = clientData;
_obj_mutex = MutexInit();
+ _mail_box_writable = DTM_FALSE;
+ _default_mode = 0;
}
DtMail::MailBox::~MailBox(void)
#if defined(POSIX_THREADS)
_condition = malloc(sizeof(cond_t));
cond_init((cond_t *)_condition, USYNC_THREAD, NULL);
+#else
+ _condition = NULL;
#endif
+ _state = 0;
}
Condition::~Condition(void)
{
_session = session;
_is_write_bcc = DTM_FALSE;
+ _use_cr = DTM_FALSE;
}
RFCFormat::~RFCFormat(void)
_value[size] = 0;
_decoded = NULL;
+ _session = NULL;
}
RFCValue::RFCValue(const char * str, int size, DtMail::Session *s) : DtMailValue(NULL)
// Set up the handlers so that we are notified when a child
// process exits and do the right thing.
signalRegister();
+
+ _error_proc = NULL;
+ _smd = NULL;
}
RFCTransport::~RFCTransport(void)