kleopatra
#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 <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 "readerstatus.moc"
Go to the source code of this file.
|  | 
| #define | TRACE(x)   _trace__impl( x, #x ) | 
|  | 
|  | 
|  | 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) | 
|  | 
      
        
          | #define TRACE | ( |  | x | ) | _trace__impl( x, #x ) | 
      
 
 
      
        
          | BOOST_STATIC_ASSERT | ( | (sizeof flags/sizeof *flags==ReaderStatus::_NumScdStates) |  | ) |  | 
      
 
 
  
  | 
        
          | static bool check_event_counter_changed | ( | shared_ptr< Context > & | gpg_agent, |  
          |  |  | unsigned int & | counter |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static CardInfo get_card_status | ( | const QString & | fileName, |  
          |  |  | unsigned int | idx, |  
          |  |  | shared_ptr< Context > & | gpg_agent |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static unsigned int get_event_counter | ( | shared_ptr< Context > & | gpgAgent | ) |  |  | static | 
 
 
  
  | 
        
          | static const std::string gpgagent_data | ( | shared_ptr< Context > & | gpgAgent, |  
          |  |  | const char * | what, |  
          |  |  | Error & | err |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static std::auto_ptr<DefaultAssuanTransaction> gpgagent_transact | ( | shared_ptr< Context > & | gpgAgent, |  
          |  |  | const char * | command, |  
          |  |  | Error & | err |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static unsigned int parse_event_counter | ( | const std::string & | str | ) |  |  | static | 
 
 
  
  | 
        
          | static bool parse_keypairinfo_and_lookup_key | ( | Context * | ctx, |  
          |  |  | const std::string & | kpi |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static unsigned int parseFileName | ( | const QString & | fileName, |  
          |  |  | bool * | ok |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static const std::string scd_getattr_status | ( | shared_ptr< Context > & | gpgAgent, |  
          |  |  | const char * | what, |  
          |  |  | Error & | err |  
          |  | ) |  |  |  | static | 
 
 
  
  | 
        
          | static std::vector<CardInfo> update_cardinfo | ( | const QString & | gnupgHomePath, |  
          |  |  | shared_ptr< Context > & | gpgAgent |  
          |  | ) |  |  |  | static | 
 
 
Initial value:= {
    "_", 
    "openpgp",
    "nks",
    "p15",
    "dinsig",
    "geldkarte",
}
Definition at line 182 of file readerstatus.cpp.
 
 
  
  | 
        
          | const unsigned int CHECK_INTERVAL = 2000 |  | static | 
 
 
  
  | 
        
          | const Transaction checkTransaction = { "__check__", 0, 0, Error() } |  | static | 
 
 
Initial value:= {
    "NOCARD",
    "PRESENT",
    "ACTIVE",
    "USABLE",
}
Definition at line 114 of file readerstatus.cpp.
 
 
  
  | 
        
          | const char* prettyFlags[] |  | static | 
 
Initial value:= {
    "NoCard",
    "CardPresent",
    "CardActive",
    "CardUsable",
    "CardCanLearnKeys",
    "CardHasNullPin",
    "CardError",
}
Definition at line 122 of file readerstatus.cpp.
 
 
  
  | 
        
          | const Transaction quitTransaction = { "__quit__", 0, 0, Error() } |  | static | 
 
 
  
  | 
        
          | const unsigned int RETRY_WAIT = 2 |  | static | 
 
 
  
  | 
        
          | const Transaction updateTransaction = { "__update__", 0, 0, Error() } |  | static | 
 
 
 
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:12 by
doxygen 1.8.7 written
by 
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.