summaryrefslogtreecommitdiff
path: root/protocols/Sametime/src/userlist.cpp
diff options
context:
space:
mode:
authorSzymon Tokarz <wsx22@o2.pl>2014-11-13 00:05:26 +0000
committerSzymon Tokarz <wsx22@o2.pl>2014-11-13 00:05:26 +0000
commit4ca096262dfc106d1a2207145544cbd3e84e67cb (patch)
treeb84d369c1e4dcf3b38c8acd9d1f3e9202e17ec0a /protocols/Sametime/src/userlist.cpp
parentbef877078d09d6162c1e8565bd34b22fbd9ace69 (diff)
Sametime protocol:
- Support the Sametime 'in meeting' status (linked with Miranda 'Occupied' status) - New protocol icons from oryginal client Patch by pepinlebref git-svn-id: http://svn.miranda-ng.org/main/trunk@10976 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Sametime/src/userlist.cpp')
-rw-r--r--protocols/Sametime/src/userlist.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Sametime/src/userlist.cpp b/protocols/Sametime/src/userlist.cpp
index 9791033b00..2523182785 100644
--- a/protocols/Sametime/src/userlist.cpp
+++ b/protocols/Sametime/src/userlist.cpp
@@ -484,6 +484,9 @@ void mwAwareList_on_aware(mwAwareList* list, mwAwareSnapshot* aware)
case mwStatus_BUSY:
new_status = ID_STATUS_DND;
break;
+ case mwStatus_IN_MEETING: // link 'in meeting' Sametime status
+ new_status = ID_STATUS_OCCUPIED; // with 'Occupied' MIR_NG status
+ break;
}
if (new_status != ID_STATUS_IDLE) //SetSessionStatus(new_status);
proto->UpdateSelfStatus();
@@ -541,6 +544,12 @@ void mwAwareList_on_aware(mwAwareList* list, mwAwareSnapshot* aware)
db_set_w(hContact, proto->m_szModuleName, "Status", new_status);
db_set_dw(hContact, proto->m_szModuleName, "IdleTS", 0);
break;
+ case mwStatus_IN_MEETING:
+ // link 'in meeting' Sametime status to 'Occipied' MIR_NG status
+ new_status = ID_STATUS_OCCUPIED;
+ db_set_w(hContact, proto->m_szModuleName, "Status", new_status);
+ db_set_dw(hContact, proto->m_szModuleName, "IdleTS", 0);
+ break;
}
}
else