Logo Search packages:      
Sourcecode: gabber version File versions  Download package

int Presence::getPriority (  )  const

Get the priority of the presence. The priority determines which resource messages should default to sending to if the sender has logged in multiple times. If two resources have the same priority, the most recently logged in resource is the default.

Priority as an int, 0 or greater. 0 if nonexistent.

Definition at line 110 of file jabberoo-presence.cc.

References judo::Element::getChildCData(), and ptUnavailable.

Referenced by jabberoo::PresenceDB::insert().

     if (_type == Presence::ptUnavailable)
        return -1;
        return atoi(_base.getChildCData("priority").c_str());

Generated by  Doxygen 1.6.0   Back to index