void
GMApp::Receive
(
    JBroadcaster*					sender,
    const JBroadcaster::Message&	message
)
{
    if (sender == itsAboutDialog && message.Is(JXDialogDirector::kDeactivated))
    {
        const JXDialogDirector::Deactivated* info =
            dynamic_cast(const JXDialogDirector::Deactivated*, &message);
        assert(info != NULL);
        if (info->Successful() && itsOpenPrefsAfterAbout)
        {
            if (!itsPrefsNew)
            {
                JGetUserNotification()->DisplayMessage("Your mail preferences have been converted, please verify that they are correct.");
            }
            GGetAccountMgr()->EditAccounts();
        }
        itsAboutDialog			= NULL;
        itsOpenPrefsAfterAbout	= kJFalse;
        itsPrefsNew				= kJFalse;
    }

    else
    {
Beispiel #2
0
SMTPMessage::SMTPMessage()
	:
	itsDeleteTask(NULL),
	itsTimeoutTask(NULL)
{
	itsTo = new JString();
	assert(itsTo != NULL);

	itsFrom = new JString();
	assert(itsFrom != NULL);

	itsSubject = new JString();
	assert(itsSubject != NULL);

	itsReplyTo = new JString();
	assert(itsReplyTo != NULL);

	itsCC = new JString();
	assert(itsCC != NULL);

	itsBCC = new JString();
	assert(itsBCC != NULL);

	itsData = new JString();
	assert(itsData != NULL);

	itsAddedHeaders = new JString();
	assert(itsAddedHeaders != NULL);

	itsToNames = new JPtrArray<JString>(JPtrArrayT::kForgetAll);
	assert(itsToNames != NULL);
	itsToNames->SetCompareFunction(JCompareStringsCaseInsensitive);
	itsCcNames = new JPtrArray<JString>(JPtrArrayT::kForgetAll);
	assert(itsCcNames != NULL);
	itsCcNames->SetCompareFunction(JCompareStringsCaseInsensitive);
	itsBccNames = new JPtrArray<JString>(JPtrArrayT::kForgetAll);
	assert(itsBccNames != NULL);
	itsBccNames->SetCompareFunction(JCompareStringsCaseInsensitive);

	itsLink		= NULL;
	itsConnector	= NULL;

	itsCurrentMode = kStartUp;
	itsCurrentIndex = 1;

	itsIsFinished		= kJFalse;
	itsSomethingRead	= kJFalse;
	itsIsTryingToQuit	= kJFalse;

	SetAccount(GGetAccountMgr()->GetDefaultAccount());
}