Ignore:
Timestamp:
Mar 26, 2010 5:16:50 PM (3 years ago)
Author:
laurent
Branch:
default
Message:

fix purple integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libs/coipmanager_base/include/coipmanager_base/contact/ContactGroupList.h

    r125 r161  
    3636typedef std::map<std::string, std::string> ContactGroupList; 
    3737 
     38class COIPMANAGER_BASE_API  ContactGroupListHelper { 
     39public: 
     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 
    3853#endif //OWCONTACTGROUPLIST_H 
Note: See TracChangeset for help on using the changeset viewer.