PageRenderTime 188ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llimfloatercontainer.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 70 lines | 31 code | 14 blank | 25 comment | 0 complexity | 9a2050671fb47830cff97c0914afebbc MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llimfloatercontainer.h
  3. * @brief Multifloater containing active IM sessions in separate tab container tabs
  4. *
  5. * $LicenseInfo:firstyear=2009&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLIMFLOATERCONTAINER_H
  27. #define LL_LLIMFLOATERCONTAINER_H
  28. #include <map>
  29. #include <vector>
  30. #include "llfloater.h"
  31. #include "llmultifloater.h"
  32. #include "llavatarpropertiesprocessor.h"
  33. #include "llgroupmgr.h"
  34. class LLTabContainer;
  35. class LLIMFloaterContainer : public LLMultiFloater
  36. {
  37. public:
  38. LLIMFloaterContainer(const LLSD& seed);
  39. virtual ~LLIMFloaterContainer();
  40. /*virtual*/ BOOL postBuild();
  41. /*virtual*/ void onOpen(const LLSD& key);
  42. void onCloseFloater(LLUUID& id);
  43. /*virtual*/ void addFloater(LLFloater* floaterp,
  44. BOOL select_added_floater,
  45. LLTabContainer::eInsertionPoint insertion_point = LLTabContainer::END);
  46. static LLFloater* getCurrentVoiceFloater();
  47. static LLIMFloaterContainer* findInstance();
  48. static LLIMFloaterContainer* getInstance();
  49. virtual void setMinimized(BOOL b);
  50. private:
  51. typedef std::map<LLUUID,LLFloater*> avatarID_panel_map_t;
  52. avatarID_panel_map_t mSessions;
  53. boost::signals2::connection mNewMessageConnection;
  54. void onNewMessageReceived(const LLSD& data);
  55. };
  56. #endif // LL_LLIMFLOATERCONTAINER_H