示例#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);
}