diff --git a/spectrum/src/spectrumbuddy.h b/spectrum/src/spectrumbuddy.h index 0725b9c6abbda8b9278116cf8397c90fbcf312d3..0e8ad9e21055a16aa71ba3fd722e34f6ac1e6c68 100644 --- a/spectrum/src/spectrumbuddy.h +++ b/spectrum/src/spectrumbuddy.h @@ -42,11 +42,16 @@ class SpectrumBuddy : public AbstractBuddy { std::string getIconHash(); std::vector getGroups(); std::string getSafeName(); + + void addBuddy(PurpleBuddy *buddy) { m_buddies.push_back(buddy); } + void removeBuddy(PurpleBuddy *buddy) { m_buddies.remove(buddy); } + int getBuddiesCount() { return m_buddies.size(); } PurpleBuddy *getBuddy() { return m_buddy; } private: PurpleBuddy *m_buddy; + std::list m_buddies; }; #endif