kmail

messagecomposer.cpp File Reference

#include "messagecomposer.h"
#include "kmmsgpart.h"
#include "kmcomposewin.h"
#include "klistboxdialog.h"
#include "kcursorsaver.h"
#include "messagesender.h"
#include "kmfolder.h"
#include "kmfoldercombobox.h"
#include "keyresolver.h"
#include "kleo_util.h"
#include "globalsettings.h"
#include "custommimeheader.h"
#include "kmedit.h"
#include "util.h"
#include <libkpimidentities/identity.h>
#include <libkpimidentities/identitymanager.h>
#include <libemailfunctions/email.h>
#include <ui/keyselectiondialog.h>
#include <ui/keyapprovaldialog.h>
#include <ui/messagebox.h>
#include <kleo/cryptobackendfactory.h>
#include <kleo/keylistjob.h>
#include <kleo/encryptjob.h>
#include <kleo/signencryptjob.h>
#include <kleo/signjob.h>
#include <kleo/specialjob.h>
#include <kmime_util.h>
#include <kmime_codecs.h>
#include <kpgpblock.h>
#include <mimelib/mimepp.h>
#include <kmessagebox.h>
#include <klocale.h>
#include <kinputdialog.h>
#include <kdebug.h>
#include <kaction.h>
#include <qfile.h>
#include <qtextcodec.h>
#include <qtextedit.h>
#include <qtimer.h>
#include <gpgmepp/key.h>
#include <gpgmepp/keylistresult.h>
#include <gpgmepp/encryptionresult.h>
#include <gpgmepp/signingresult.h>
#include <gpgmepp/context.h>
#include <algorithm>
#include <memory>
#include "messagecomposer.moc"

Include dependency graph for messagecomposer.cpp:

Go to the source code of this file.


Defines

#define REALLY_WANT_KMCOMPOSEWIN_H

Functions

static bool armor (Kleo::CryptoMessageFormat f)
static bool binaryHint (Kleo::CryptoMessageFormat f)
static int encryptChainCertNearExpiryWarningThresholdInDays ()
static int encryptKeyNearExpiryWarningThresholdInDays ()
static int encryptRootCertNearExpiryWarningThresholdInDays ()
static bool encryptToSelf ()
static QCString escape_quoted_string (const QCString &str)
static bool includeCleartextWhenSigning (Kleo::CryptoMessageFormat f)
static bool makeMimeObject (Kleo::CryptoMessageFormat f, bool)
static bool makeMultiMime (Kleo::CryptoMessageFormat f, bool sign)
static bool makeMultiPartEncrypted (Kleo::CryptoMessageFormat f)
static bool makeMultiPartSigned (Kleo::CryptoMessageFormat f)
static const char * nestedContentDisposition (Kleo::CryptoMessageFormat f, bool signing)
static const char * nestedContentType (Kleo::CryptoMessageFormat f, bool signing)
static bool saveMessagesEncrypted ()
static bool showKeyApprovalDialog ()
static int signingChainCertNearExpiryWarningThresholdInDays ()
static int signingKeyNearExpiryWarningThresholdInDays ()
static
GpgME::Context::SignatureMode 
signingMode (Kleo::CryptoMessageFormat f)
static int signingRootCertNearExpiryWarningThresholdInDays ()
static bool textMode (Kleo::CryptoMessageFormat f)
static const char * toplevelContentDisposition (Kleo::CryptoMessageFormat f, bool signing)
static const char * toplevelContentType (Kleo::CryptoMessageFormat f, bool signing)
static bool warnSendUnencrypted ()
static bool warnSendUnsigned ()

Variables

static QString mErrorNoCryptPlugAndNoBuildIn
static QString mErrorProcessingStructuringInfo

Define Documentation

#define REALLY_WANT_KMCOMPOSEWIN_H

