Esempio n. 1
0
KoDocumentInfo::KoDocumentInfo(QObject *parent) : QObject(parent)
{
    m_aboutTags << "title" << "description" << "subject" << "comments"
    << "keyword" << "initial-creator" << "editing-cycles"
    << "date" << "creation-date" << "language";

    m_authorTags << "creator" << "initial" << "author-title"
    << "email" << "telephone" << "telephone-work"
    << "fax" << "country" << "postal-code" << "city"
    << "street" << "position" << "company";

    setAboutInfo("editing-cycles", "0");
    setAboutInfo("initial-creator", i18n("Unknown"));
    setAboutInfo("creation-date", QDateTime::currentDateTime()
                 .toString(Qt::ISODate));
}
Esempio n. 2
0
void ICQClient::setInfo(ICQUser *u)
{
    bool bChange = false;
    if (setMainInfo(u)) bChange = true;
    if (setMoreInfo(u)) bChange = true;
    if (setWorkInfo(u)) bChange = true;
    if (setAboutInfo(u)) bChange = true;
    if (setMailInfo(u)) bChange = true;
    if (setInterestsInfo(u)) bChange = true;
    if (setBackgroundInfo(u)) bChange = true;
    if (Phones != u->Phones){
        Phones = u->Phones;
        if (updatePhoneBook()) bChange = true;
    }
    if (bChange) sendInfoUpdate();
}