Akonadi Contacts
contactdefaultactions.cpp
42 if (metaObject->indexOfSignal(QMetaObject::normalizedSignature("urlClicked(const QUrl&)").constData()) != -1) {
46 if (metaObject->indexOfSignal(QMetaObject::normalizedSignature("emailClicked(const QString&, const QString&)").constData()) != -1) {
52 if (metaObject->indexOfSignal(QMetaObject::normalizedSignature("phoneNumberClicked(const KContacts::PhoneNumber&)").constData()) != -1) {
53 connect(view, SIGNAL(phoneNumberClicked(KContacts::PhoneNumber)), this, SLOT(dialPhoneNumber(KContacts::PhoneNumber)));
56 if (metaObject->indexOfSignal(QMetaObject::normalizedSignature("smsClicked(const KContacts::PhoneNumber&)").constData()) != -1) {
57 connect(view, SIGNAL(smsClicked(KContacts::PhoneNumber)), this, SLOT(sendSms(KContacts::PhoneNumber)));
60 if (metaObject->indexOfSignal(QMetaObject::normalizedSignature("addressClicked(const KContacts::Address&)").constData()) != -1) {
61 connect(view, SIGNAL(addressClicked(KContacts::Address)), this, SLOT(showAddress(KContacts::Address)));
99 url.setPath(QString::number(address.geo().latitude()) + QLatin1Char(',') + QString::number(address.geo().longitude()));
107 q.push_back(address.postalCode().isEmpty() ? address.locality() : (address.postalCode() + QLatin1Char(' ') + address.locality()));
QString number(int n, int base)
void sendEmail(const QString &name, const QString &address)
Opens the users preferred mail composer and does the setup to send a mail to the contact with the giv...
Definition: contactdefaultactions.cpp:70
~ContactDefaultActions() override
Destroys the contact default actions object.
void push_back(const T &value)
bool openUrl(const QUrl &url)
static KCountry fromName(QStringView name)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void sendSms(const KContacts::PhoneNumber &number)
Sends a sms to number with the application as configured by the user in the general settings dialog.
Definition: contactdefaultactions.cpp:87
QByteArray normalizedSignature(const char *method)
void setScheme(const QString &scheme)
void showUrl(const QUrl &url)
Shows the given url in the users preferred webbrowser.
Definition: contactdefaultactions.cpp:65
int indexOfSignal(const char *signal) const const
QString join(const QString &separator) const const
virtual const QMetaObject * metaObject() const const
void setQuery(const QString &query, QUrl::ParsingMode mode)
An action to dial the phone number of a contact.
Definition: dialphonenumberaction.h:23
ContactDefaultActions(QObject *parent=nullptr)
Creates a new contact default actions object.
Definition: contactdefaultactions.cpp:30
void setNameFromString(const QString &s)
QString fullEmail(const QString &email=QString()) const
const char * constData() const const
void dialPhoneNumber(const KContacts::PhoneNumber &number)
Dials the given phone number with the application as configured by the user in the general settings d...
Definition: contactdefaultactions.cpp:81
void setPath(const QString &path, QUrl::ParsingMode mode)
void connectToView(QObject *view)
Tries to connect the well known signals of the view to the well known slots of this object.
Definition: contactdefaultactions.cpp:38
void showAddress(const KContacts::Address &address)
Shows the address of a contact in a webbrowser or application as configured by the user in the genera...
Definition: contactdefaultactions.cpp:93
bool isEmpty
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.