/* Copyright (C) 2006 by Marc Maurer <uwog@uwog.net>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 */

#ifndef __DOCHANDLE_H__
#define __DOCHANDLE_H__

#include "ut_string_class.h"
class AbiCollab;

 class DocHandle
{
public:
	DocHandle(const std::string& sSessionId, const UT_UTF8String& name)
		: m_sSessionId(sSessionId),
	  m_name(name),
	  m_pAbiCollab(NULL)
	{
	}
	virtual ~DocHandle() {}

	const std::string&		getSessionId() const
		{ return m_sSessionId; }
	const UT_UTF8String&		getName() const
		{ return m_name; }
	void setSession(AbiCollab * pAbiCollab)
		{ m_pAbiCollab = pAbiCollab; }

	AbiCollab *					getSession(void)
		{ return m_pAbiCollab;}

private:
	const std::string			m_sSessionId;
	const UT_UTF8String			m_name;
	AbiCollab *					m_pAbiCollab;
};

#endif /* DOCHANDLE_H */
