[ekiga] Presence: Added more presence states.



commit 7ac30320ace153e5f6219d390df3542db7dcca17
Author: Damien Sandras <dsandras beip be>
Date:   Sat Nov 19 12:43:49 2011 +0100

    Presence: Added more presence states.
    
    When RPIDF is not used (eg SNOM phones), we can rely solely on the
    <note> element to determine the peer's presence state.

 lib/engine/components/opal/opal-account.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 7160eeb..485885f 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -704,11 +704,14 @@ Opal::Account::OnPresenceChange (OpalPresentity& /*presentity*/,
     new_presence = "online";
     if (!note.IsEmpty ()) {
       if (note.Find ("dnd") != P_MAX_INDEX
+          || note.Find ("meeting") != P_MAX_INDEX
           || note.Find ("do not disturb") != P_MAX_INDEX
           || note.Find ("busy") != P_MAX_INDEX) {
         new_presence = "dnd";
       }
       else if (note.Find ("away") != P_MAX_INDEX
+               || note.Find ("out") != P_MAX_INDEX
+               || note.Find ("vacation") != P_MAX_INDEX
                || note.Find ("holiday") != P_MAX_INDEX
                || note.Find ("lunch") != P_MAX_INDEX) {
         new_presence = "away";



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]