remove keyring manager like methods which don't stay in scope for purpuose of this class.

This commit is contained in:
Aaron Seigo 2011-05-26 13:19:41 +02:00
parent 155b5bd879
commit 223622f786
2 changed files with 7 additions and 28 deletions

View File

@ -513,16 +513,6 @@ TrustLevel Signing::trustLevelOf(const QString &keyID) const
return d->addKeyToCache(keyID.toAscii());
}
QStringList Signing::privateKeys() const
{
return d->keysID(true);
}
QStringList Signing::publicKeys() const
{
return d->keysID(false);
}
QString Signing::signerOf(const KUrl &plasmoidPath, const KUrl &plasmoidSignaturePath) const
{
kDebug() << "Checking existence of " << plasmoidPath.pathOrUrl();

View File

@ -100,35 +100,22 @@ public:
~Signing();
/**
* Returns a QStringList object containing all the key ID that matches the TrustLevel passed
* as parameter to the function
* Returns a list of all the key IDs processed by this Signing object that match the
* requested TrustLevel.
*
* @param trustLevel the TrustLevel we want to
*
* @return the QStringList with all the ID of the matching keys, or an empty one otherwise
*/
QStringList keysByTrustLevel(TrustLevel trustLevel) const;
/**
* Return the TrustLevel associated with the key passed as parameter to the function
* Return the TrustLevel associated with the key passed as parameter to the function.
*
* @param keyID the key we want to retrieve its trust level
*
* @return the TrustLevel value
*/
TrustLevel trustLevelOf(const QString &keyID) const;
/**
* @return a QStringList object containing the ID of all the private keys found in the keyring.
*/
QStringList privateKeys() const;
/**
* @return a QStringList object containing the ID of all the public keys found in the keyring.
* @note Private/Public key pairs are not returned: @see privateKeys() for that.
*/
QStringList publicKeys() const;
/**
* Tests for a successful match between the object and signature files, referenced by their
* absolute path. The signature path is optional and, if not specified, the function will
@ -137,11 +124,13 @@ public:
* @arg path the full path of the package we want to test
* @arg signaturePath optional path for the signature file
*
* @return a Qstring with the signer's unique key id, or an empty one if a signer was not found.
* @return The signer's unique key id, or an empty string if a signer was not found.
* Failure can be due to the signature not matching or the signature file missing.
* On success, this informatoin can then be used with trustLevelOf and/or
* descriptiveString to get more information on the key.
*/
QString signerOf(const KUrl &path, const KUrl &signaturePath = KUrl()) const ;
/**
* @return the QString path of the keystore being used.
*/