~ubuntu-branches/debian/experimental/kopete/experimental

« back to all changes in this revision

Viewing changes to protocols/meanwhile/meanwhileprotocol.cpp

  • Committer: Package Import Robot
  • Author(s): Maximiliano Curia
  • Date: 2015-02-24 11:32:57 UTC
  • mfrom: (1.1.41 vivid)
  • Revision ID: package-import@ubuntu.com-20150224113257-gnupg4v7lzz18ij0
Tags: 4:14.12.2-1
* New upstream release (14.12.2).
* Bump Standards-Version to 3.9.6, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
{
99
99
    QString contactId = serializedData[ "contactId" ];
100
100
    QString accountId = serializedData[ "accountId" ];
 
101
    Kopete::Contact::NameType nameType = Kopete::Contact::nameTypeFromString(serializedData[ "preferredNameType" ]);
101
102
 
102
103
    MeanwhileAccount *theAccount = 
103
104
            static_cast<MeanwhileAccount*>(
110
111
    }
111
112
 
112
113
    theAccount->addContact(contactId, metaContact, Kopete::Account::DontChangeKABC);
113
 
        return theAccount->contacts().value(contactId);
 
114
 
 
115
    Kopete::Contact *c = theAccount->contacts().value(contactId);
 
116
    if (!c)
 
117
        return 0;
 
118
 
 
119
    c->setPreferredNameType(nameType);
 
120
    return c;
114
121
}
115
122
 
116
123
const Kopete::OnlineStatus MeanwhileProtocol::accountOfflineStatus()