Пример #1
0
void AddresseeTest::emptyTest()
{
    KContacts::Addressee addressee;
    QVERIFY(addressee.isEmpty());

    KContacts::Addressee addresseeWithMail;
    addresseeWithMail.insertEmail(QStringLiteral("*****@*****.**"));
    QVERIFY(!addresseeWithMail.isEmpty());
}
Пример #2
0
static void setEmail2(const QString &value, KContacts::Addressee &addressee)
{
    addressee.insertEmail(value, false);
}