PageRenderTime 45ms CodeModel.GetById 35ms app.highlight 5ms RepoModel.GetById 2ms 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
 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
27#ifndef LL_LLIMFLOATERCONTAINER_H
28#define LL_LLIMFLOATERCONTAINER_H
29
30#include <map>
31#include <vector>
32
33#include "llfloater.h"
34#include "llmultifloater.h"
35#include "llavatarpropertiesprocessor.h"
36#include "llgroupmgr.h"
37
38class LLTabContainer;
39
40class LLIMFloaterContainer : public LLMultiFloater
41{
42public:
43	LLIMFloaterContainer(const LLSD& seed);
44	virtual ~LLIMFloaterContainer();
45	
46	/*virtual*/ BOOL postBuild();
47	/*virtual*/ void onOpen(const LLSD& key);
48	void onCloseFloater(LLUUID& id);
49
50	/*virtual*/ void addFloater(LLFloater* floaterp, 
51								BOOL select_added_floater, 
52								LLTabContainer::eInsertionPoint insertion_point = LLTabContainer::END);
53
54	static LLFloater* getCurrentVoiceFloater();
55
56	static LLIMFloaterContainer* findInstance();
57
58	static LLIMFloaterContainer* getInstance();
59
60	virtual void setMinimized(BOOL b);
61
62private:
63	typedef std::map<LLUUID,LLFloater*> avatarID_panel_map_t;
64	avatarID_panel_map_t mSessions;
65	boost::signals2::connection mNewMessageConnection;
66
67	void onNewMessageReceived(const LLSD& data);
68};
69
70#endif // LL_LLIMFLOATERCONTAINER_H