• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kleopatra

  • sources
  • kde-4.12
  • kdepim
  • kleopatra
  • smartcard
Macros | Functions | Variables
readerstatus.cpp File Reference
#include <config-kleopatra.h>
#include "readerstatus.h"
#include <utils/gnupg-helper.h>
#include <utils/kdsignalblocker.h>
#include <utils/filesystemwatcher.h>
#include <kleo/stl_util.h>
#include <gpgme++/context.h>
#include <gpgme++/assuanresult.h>
#include <gpgme++/defaultassuantransaction.h>
#include <gpgme++/key.h>
#include <gpgme++/keylistresult.h>
#include <gpg-error.h>
#include <KDebug>
#include <QStringList>
#include <QDir>
#include <QFileInfo>
#include <QMutex>
#include <QWaitCondition>
#include <QThread>
#include <QTimer>
#include <QPointer>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/static_assert.hpp>
#include <boost/range.hpp>
#include <boost/bind.hpp>
#include <vector>
#include <set>
#include <list>
#include <algorithm>
#include <iterator>
#include <utility>
#include <cstdlib>
#include "moc_readerstatus.cpp"
#include "readerstatus.moc"
Include dependency graph for readerstatus.cpp:

Go to the source code of this file.

Macros

#define TRACE(x)   _trace__impl( x, #x )
 

Functions

 BOOST_STATIC_ASSERT ((sizeof flags/sizeof *flags==ReaderStatus::_NumScdStates))
 
 BOOST_STATIC_ASSERT ((sizeof prettyFlags/sizeof *prettyFlags==ReaderStatus::NumStates))
 
 BOOST_STATIC_ASSERT ((sizeof app_types/sizeof *app_types==ReaderStatus::NumAppTypes))
 
static bool check_event_counter_changed (shared_ptr< Context > &gpg_agent, unsigned int &counter)
 
static CardInfo get_card_status (const QString &fileName, unsigned int idx, shared_ptr< Context > &gpg_agent)
 
static unsigned int get_event_counter (shared_ptr< Context > &gpgAgent)
 
static const std::string gpgagent_data (shared_ptr< Context > &gpgAgent, const char *what, Error &err)
 
static std::auto_ptr
< DefaultAssuanTransaction > 
gpgagent_transact (shared_ptr< Context > &gpgAgent, const char *command, Error &err)
 
static QDebug operator<< (QDebug s, const std::vector< std::pair< std::string, std::string > > &v)
 
static ReaderStatus::AppType parse_app_type (const std::string &s)
 
static int parse_app_version (const std::string &s)
 
static unsigned int parse_event_counter (const std::string &str)
 
static std::string parse_keypairinfo (const std::string &kpi)
 
static bool parse_keypairinfo_and_lookup_key (Context *ctx, const std::string &kpi)
 
static ReaderStatus::PinState parse_pin_state (const std::string &s)
 
static unsigned int parseFileName (const QString &fileName, bool *ok)
 
static QByteArray read_file (const QString &fileName)
 
static const std::string scd_getattr_status (shared_ptr< Context > &gpgAgent, const char *what, Error &err)
 
static std::vector< CardInfo > update_cardinfo (const QString &gnupgHomePath, shared_ptr< Context > &gpgAgent)
 

Variables

static const char * app_types []
 
static const unsigned int CHECK_INTERVAL = 2000
 
static const Transaction checkTransaction = { "__check__", 0, 0, Error() }
 
static const char * flags []
 
static const char * prettyFlags []
 
static const Transaction quitTransaction = { "__quit__", 0, 0, Error() }
 
static const unsigned int RETRY_WAIT = 2
 
static ReaderStatus * self = 0
 
static const Transaction updateTransaction = { "__update__", 0, 0, Error() }
 

Macro Definition Documentation

#define TRACE (   x)    _trace__impl( x, #x )

Definition at line 172 of file readerstatus.cpp.

Function Documentation

