kleopatra
uiserver.cpp
Go to the documentation of this file.
92 const bool error = assuan_socket_connect_ext( &ctx, QFile::encodeName( fileName ).constData(), -1, 0 );
94 const bool error = assuan_new( &ctx ) || assuan_socket_connect( ctx, QFile::encodeName( fileName ).constData(), ASSUAN_INVALID_PID, 0 );
117 if ( cf && empty( std::equal_range( d->factories.begin(), d->factories.end(), cf, _detail::ByName<std::less>() ) ) ) {
119 std::inplace_merge( d->factories.begin(), d->factories.end() - 1, d->factories.end(), _detail::ByName<std::less>() );
205 const shared_ptr<AssuanServerConnection> c( new AssuanServerConnection( (assuan_fd_t)fd, factories ) );
238 throw_<std::runtime_error>( i18n( "Could not determine the GnuPG home directory. Consider setting the GNUPGHOME environment variable." ) );
248 throw_<std::runtime_error>( i18n( "Cannot determine the GnuPG home directory: %1 exists but is not a directory.", path ) );
254 throw_<std::runtime_error>( i18n( "Could not create GnuPG home directory %1: %2", path, systemErrorString() ) );
266 throw_<std::runtime_error>( i18n( "Detected another running gnupg UI server listening at %1.", fileName ) );
void startKeyManagerRequested()
bool registerCommandFactory(const boost::shared_ptr< AssuanCommandFactory > &cmdFactory)
Definition: uiserver.cpp:116
static boost::shared_ptr< SessionDataHandler > instance()
Definition: sessiondata.cpp:59
Definition: uiserver.h:50
Definition: uiserver_p.h:62
void stopped()
void startConfigDialogRequested()
void enableCryptoCommands(bool enable=true)
Definition: assuanserverconnection.cpp:1003
bool waitForStopped(unsigned int ms=0xFFFFFFFF)
Definition: uiserver.cpp:162
void incomingConnection(int fd)
Definition: uiserver.cpp:195
void enableCryptoCommands(bool enable=true)
Definition: uiserver.cpp:150
static const struct @14 connections[]
UiServer(const QString &socket, QObject *parent=0)
Definition: uiserver.cpp:105
Definition: detail_p.h:52
static bool isStaleAssuanSocket(const QString &socketName)
Definition: uiserver.cpp:88
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.