Exemple #1
0
QVariant Certificate::detailResult(Certificate::Details detail) const
{
   switch(detail) {
      case Details::EXPIRATION_DATE                : return expirationDate                ();
      case Details::ACTIVATION_DATE                : return activationDate                ();
      case Details::REQUIRE_PRIVATE_KEY_PASSWORD   : return requirePrivateKeyPassword     ();
      case Details::PUBLIC_SIGNATURE               : return publicSignature               ();
      case Details::VERSION_NUMBER                 : return versionNumber                 ();
      case Details::SERIAL_NUMBER                  : return serialNumber                  ();
      case Details::ISSUER                         : return issuer                        ();
      case Details::SUBJECT_KEY_ALGORITHM          : return subjectKeyAlgorithm           ();
      case Details::CN                             : return cn                            ();
      case Details::N                              : return n                             ();
      case Details::O                              : return o                             ();
      case Details::SIGNATURE_ALGORITHM            : return signatureAlgorithm            ();
      case Details::MD5_FINGERPRINT                : return md5Fingerprint                ();
      case Details::SHA1_FINGERPRINT               : return sha1Fingerprint               ();
      case Details::PUBLIC_KEY_ID                  : return publicKeyId                   ();
      case Details::ISSUER_DN                      : return issuerDn                      ();
      case Details::NEXT_EXPECTED_UPDATE_DATE      : return nextExpectedUpdateDate        ();
      case Details::OUTGOING_SERVER                : return outgoingServer                ();

      case Details::COUNT__:
         Q_ASSERT(false);
   };
   return QVariant();
}
//-----------------------------------------------------------------------------
CCSDS::PACKET::Packet::Packet()
//-----------------------------------------------------------------------------
{
  resize(PRIMARY_HEADER_BYTE_SIZE);
  setPacketLength();
  versionNumber(CCSDS::PACKET::VERSION_NUMBER);
  segmentationFlags(CCSDS::PACKET::SEGMENTATION_NONE);
  dataFieldHeaderFlag(0);
}
//-----------------------------------------------------------------------------
CCSDS::PACKET::Packet::Packet(size_t p_bufferSize):
  UTIL::DU::DU(p_bufferSize)
//-----------------------------------------------------------------------------
{
  if(p_bufferSize < PRIMARY_HEADER_BYTE_SIZE)
  {
    resize(PRIMARY_HEADER_BYTE_SIZE);
  }
  setPacketLength();
  versionNumber(CCSDS::PACKET::VERSION_NUMBER);
  segmentationFlags(CCSDS::PACKET::SEGMENTATION_NONE);
  dataFieldHeaderFlag(0);
}
Exemple #4
0
 bool testVersion(int major, int minor, int patch)
 {
     return versionNumber() >= EXIV2_MAKE_VERSION(major,minor,patch);
 }