kde-extraapps/kgpg/transactions/kgpgprimaryuid.cpp
2015-02-27 11:02:43 +00:00

43 lines
1.2 KiB
C++

/*
* Copyright (C) 2009,2012,2013 Rolf Eike Beer <kde@opensource.sf-tec.de>
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "kgpgprimaryuid.h"
#include "model/kgpgitemnode.h"
KGpgPrimaryUid::KGpgPrimaryUid(QObject *parent, KGpgUidNode *uid)
: KGpgUidTransaction(parent, uid->getParentKeyNode()->getId(), uid->getId())
{
addArgument(QLatin1String("primary"));
addArgument(QLatin1String("save"));
}
KGpgPrimaryUid::~KGpgPrimaryUid()
{
}
bool
KGpgPrimaryUid::nextLine(const QString &)
{
setSuccess(TS_MSG_SEQUENCE);
return true;
}
bool
KGpgPrimaryUid::passphraseReceived()
{
setSuccess(TS_OK);
return KGpgTransaction::passphraseReceived();
}
#include "moc_kgpgprimaryuid.cpp"