3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-12 02:05:54 +00:00
Brooklyn/plasma/kcms/componentchooser/componentchoosertel.cpp
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

29 lines
865 B
C++

/*
SPDX-FileCopyrightText: 2022 Kai Uwe Broulik <kde@broulik.de>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "componentchoosertel.h"
#include <KService>
ComponentChooserTel::ComponentChooserTel(QObject *parent)
: ComponentChooser(parent,
QStringLiteral("x-scheme-handler/tel"),
QString(),
QStringLiteral("org.kde.kdeconnect.handler.desktop"),
i18n("Select default dialer application"))
{
}
void ComponentChooserTel::save()
{
const QString storageId = m_applications[m_index].toMap()[QStringLiteral("storageId")].toString();
const KService::Ptr telClientService = KService::serviceByStorageId(storageId);
if (!telClientService) {
return;
}
saveMimeTypeAssociation(QStringLiteral("x-scheme-handler/tel"), storageId);
}