kleopatra
uiserver.cpp
Go to the documentation of this file.
94 const bool error = assuan_socket_connect_ext( &ctx, QFile::encodeName( fileName ).constData(), -1, 0 );
96 const bool error = assuan_new( &ctx ) || assuan_socket_connect( ctx, QFile::encodeName( fileName ).constData(), ASSUAN_INVALID_PID, 0 );
119 if ( cf && empty( std::equal_range( d->factories.begin(), d->factories.end(), cf, _detail::ByName<std::less>() ) ) ) {
121 std::inplace_merge( d->factories.begin(), d->factories.end() - 1, d->factories.end(), _detail::ByName<std::less>() );
207 const shared_ptr<AssuanServerConnection> c( new AssuanServerConnection( (assuan_fd_t)fd, factories ) );
240 throw_<std::runtime_error>( i18n( "Could not determine the GnuPG home directory. Consider setting the GNUPGHOME environment variable." ) );
250 throw_<std::runtime_error>( i18n( "Cannot determine the GnuPG home directory: %1 exists but is not a directory.", path ) );
256 throw_<std::runtime_error>( i18n( "Could not create GnuPG home directory %1: %2", path, systemErrorString() ) );
268 throw_<std::runtime_error>( i18n( "Detected another running gnupg UI server listening at %1.", fileName ) );
void setInterval(int msec)
void startKeyManagerRequested()
bool remove()
bool exists() const
bool setSocketDescriptor(int socketDescriptor, SocketState socketState, QFlags< QIODevice::OpenModeFlag > openMode)
static const struct @10 connections[]
bool registerCommandFactory(const boost::shared_ptr< AssuanCommandFactory > &cmdFactory)
Definition: uiserver.cpp:118
static boost::shared_ptr< SessionDataHandler > instance()
Definition: sessiondata.cpp:61
virtual void close()
Definition: uiserver.h:52
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
Definition: uiserver_p.h:63
virtual bool waitForBytesWritten(int msecs)
bool isEmpty() const
void stopped()
void startConfigDialogRequested()
void enableCryptoCommands(bool enable=true)
Definition: assuanserverconnection.cpp:996
bool waitForStopped(unsigned int ms=0xFFFFFFFF)
Definition: uiserver.cpp:164
void incomingConnection(int fd)
Definition: uiserver.cpp:197
void enableCryptoCommands(bool enable=true)
Definition: uiserver.cpp:152
UiServer(const QString &socket, QObject *parent=0)
Definition: uiserver.cpp:107
Definition: detail_p.h:54
static bool isStaleAssuanSocket(const QString &socketName)
Definition: uiserver.cpp:90
bool isActive() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QByteArray encodeName(const QString &fileName)
bool mkpath(const QString &dirPath) const
void setSingleShot(bool singleShot)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.