4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-04 06:59:33 +00:00

Use nullptr

This commit is contained in:
Laurent Montel 2020-01-20 13:37:51 +01:00
parent 694abbcafa
commit acb45eeb84
32 changed files with 82 additions and 82 deletions

@ -82,7 +82,7 @@ public:
IconPgpSec IconPgpSec
}; };
CertItemStore(QObject *parent = 0); CertItemStore(QObject *parent = nullptr);
~CertItemStore(); ~CertItemStore();
int idFromRow(int row) const; int idFromRow(int row) const;
@ -128,7 +128,7 @@ class CertItemPrivateLoader : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit CertItemPrivateLoader(CertItemStore *store, QObject *parent = 0); explicit CertItemPrivateLoader(CertItemStore *store, QObject *parent = nullptr);
~CertItemPrivateLoader(); ~CertItemPrivateLoader();
void start(int id); void start(int id);

@ -34,7 +34,7 @@ class Prompter : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
Prompter(QObject *parent = 0); Prompter(QObject *parent = nullptr);
~Prompter(); ~Prompter();
protected: protected:

@ -37,7 +37,7 @@ class ClientPassphraseHandler: public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
ClientPassphraseHandler(QObject *parent = 0) : QObject( parent ) ClientPassphraseHandler(QObject *parent = nullptr) : QObject( parent )
{ {
// When the PasswordAsker or TokenAsker needs to interact // When the PasswordAsker or TokenAsker needs to interact
// with the user, it raises a signal. We connect that to a // with the user, it raises a signal. We connect that to a

@ -37,7 +37,7 @@ class PassphraseHandler: public QObject
public: public:
QCA::EventHandler handler; QCA::EventHandler handler;
PassphraseHandler(QObject *parent = 0) : QObject(parent) PassphraseHandler(QObject *parent = nullptr) : QObject(parent)
{ {
connect(&handler, SIGNAL(eventReady(int, const QCA::Event &)), connect(&handler, SIGNAL(eventReady(int, const QCA::Event &)),
SLOT(eh_eventReady(int, const QCA::Event &))); SLOT(eh_eventReady(int, const QCA::Event &)));

@ -27,7 +27,7 @@
class TLSSocket : public QTcpSocket class TLSSocket : public QTcpSocket
{ {
public: public:
TLSSocket(QObject *parent = 0); TLSSocket(QObject *parent = nullptr);
~TLSSocket(); ~TLSSocket();
void connectToHostEncrypted(const QString &host, quint16 port); void connectToHostEncrypted(const QString &host, quint16 port);

@ -1101,7 +1101,7 @@ CertificateInfoOrdered info = cert.subjectInfoOrdered();
\return the Certificate corresponding to the certificate in the \return the Certificate corresponding to the certificate in the
provided array provided array
*/ */
static Certificate fromDER(const QByteArray &a, ConvertResult *result = 0, const QString &provider = QString()); static Certificate fromDER(const QByteArray &a, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import the certificate from PEM format Import the certificate from PEM format
@ -1115,7 +1115,7 @@ CertificateInfoOrdered info = cert.subjectInfoOrdered();
\return the Certificate corresponding to the certificate in the \return the Certificate corresponding to the certificate in the
provided string provided string
*/ */
static Certificate fromPEM(const QString &s, ConvertResult *result = 0, const QString &provider = QString()); static Certificate fromPEM(const QString &s, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import the certificate from a file Import the certificate from a file
@ -1130,7 +1130,7 @@ CertificateInfoOrdered info = cert.subjectInfoOrdered();
\return the Certificate corresponding to the certificate in the \return the Certificate corresponding to the certificate in the
provided string provided string
*/ */
static Certificate fromPEMFile(const QString &fileName, ConvertResult *result = 0, const QString &provider = QString()); static Certificate fromPEMFile(const QString &fileName, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Test if the subject of the certificate matches a specified host Test if the subject of the certificate matches a specified host
@ -1479,7 +1479,7 @@ public:
\note this only applies to PKCS#10 format certificate requests \note this only applies to PKCS#10 format certificate requests
*/ */
static CertificateRequest fromDER(const QByteArray &a, ConvertResult *result = 0, const QString &provider = QString()); static CertificateRequest fromDER(const QByteArray &a, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import the certificate request from PEM format Import the certificate request from PEM format
@ -1496,7 +1496,7 @@ public:
\note this only applies to PKCS#10 format certificate requests \note this only applies to PKCS#10 format certificate requests
*/ */
static CertificateRequest fromPEM(const QString &s, ConvertResult *result = 0, const QString &provider = QString()); static CertificateRequest fromPEM(const QString &s, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import the certificate request from a file Import the certificate request from a file
@ -1513,7 +1513,7 @@ public:
\note this only applies to PKCS#10 format certificate requests \note this only applies to PKCS#10 format certificate requests
*/ */
static CertificateRequest fromPEMFile(const QString &fileName, ConvertResult *result = 0, const QString &provider = QString()); static CertificateRequest fromPEMFile(const QString &fileName, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Export the CertificateRequest to a string Export the CertificateRequest to a string
@ -1538,7 +1538,7 @@ public:
\note this only applies to SPKAC format certificate requests \note this only applies to SPKAC format certificate requests
*/ */
static CertificateRequest fromString(const QString &s, ConvertResult *result = 0, const QString &provider = QString()); static CertificateRequest fromString(const QString &s, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
\internal \internal
@ -1832,7 +1832,7 @@ public:
\return the CRL corresponding to the contents of the array \return the CRL corresponding to the contents of the array
*/ */
static CRL fromDER(const QByteArray &a, ConvertResult *result = 0, const QString &provider = QString()); static CRL fromDER(const QByteArray &a, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import a PEM encoded %Certificate Revocation List (CRL) Import a PEM encoded %Certificate Revocation List (CRL)
@ -1845,7 +1845,7 @@ public:
\return the CRL corresponding to the contents of the string \return the CRL corresponding to the contents of the string
*/ */
static CRL fromPEM(const QString &s, ConvertResult *result = 0, const QString &provider = QString()); static CRL fromPEM(const QString &s, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import a PEM encoded %Certificate Revocation List (CRL) from a file Import a PEM encoded %Certificate Revocation List (CRL) from a file
@ -1859,7 +1859,7 @@ public:
\return the CRL in the file \return the CRL in the file
*/ */
static CRL fromPEMFile(const QString &fileName, ConvertResult *result = 0, const QString &provider = QString()); static CRL fromPEMFile(const QString &fileName, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
\internal \internal
@ -2004,7 +2004,7 @@ public:
\return the CertificateCollection corresponding to the contents of \return the CertificateCollection corresponding to the contents of
the file specified in fileName the file specified in fileName
*/ */
static CertificateCollection fromFlatTextFile(const QString &fileName, ConvertResult *result = 0, const QString &provider = QString()); static CertificateCollection fromFlatTextFile(const QString &fileName, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
import a CertificateCollection from a PKCS#7 file import a CertificateCollection from a PKCS#7 file
@ -2019,7 +2019,7 @@ public:
\return the CertificateCollection corresponding to the contents of \return the CertificateCollection corresponding to the contents of
the file specified in fileName the file specified in fileName
*/ */
static CertificateCollection fromPKCS7File(const QString &fileName, ConvertResult *result = 0, const QString &provider = QString()); static CertificateCollection fromPKCS7File(const QString &fileName, ConvertResult *result = nullptr, const QString &provider = QString());
private: private:
class Private; class Private;
@ -2304,7 +2304,7 @@ else
\note This synchronous operation may require event handling, and so \note This synchronous operation may require event handling, and so
it must not be called from the same thread as an EventHandler. it must not be called from the same thread as an EventHandler.
*/ */
static KeyBundle fromArray(const QByteArray &a, const SecureArray &passphrase = SecureArray(), ConvertResult *result = 0, const QString &provider = QString()); static KeyBundle fromArray(const QByteArray &a, const SecureArray &passphrase = SecureArray(), ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import the key bundle from a file in PKCS12 (.p12) format Import the key bundle from a file in PKCS12 (.p12) format
@ -2336,7 +2336,7 @@ else
\note This synchronous operation may require event handling, and so \note This synchronous operation may require event handling, and so
it must not be called from the same thread as an EventHandler. it must not be called from the same thread as an EventHandler.
*/ */
static KeyBundle fromFile(const QString &fileName, const SecureArray &passphrase = SecureArray(), ConvertResult *result = 0, const QString &provider = QString()); static KeyBundle fromFile(const QString &fileName, const SecureArray &passphrase = SecureArray(), ConvertResult *result = nullptr, const QString &provider = QString());
private: private:
class Private; class Private;
@ -2493,7 +2493,7 @@ public:
\param provider the provider to use, if a particular provider is \param provider the provider to use, if a particular provider is
required required
*/ */
static PGPKey fromArray(const QByteArray &a, ConvertResult *result = 0, const QString &provider = QString()); static PGPKey fromArray(const QByteArray &a, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import the key from a string Import the key from a string
@ -2504,7 +2504,7 @@ public:
\param provider the provider to use, if a particular provider is \param provider the provider to use, if a particular provider is
required required
*/ */
static PGPKey fromString(const QString &s, ConvertResult *result = 0, const QString &provider = QString()); static PGPKey fromString(const QString &s, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import the key from a file Import the key from a file
@ -2516,7 +2516,7 @@ public:
\param provider the provider to use, if a particular provider is \param provider the provider to use, if a particular provider is
required required
*/ */
static PGPKey fromFile(const QString &fileName, ConvertResult *result = 0, const QString &provider = QString()); static PGPKey fromFile(const QString &fileName, ConvertResult *result = nullptr, const QString &provider = QString());
private: private:
class Private; class Private;
@ -2571,7 +2571,7 @@ public:
\param parent the parent object for this object \param parent the parent object for this object
*/ */
KeyLoader(QObject *parent = 0); KeyLoader(QObject *parent = nullptr);
~KeyLoader(); ~KeyLoader();
/** /**

@ -1566,7 +1566,7 @@ public:
\param parent the parent object for this object \param parent the parent object for this object
*/ */
EventHandler(QObject *parent = 0); EventHandler(QObject *parent = nullptr);
~EventHandler(); ~EventHandler();
/** /**
@ -1648,7 +1648,7 @@ public:
\param parent the parent object for this QObject \param parent the parent object for this QObject
*/ */
PasswordAsker(QObject *parent = 0); PasswordAsker(QObject *parent = nullptr);
~PasswordAsker(); ~PasswordAsker();
/** /**
@ -1740,7 +1740,7 @@ public:
\param parent the parent object for this QObject \param parent the parent object for this QObject
*/ */
TokenAsker(QObject *parent = 0); TokenAsker(QObject *parent = nullptr);
~TokenAsker(); ~TokenAsker();
/** /**

@ -361,7 +361,7 @@ public:
\param e the KeyStoreEntry to monitor \param e the KeyStoreEntry to monitor
\param parent the parent object for this object \param parent the parent object for this object
*/ */
explicit KeyStoreEntryWatcher(const KeyStoreEntry &e, QObject *parent = 0); explicit KeyStoreEntryWatcher(const KeyStoreEntry &e, QObject *parent = nullptr);
~KeyStoreEntryWatcher(); ~KeyStoreEntryWatcher();
@ -715,7 +715,7 @@ public:
\param parent the parent for this object \param parent the parent for this object
*/ */
KeyStoreManager(QObject *parent = 0); KeyStoreManager(QObject *parent = nullptr);
~KeyStoreManager(); ~KeyStoreManager();
/** /**

@ -743,7 +743,7 @@ if (! QCA::ConvertGood == conversionResult)
conversion succeeded (ConvertGood) or not conversion succeeded (ConvertGood) or not
\param provider the name of the provider to use for the import. \param provider the name of the provider to use for the import.
*/ */
static PublicKey fromDER(const QByteArray &a, ConvertResult *result = 0, const QString &provider = QString()); static PublicKey fromDER(const QByteArray &a, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import a key in Privacy Enhanced Mail (PEM) format Import a key in Privacy Enhanced Mail (PEM) format
@ -770,7 +770,7 @@ if (! QCA::ConvertGood == conversionResult)
\sa toPEM, which provides an inverse of fromPEM() \sa toPEM, which provides an inverse of fromPEM()
\sa fromPEMFile, which provides an import direct from a file. \sa fromPEMFile, which provides an import direct from a file.
*/ */
static PublicKey fromPEM(const QString &s, ConvertResult *result = 0, const QString &provider = QString()); static PublicKey fromPEM(const QString &s, ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import a key in Privacy Enhanced Mail (PEM) format from a file Import a key in Privacy Enhanced Mail (PEM) format from a file
@ -799,7 +799,7 @@ if (! QCA::ConvertGood == conversionResult)
\note there is also a constructor form that can import from a file \note there is also a constructor form that can import from a file
*/ */
static PublicKey fromPEMFile(const QString &fileName, ConvertResult *result = 0, const QString &provider = QString()); static PublicKey fromPEMFile(const QString &fileName, ConvertResult *result = nullptr, const QString &provider = QString());
protected: protected:
/** /**
@ -1045,7 +1045,7 @@ public:
\note This synchronous operation may require event handling, and so \note This synchronous operation may require event handling, and so
it must not be called from the same thread as an EventHandler. it must not be called from the same thread as an EventHandler.
*/ */
static PrivateKey fromDER(const SecureArray &a, const SecureArray &passphrase = SecureArray(), ConvertResult *result = 0, const QString &provider = QString()); static PrivateKey fromDER(const SecureArray &a, const SecureArray &passphrase = SecureArray(), ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import the key from Privacy Enhanced Mail (PEM) format Import the key from Privacy Enhanced Mail (PEM) format
@ -1065,7 +1065,7 @@ public:
\note This synchronous operation may require event handling, and so \note This synchronous operation may require event handling, and so
it must not be called from the same thread as an EventHandler. it must not be called from the same thread as an EventHandler.
*/ */
static PrivateKey fromPEM(const QString &s, const SecureArray &passphrase = SecureArray(), ConvertResult *result = 0, const QString &provider = QString()); static PrivateKey fromPEM(const QString &s, const SecureArray &passphrase = SecureArray(), ConvertResult *result = nullptr, const QString &provider = QString());
/** /**
Import the key in Privacy Enhanced Mail (PEM) format from a file Import the key in Privacy Enhanced Mail (PEM) format from a file
@ -1089,7 +1089,7 @@ public:
\note This synchronous operation may require event handling, and so \note This synchronous operation may require event handling, and so
it must not be called from the same thread as an EventHandler. it must not be called from the same thread as an EventHandler.
*/ */
static PrivateKey fromPEMFile(const QString &fileName, const SecureArray &passphrase = SecureArray(), ConvertResult *result = 0, const QString &provider = QString()); static PrivateKey fromPEMFile(const QString &fileName, const SecureArray &passphrase = SecureArray(), ConvertResult *result = nullptr, const QString &provider = QString());
protected: protected:
/** /**
@ -1126,7 +1126,7 @@ public:
\param parent the parent object, if applicable \param parent the parent object, if applicable
*/ */
KeyGenerator(QObject *parent = 0); KeyGenerator(QObject *parent = nullptr);
~KeyGenerator(); ~KeyGenerator();

@ -34,7 +34,7 @@ class QCA_EXPORT SafeTimer : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
SafeTimer(QObject *parent = 0); SafeTimer(QObject *parent = nullptr);
~SafeTimer(); ~SafeTimer();
int interval() const; int interval() const;

@ -111,7 +111,7 @@ public:
\param parent the parent object for this object \param parent the parent object for this object
*/ */
SecureLayer(QObject *parent = 0); SecureLayer(QObject *parent = nullptr);
/** /**
Returns true if the layer has a meaningful "close". Returns true if the layer has a meaningful "close".
@ -345,7 +345,7 @@ public:
\param provider the name of the provider, if a specific provider \param provider the name of the provider, if a specific provider
is required is required
*/ */
explicit TLS(QObject *parent = 0, const QString &provider = QString()); explicit TLS(QObject *parent = nullptr, const QString &provider = QString());
/** /**
Constructor for Transport Layer Security connection. Constructor for Transport Layer Security connection.
@ -358,7 +358,7 @@ public:
\param provider the name of the provider, if a specific provider is \param provider the name of the provider, if a specific provider is
required required
*/ */
explicit TLS(Mode mode, QObject *parent = 0, const QString &provider = QString()); explicit TLS(Mode mode, QObject *parent = nullptr, const QString &provider = QString());
/** /**
Destructor Destructor
@ -969,7 +969,7 @@ public:
specified, or specified as empty, then any provider is specified, or specified as empty, then any provider is
acceptable. acceptable.
*/ */
explicit SASL(QObject *parent = 0, const QString &provider = QString()); explicit SASL(QObject *parent = nullptr, const QString &provider = QString());
~SASL(); ~SASL();

@ -848,7 +848,7 @@ public:
\param provider the provider to use, if a specific \param provider the provider to use, if a specific
provider is required provider is required
*/ */
explicit OpenPGP(QObject *parent = 0, const QString &provider = QString()); explicit OpenPGP(QObject *parent = nullptr, const QString &provider = QString());
~OpenPGP(); ~OpenPGP();
private: private:
@ -894,7 +894,7 @@ public:
\param provider the provider to use, if a specific \param provider the provider to use, if a specific
provider is required provider is required
*/ */
explicit CMS(QObject *parent = 0, const QString &provider = QString()); explicit CMS(QObject *parent = nullptr, const QString &provider = QString());
~CMS(); ~CMS();
/** /**

@ -278,7 +278,7 @@ public:
\param parent the parent object for this parent. \param parent the parent object for this parent.
*/ */
SyncThread(QObject *parent = 0); SyncThread(QObject *parent = nullptr);
/** /**
Calls stop() and then destructs Calls stop() and then destructs
@ -409,7 +409,7 @@ public:
set in the constructor, you can set it using setDirName() set in the constructor, you can set it using setDirName()
\param parent the parent object for this object \param parent the parent object for this object
*/ */
explicit DirWatch(const QString &dir = QString(), QObject *parent = 0); explicit DirWatch(const QString &dir = QString(), QObject *parent = nullptr);
~DirWatch(); ~DirWatch();
/** /**
@ -467,7 +467,7 @@ public:
in this object, you can set it using setFileName() in this object, you can set it using setFileName()
\param parent the parent object for this object \param parent the parent object for this object
*/ */
explicit FileWatch(const QString &file = QString(), QObject *parent = 0); explicit FileWatch(const QString &file = QString(), QObject *parent = nullptr);
~FileWatch(); ~FileWatch();
/** /**
@ -596,7 +596,7 @@ public:
you to test whether there is already a Console object of the you to test whether there is already a Console object of the
required Type, and if there is, obtain a reference to that object. required Type, and if there is, obtain a reference to that object.
*/ */
Console(Type type, ChannelMode cmode, TerminalMode tmode, QObject *parent = 0); Console(Type type, ChannelMode cmode, TerminalMode tmode, QObject *parent = nullptr);
~Console(); ~Console();
/** /**
@ -699,7 +699,7 @@ public:
\param parent the parent object for this object \param parent the parent object for this object
*/ */
ConsoleReference(QObject *parent = 0); ConsoleReference(QObject *parent = nullptr);
~ConsoleReference(); ~ConsoleReference();
/** /**
@ -861,7 +861,7 @@ public:
\param parent the parent object for this object \param parent the parent object for this object
*/ */
ConsolePrompt(QObject *parent = 0); ConsolePrompt(QObject *parent = nullptr);
~ConsolePrompt(); ~ConsolePrompt();
/** /**
@ -1093,7 +1093,7 @@ protected:
\param name the name of this log device \param name the name of this log device
\param parent the parent for this logger \param parent the parent for this logger
*/ */
explicit AbstractLogDevice(const QString &name, QObject *parent = 0); explicit AbstractLogDevice(const QString &name, QObject *parent = nullptr);
virtual ~AbstractLogDevice() = 0; virtual ~AbstractLogDevice() = 0;

@ -90,7 +90,7 @@ public:
\param parent the parent object to this object \param parent the parent object to this object
*/ */
QPipeDevice(QObject *parent = 0); QPipeDevice(QObject *parent = nullptr);
~QPipeDevice(); ~QPipeDevice();
/** /**
@ -234,7 +234,7 @@ public:
\param parent the parent object for this object \param parent the parent object for this object
*/ */
QPipeEnd(QObject *parent = 0); QPipeEnd(QObject *parent = nullptr);
~QPipeEnd(); ~QPipeEnd();
@ -487,7 +487,7 @@ public:
\param parent the parent object for this object \param parent the parent object for this object
*/ */
QPipe(QObject *parent = 0); QPipe(QObject *parent = nullptr);
~QPipe(); ~QPipe();

@ -72,7 +72,7 @@ public:
Input input; Input input;
Output output; Output output;
GpgAction(QObject *parent = 0); GpgAction(QObject *parent = nullptr);
~GpgAction(); ~GpgAction();
void reset(); void reset();
void start(); void start();

@ -134,7 +134,7 @@ public:
}; };
typedef QList<Key> KeyList; typedef QList<Key> KeyList;
explicit GpgOp(const QString &bin, QObject *parent = 0); explicit GpgOp(const QString &bin, QObject *parent = nullptr);
~GpgOp(); ~GpgOp();
void reset(); void reset();

@ -34,7 +34,7 @@ class GPGProc : public QObject
public: public:
enum Error { FailedToStart, UnexpectedExit, ErrorWrite }; enum Error { FailedToStart, UnexpectedExit, ErrorWrite };
enum Mode { NormalMode, ExtendedMode }; enum Mode { NormalMode, ExtendedMode };
GPGProc(QObject *parent = 0); GPGProc(QObject *parent = nullptr);
~GPGProc(); ~GPGProc();
void reset(); void reset();

@ -32,7 +32,7 @@ class QProcessSignalRelay : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
QProcessSignalRelay(QProcess *proc, QObject *parent = 0) QProcessSignalRelay(QProcess *proc, QObject *parent = nullptr)
:QObject(parent) :QObject(parent)
{ {
qRegisterMetaType<QProcess::ProcessError>("QProcess::ProcessError"); qRegisterMetaType<QProcess::ProcessError>("QProcess::ProcessError");

@ -28,7 +28,7 @@ class SProcess : public QProcess
{ {
Q_OBJECT Q_OBJECT
public: public:
SProcess(QObject *parent = 0); SProcess(QObject *parent = nullptr);
~SProcess(); ~SProcess();
#ifdef Q_OS_UNIX #ifdef Q_OS_UNIX

@ -57,7 +57,7 @@ public:
QList<DirItem> dirs; QList<DirItem> dirs;
QList<FileItem> files; QList<FileItem> files;
RingWatch(QObject *parent = 0); RingWatch(QObject *parent = nullptr);
~RingWatch(); ~RingWatch();
void add(const QString &filePath); void add(const QString &filePath);

@ -1897,7 +1897,7 @@ public:
RSA *result; RSA *result;
int bits, exp; int bits, exp;
RSAKeyMaker(int _bits, int _exp, QObject *parent = 0) : QThread(parent), result(0), bits(_bits), exp(_exp) RSAKeyMaker(int _bits, int _exp, QObject *parent = nullptr) : QThread(parent), result(0), bits(_bits), exp(_exp)
{ {
} }
@ -2296,7 +2296,7 @@ public:
DLGroup domain; DLGroup domain;
DSA *result; DSA *result;
DSAKeyMaker(const DLGroup &_domain, QObject *parent = 0) : QThread(parent), domain(_domain), result(0) DSAKeyMaker(const DLGroup &_domain, QObject *parent = nullptr) : QThread(parent), domain(_domain), result(0)
{ {
} }
@ -2580,7 +2580,7 @@ public:
DLGroup domain; DLGroup domain;
DH *result; DH *result;
DHKeyMaker(const DLGroup &_domain, QObject *parent = 0) : QThread(parent), domain(_domain), result(0) DHKeyMaker(const DLGroup &_domain, QObject *parent = nullptr) : QThread(parent), domain(_domain), result(0)
{ {
} }
@ -6417,7 +6417,7 @@ public:
bool ok; bool ok;
QByteArray out, sig; QByteArray out, sig;
MyMessageContextThread(QObject *parent = 0) : QThread(parent), ok(false) MyMessageContextThread(QObject *parent = nullptr) : QThread(parent), ok(false)
{ {
} }

@ -2832,7 +2832,7 @@ public:
In in; In in;
Out out; Out out;
KeyLoaderThread(QObject *parent = 0) : QThread(parent) KeyLoaderThread(QObject *parent = nullptr) : QThread(parent)
{ {
} }

@ -1663,7 +1663,7 @@ class HandlerBase : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
HandlerBase(QObject *parent = 0) : QObject(parent) HandlerBase(QObject *parent = nullptr) : QObject(parent)
{ {
} }
@ -1675,7 +1675,7 @@ class AskerBase : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
AskerBase(QObject *parent = 0) : QObject(parent) AskerBase(QObject *parent = nullptr) : QObject(parent)
{ {
} }

@ -600,7 +600,7 @@ public:
KeyStoreTracker *tracker; KeyStoreTracker *tracker;
QMutex call_mutex; QMutex call_mutex;
KeyStoreThread(QObject *parent = 0) : SyncThread(parent) KeyStoreThread(QObject *parent = nullptr) : SyncThread(parent)
{ {
} }
@ -971,7 +971,7 @@ public:
QString entryId; // in: RemoveEntry, out: WriteEntry QString entryId; // in: RemoveEntry, out: WriteEntry
bool success; // out: RemoveEntry bool success; // out: RemoveEntry
KeyStoreOperation(QObject *parent = 0) KeyStoreOperation(QObject *parent = nullptr)
:QThread(parent) :QThread(parent)
{ {
} }

@ -34,7 +34,7 @@ class SafeSocketNotifier : public QObject
Q_OBJECT Q_OBJECT
public: public:
SafeSocketNotifier(int socket, QSocketNotifier::Type type, SafeSocketNotifier(int socket, QSocketNotifier::Type type,
QObject *parent = 0); QObject *parent = nullptr);
~SafeSocketNotifier(); ~SafeSocketNotifier();

@ -39,7 +39,7 @@ class SafeTimer::Private : public QObject
friend class SafeTimer; friend class SafeTimer;
public: public:
Private(QObject *parent = 0); Private(QObject *parent = nullptr);
int timerId; int timerId;
int fixerTimerId; int fixerTimerId;

@ -60,7 +60,7 @@ private:
QByteArray in_left, out_left; QByteArray in_left, out_left;
public: public:
ConsoleWorker(QObject *parent = 0) : QObject(parent), in(this), out(this) ConsoleWorker(QObject *parent = nullptr) : QObject(parent), in(this), out(this)
{ {
started = false; started = false;
} }
@ -219,7 +219,7 @@ public:
QByteArray in_left, out_left; QByteArray in_left, out_left;
QMutex call_mutex; QMutex call_mutex;
ConsoleThread(QObject *parent = 0) : SyncThread(parent) ConsoleThread(QObject *parent = nullptr) : SyncThread(parent)
{ {
qRegisterMetaType<SecureArray>("QCA::SecureArray"); qRegisterMetaType<SecureArray>("QCA::SecureArray");
} }

@ -37,7 +37,7 @@ class QFileSystemWatcherRelay : public QObject
public: public:
QFileSystemWatcher *watcher; QFileSystemWatcher *watcher;
QFileSystemWatcherRelay(QFileSystemWatcher *_watcher, QObject *parent = 0) QFileSystemWatcherRelay(QFileSystemWatcher *_watcher, QObject *parent = nullptr)
:QObject(parent), watcher(_watcher) :QObject(parent), watcher(_watcher)
{ {
connect(watcher, SIGNAL(directoryChanged(const QString &)), SIGNAL(directoryChanged(const QString &)), Qt::QueuedConnection); connect(watcher, SIGNAL(directoryChanged(const QString &)), SIGNAL(directoryChanged(const QString &)), Qt::QueuedConnection);

@ -419,7 +419,7 @@ class QPipeWriter : public QThread
{ {
Q_OBJECT Q_OBJECT
public: public:
QPipeWriter(QObject *parent = 0) : QThread(parent) QPipeWriter(QObject *parent = nullptr) : QThread(parent)
{ {
} }
@ -456,7 +456,7 @@ class QPipeReader : public QThread
{ {
Q_OBJECT Q_OBJECT
public: public:
QPipeReader(QObject *parent = 0) : QThread(parent) QPipeReader(QObject *parent = nullptr) : QThread(parent)
{ {
} }
@ -499,7 +499,7 @@ public:
const char *data; const char *data;
int size; int size;
QPipeWriterThread(Q_PIPE_ID id, QObject *parent = 0) : QPipeWriter(parent) QPipeWriterThread(Q_PIPE_ID id, QObject *parent = nullptr) : QPipeWriter(parent)
{ {
do_quit = false; do_quit = false;
data = 0; data = 0;
@ -634,7 +634,7 @@ public:
SafeTimer timer; SafeTimer timer;
int total; int total;
QPipeWriterPoll(Q_PIPE_ID id, QObject *parent = 0) : QPipeWriter(parent), timer(this) QPipeWriterPoll(Q_PIPE_ID id, QObject *parent = nullptr) : QPipeWriter(parent), timer(this)
{ {
pipe = id; pipe = id;
data = 0; data = 0;
@ -708,7 +708,7 @@ public:
QWaitCondition w; QWaitCondition w;
bool do_quit, active; bool do_quit, active;
QPipeReaderThread(Q_PIPE_ID id, QObject *parent = 0) : QPipeReader(parent) QPipeReaderThread(Q_PIPE_ID id, QObject *parent = nullptr) : QPipeReader(parent)
{ {
do_quit = false; do_quit = false;
active = true; active = true;
@ -807,7 +807,7 @@ public:
SafeTimer timer; SafeTimer timer;
bool consoleMode; bool consoleMode;
QPipeReaderPoll(Q_PIPE_ID id, QObject *parent = 0) : QPipeReader(parent), timer(this) QPipeReaderPoll(Q_PIPE_ID id, QObject *parent = nullptr) : QPipeReader(parent), timer(this)
{ {
pipe = id; pipe = id;
connect(&timer, SIGNAL(timeout()), SLOT(tryRead())); connect(&timer, SIGNAL(timeout()), SLOT(tryRead()));

@ -317,7 +317,7 @@ class SynchronizerAgent : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
SynchronizerAgent(QObject *parent = 0) : QObject(parent) SynchronizerAgent(QObject *parent = nullptr) : QObject(parent)
{ {
QMetaObject::invokeMethod(this, "started", Qt::QueuedConnection); QMetaObject::invokeMethod(this, "started", Qt::QueuedConnection);
} }

@ -120,7 +120,7 @@ class SyncThreadAgent : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
SyncThreadAgent(QObject *parent = 0) : QObject(parent) SyncThreadAgent(QObject *parent = nullptr) : QObject(parent)
{ {
QMetaObject::invokeMethod(this, "started", Qt::QueuedConnection); QMetaObject::invokeMethod(this, "started", Qt::QueuedConnection);
} }

@ -64,7 +64,7 @@ class PGPPassphraseProvider: public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
PGPPassphraseProvider(QObject *parent = 0) : QObject(parent) PGPPassphraseProvider(QObject *parent = nullptr) : QObject(parent)
{ {
connect(&m_handler, SIGNAL(eventReady(int, const QCA::Event &)), connect(&m_handler, SIGNAL(eventReady(int, const QCA::Event &)),
SLOT(eh_eventReady(int, const QCA::Event &))); SLOT(eh_eventReady(int, const QCA::Event &)));