Akonadi Contacts

qdialer.cpp
1 /*
2  This file is part of Akonadi Contact.
3 
4  SPDX-FileCopyrightText: 2009 Tobias Koenig <[email protected]>
5  SPDX-FileCopyrightText: 2010 Bjoern Ricks <[email protected]>
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9 
10 #include "qdialer.h"
11 
12 #include <KLocalizedString>
13 
14 QDialer::QDialer(const QString &applicationName)
15  : mApplicationName(applicationName)
16 {
17 }
18 
19 QDialer::~QDialer() = default;
20 
21 bool QDialer::dialNumber(const QString &number)
22 {
23  Q_UNUSED(number)
24  mErrorMessage = i18n("Dialing a number is not supported");
25 
26  return false;
27 }
28 
29 bool QDialer::sendSms(const QString &number, const QString &text)
30 {
31  Q_UNUSED(number)
32  Q_UNUSED(text)
33  mErrorMessage = i18n("Sending an SMS is not supported");
34 
35  return false;
36 }
37 
38 QString QDialer::errorMessage() const
39 {
40  return mErrorMessage;
41 }
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.