messagecomposer.cpp

Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of the Qt library by Trolltech AS, Norway (or with modified versions of Qt that use the same license as Qt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than Qt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

Definition at line 37 of file messagecomposer.cpp.


Function Documentation

static bool armor ( Kleo::CryptoMessageFormat  f  )  [inline, static]

Definition at line 1120 of file messagecomposer.cpp.

static bool binaryHint ( Kleo::CryptoMessageFormat  f  )  [inline, static]

Definition at line 1108 of file messagecomposer.cpp.

static int encryptChainCertNearExpiryWarningThresholdInDays (  )  [inline, static]

Definition at line 148 of file messagecomposer.cpp.

static int encryptKeyNearExpiryWarningThresholdInDays (  )  [inline, static]

Definition at line 116 of file messagecomposer.cpp.

static int encryptRootCertNearExpiryWarningThresholdInDays (  )  [inline, static]

Definition at line 132 of file messagecomposer.cpp.

static bool encryptToSelf (  )  [inline, static]

Definition at line 106 of file messagecomposer.cpp.

static QCString escape_quoted_string ( const QCString str  )  [static]

Definition at line 533 of file messagecomposer.cpp.

static bool includeCleartextWhenSigning ( Kleo::CryptoMessageFormat  f  )  [inline, static]

Definition at line 1081 of file messagecomposer.cpp.

static bool makeMimeObject ( Kleo::CryptoMessageFormat  f,
bool   
) [inline, static]

Definition at line 1025 of file messagecomposer.cpp.

static bool makeMultiMime ( Kleo::CryptoMessageFormat  f,
bool  sign 
) [inline, static]

Definition at line 1009 of file messagecomposer.cpp.

static bool makeMultiPartEncrypted ( Kleo::CryptoMessageFormat  f  )  [inline, static]

Definition at line 1021 of file messagecomposer.cpp.

static bool makeMultiPartSigned ( Kleo::CryptoMessageFormat  f  )  [inline, static]

Definition at line 1018 of file messagecomposer.cpp.

static const char* nestedContentDisposition ( Kleo::CryptoMessageFormat  f,
bool  signing 
) [inline, static]

Definition at line 1100 of file messagecomposer.cpp.

static const char* nestedContentType ( Kleo::CryptoMessageFormat  f,
bool  signing 
) [inline, static]

Definition at line 1085 of file messagecomposer.cpp.

static bool saveMessagesEncrypted (  )  [inline, static]

Definition at line 102 of file messagecomposer.cpp.

static bool showKeyApprovalDialog (  )  [inline, static]

Definition at line 111 of file messagecomposer.cpp.

static int signingChainCertNearExpiryWarningThresholdInDays (  )  [inline, static]

Definition at line 156 of file messagecomposer.cpp.

static int signingKeyNearExpiryWarningThresholdInDays (  )  [inline, static]

Definition at line 124 of file messagecomposer.cpp.

static GpgME::Context::SignatureMode signingMode ( Kleo::CryptoMessageFormat  f  )  [inline, static]

Definition at line 1128 of file messagecomposer.cpp.

static int signingRootCertNearExpiryWarningThresholdInDays (  )  [inline, static]

Definition at line 140 of file messagecomposer.cpp.

static bool textMode ( Kleo::CryptoMessageFormat  f  )  [inline, static]

Definition at line 1124 of file messagecomposer.cpp.

static const char* toplevelContentDisposition ( Kleo::CryptoMessageFormat  f,
bool  signing 
) [inline, static]

Definition at line 1067 of file messagecomposer.cpp.

static const char* toplevelContentType ( Kleo::CryptoMessageFormat  f,
bool  signing 
) [inline, static]

Definition at line 1029 of file messagecomposer.cpp.

static bool warnSendUnencrypted (  )  [inline, static]

Definition at line 98 of file messagecomposer.cpp.

static bool warnSendUnsigned (  )  [inline, static]

Definition at line 94 of file messagecomposer.cpp.


Variable Documentation

Initial value:

i18n("<p>No active Crypto Plug-In was found and the built-in OpenPGP code "
     "did not run successfully.</p>"
     "<p>You can do two things to change this:</p>"
     "<ul><li><em>either</em> activate a Plug-In using the "
     "Settings->Configure KMail->Plug-In dialog.</li>"
     "<li><em>or</em> specify traditional OpenPGP settings on the same dialog's "
     "Identity->Advanced tab.</li></ul>")

Definition at line 225 of file messagecomposer.cpp.

Initial value:

i18n("<qt><p>Structuring information returned by the Crypto plug-in "
     "could not be processed correctly; the plug-in might be damaged.</p>"
     "<p>Please contact your system administrator.</p></qt>")

Definition at line 221 of file messagecomposer.cpp.