Changeset 161:f1800647daef in qutecom-coip for libs/coipmanager_base/include/coipmanager_base/contact/ContactGroupList.h
Legend:
- Unmodified
- Added
- Removed
-
libs/coipmanager_base/include/coipmanager_base/contact/ContactGroupList.h
r125 r161 36 36 typedef std::map<std::string, std::string> ContactGroupList; 37 37 38 class COIPMANAGER_BASE_API ContactGroupListHelper { 39 public: 40 41 static std::string getIdOfGroup(const ContactGroupList & contactGroupList, std::string name) 42 { 43 for(ContactGroupList::const_iterator it = contactGroupList.begin() ; it != contactGroupList.end() ; it ++) 44 { 45 if(it->second == name) 46 return it->first; 47 } 48 49 return ""; 50 } 51 }; 52 38 53 #endif //OWCONTACTGROUPLIST_H
Note: See TracChangeset
for help on using the changeset viewer.
