Qt Cryptographic Architecture
|
Go to the documentation of this file.
43 #include <QMetaObject>
46 #include <QStringList>
49 #include <QVariantList>
101 QCA_EXPORT QByteArray methodReturnType(
const QMetaObject * obj,
102 const QByteArray & method,
146 QCA_EXPORT
bool invokeMethodWithVariants(
QObject * obj,
147 const QByteArray & method,
148 const QVariantList &args,
150 Qt::ConnectionType type = Qt::AutoConnection);
329 call(
QObject *obj,
const QByteArray &method,
const QVariantList &args = QVariantList(),
bool *ok =
nullptr);
335 virtual void atStart() = 0;
340 virtual void atEnd() = 0;
351 friend class Private;
379 bool waitForCondition(
int msecs = -1);
419 explicit DirWatch(
const QString &dir = QString(),
QObject *parent =
nullptr);
425 QString dirName()
const;
432 void setDirName(
const QString &dir);
447 friend class Private;
477 explicit FileWatch(
const QString &file = QString(),
QObject *parent =
nullptr);
483 QString fileName()
const;
490 void setFileName(
const QString &file);
503 friend class Private;
507 class ConsolePrivate;
508 class ConsoleReferencePrivate;
606 Console(Type type, ChannelMode cmode, TerminalMode tmode,
QObject *parent =
nullptr);
617 ChannelMode channelMode()
const;
622 TerminalMode terminalMode()
const;
629 static bool isStdinRedirected();
636 static bool isStdoutRedirected();
652 static Console *stdioInstance();
665 QByteArray bytesLeftToRead();
671 QByteArray bytesLeftToWrite();
676 friend class ConsolePrivate;
725 bool start(
Console *console, SecurityMode mode = SecurityDisabled);
745 SecurityMode securityMode()
const;
756 QByteArray read(
int bytes = -1);
766 void write(
const QByteArray &a);
799 int bytesAvailable()
const;
805 int bytesToWrite()
const;
821 void bytesWritten(
int bytes);
836 friend class ConsoleReferencePrivate;
837 ConsoleReferencePrivate *d;
883 void getHidden(
const QString &promptStr);
898 void waitForFinished();
916 QChar resultChar()
const;
934 friend class Private;
1001 void setLevel(Severity level);
1008 void logTextMessage(
const QString &message, Severity = Information);
1019 void logBinaryMessage(
const QByteArray &blob, Severity = Information);
1035 void unregisterLogDevice(
const QString &loggerName);
1040 QStringList currentLogDevices()
const;
1045 friend class Global;
1054 QStringList m_loggerNames;
1056 Severity m_logLevel;
1073 QString name()
const;
1085 virtual void logTextMessage(
const QString &message,
Logger::Severity severity);
1097 virtual void logBinaryMessage(
const QByteArray &blob,
Logger::Severity severity);
Definition: qca_support.h:961
ChannelMode
The type of I/O to use with the console object.
Definition: qca_support.h:574
TerminalMode
The nature of the console operation.
Definition: qca_support.h:583
Type
The type of console object.
Definition: qca_support.h:566
Severity
The severity of the message.
Definition: qca_support.h:971
Definition: qca_support.h:691
QCA - the Qt Cryptographic Architecture.
Definition: qca_basic.h:41
Severity level() const
Get the current logging level.
Definition: qca_support.h:989
Definition: qca_support.h:862
@ Read
Read only (equivalent to stdin)
Definition: qca_support.h:576
@ Tty
physical console
Definition: qca_support.h:568
Definition: qca_support.h:408
QCA_EXPORT Logger * logger()
Return a reference to the QCA Logger, which is used for diagnostics and error recording.
Definition: qca_tools.h:316
Definition: qca_support.h:278
Definition: qca_support.h:360
Definition: qca_support.h:1066
@ Default
use default terminal settings
Definition: qca_support.h:585
Definition: qca_support.h:466
Definition: qca_support.h:559
SecurityMode
The security setting to use for the Console being managed.
Definition: qca_support.h:698