Exemple #1
0
    SubscribeCallback::Response OnSubscribe(JID From)
    {
        cout << "Got subscribe request from " << From.GetFullJID()
             << " I've decided to make friend with her" << endl;

        return SubscribeCallback::Response::AllowAndSubscribe;
    }
Exemple #2
0
 void OnPresence(JID From,
                 bool Available,
                 int Priority,
                 string Status,
                 string Message)
 {
     cout << "Got presence from " << From.GetFullJID()
          << " available: " << Available
          << " priority " << Priority << " status \""
          << Status << "\" with message \""
          << Message << "\"" << endl;
 }
Exemple #3
0
 void OnUnsubscribed(JID From)
 {
     cout << From.GetFullJID() << " doesnt want to be friend with me anymore."
          << " I will cancel my friendship with her!" << endl;
 }
Exemple #4
0
 void OnSubscribed(JID To)
 {
     cout << "I am now friend with " << To.GetFullJID() << endl;
 }