BOOST_STATIC_ASSERT ( (sizeof flags/sizeof *flags==ReaderStatus::_NumScdStates)  )
BOOST_STATIC_ASSERT ( (sizeof prettyFlags/sizeof *prettyFlags==ReaderStatus::NumStates)  )
BOOST_STATIC_ASSERT ( (sizeof app_types/sizeof *app_types==ReaderStatus::NumAppTypes)  )
static bool check_event_counter_changed ( shared_ptr< Context > &  gpg_agent,
unsigned int &  counter 
)
static

Definition at line 410 of file readerstatus.cpp.

static CardInfo get_card_status ( const QString &  fileName,
unsigned int  idx,
shared_ptr< Context > &  gpg_agent 
)
static

Definition at line 318 of file readerstatus.cpp.

static unsigned int get_event_counter ( shared_ptr< Context > &  gpgAgent)
static

Definition at line 272 of file readerstatus.cpp.

static const std::string gpgagent_data ( shared_ptr< Context > &  gpgAgent,
const char *  what,
Error &  err 
)
static

Definition at line 289 of file readerstatus.cpp.

static std::auto_ptr<DefaultAssuanTransaction> gpgagent_transact ( shared_ptr< Context > &  gpgAgent,
const char *  command,
Error &  err 
)
static

Definition at line 229 of file readerstatus.cpp.

static QDebug operator<< ( QDebug  s,
const std::vector< std::pair< std::string, std::string > > &  v 
)
static

Definition at line 175 of file readerstatus.cpp.

static ReaderStatus::AppType parse_app_type ( const std::string &  s)
static

Definition at line 194 of file readerstatus.cpp.

static int parse_app_version ( const std::string &  s)
static

Definition at line 211 of file readerstatus.cpp.

static unsigned int parse_event_counter ( const std::string &  str)
static

Definition at line 265 of file readerstatus.cpp.

static std::string parse_keypairinfo ( const std::string &  kpi)
static

Definition at line 297 of file readerstatus.cpp.

static bool parse_keypairinfo_and_lookup_key ( Context *  ctx,
const std::string &  kpi 
)
static

Definition at line 302 of file readerstatus.cpp.

static ReaderStatus::PinState parse_pin_state ( const std::string &  s)
static

Definition at line 215 of file readerstatus.cpp.

static unsigned int parseFileName ( const QString &  fileName,
bool *  ok 
)
static

Definition at line 147 of file readerstatus.cpp.

static QByteArray read_file ( const QString &  fileName)
static

Definition at line 134 of file readerstatus.cpp.

static const std::string scd_getattr_status ( shared_ptr< Context > &  gpgAgent,
const char *  what,
Error &  err 
)
static

Definition at line 252 of file readerstatus.cpp.

static std::vector<CardInfo> update_cardinfo ( const QString &  gnupgHomePath,
shared_ptr< Context > &  gpgAgent 
)
static

Definition at line 395 of file readerstatus.cpp.

Variable Documentation

const char* app_types[]
static
Initial value:
= {
"_",
"openpgp",
"nks",
"p15",
"dinsig",
"geldkarte",
}

Definition at line 183 of file readerstatus.cpp.

const unsigned int CHECK_INTERVAL = 2000
static

Definition at line 85 of file readerstatus.cpp.

const Transaction checkTransaction = { "__check__", 0, 0, Error() }
static

Definition at line 430 of file readerstatus.cpp.

const char* flags[]
static
Initial value:
= {
"NOCARD",
"PRESENT",
"ACTIVE",
"USABLE",
}

Definition at line 115 of file readerstatus.cpp.

const char* prettyFlags[]
static
Initial value:
= {
"NoCard",
"CardPresent",
"CardActive",
"CardUsable",
"CardCanLearnKeys",
"CardHasNullPin",
"CardError",
}

Definition at line 123 of file readerstatus.cpp.

const Transaction quitTransaction = { "__quit__", 0, 0, Error() }
static

Definition at line 432 of file readerstatus.cpp.

const unsigned int RETRY_WAIT = 2
static

Definition at line 84 of file readerstatus.cpp.

ReaderStatus* self = 0
static

Definition at line 87 of file readerstatus.cpp.

const Transaction updateTransaction = { "__update__", 0, 0, Error() }
static

Definition at line 431 of file readerstatus.cpp.

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

KDE's Doxygen guidelines are available online.

kleopatra

Skip menu "kleopatra"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal