some work towards encryption
This commit is contained in:
parent
297e08ba41
commit
a7d1a28f29
21 changed files with 129 additions and 81 deletions
|
@ -561,12 +561,12 @@ Shared::Message Core::RosterItem::getMessage(const QString& id) {
|
|||
return archive->getElement(id);
|
||||
}
|
||||
|
||||
bool Core::RosterItem::isEncryptionEnabled() const {
|
||||
return archive->isEncryptionEnabled();
|
||||
Shared::EncryptionProtocol Core::RosterItem::encryption() const {
|
||||
return archive->encryption();
|
||||
}
|
||||
|
||||
void Core::RosterItem::enableEncryption(bool value) {
|
||||
bool changed = archive->setEncryptionEnabled(value);
|
||||
void Core::RosterItem::setEncryption(Shared::EncryptionProtocol value) {
|
||||
bool changed = archive->setEncryption(value);
|
||||
if (changed)
|
||||
emit encryptionChanged(value);
|
||||
}
|
||||
|
@ -574,7 +574,7 @@ void Core::RosterItem::enableEncryption(bool value) {
|
|||
QMap<QString, QVariant> Core::RosterItem::getInfo() const {
|
||||
QMap<QString, QVariant> result({
|
||||
{"name", name},
|
||||
{"encryption", isEncryptionEnabled()},
|
||||
{"encryption", QVariant::fromValue(encryption())},
|
||||
});
|
||||
Archive::AvatarInfo info;
|
||||
bool hasAvatar = readAvatarInfo(info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue