• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

DocHandle.h

Go to the documentation of this file.
00001 /* Copyright (C) 2006 by Marc Maurer <uwog@uwog.net>
00002  *
00003  * This program is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU General Public License
00005  * as published by the Free Software Foundation; either version 2
00006  * of the License, or (at your option) any later version.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00016  * 02110-1301 USA.
00017  */
00018 
00019 #ifndef __DOCHANDLE_H__
00020 #define __DOCHANDLE_H__
00021 
00022 #include "ut_string_class.h"
00023 class AbiCollab;
00024 
00025  class DocHandle
00026 {
00027 public:
00028     DocHandle(const std::string& sSessionId, const UT_UTF8String& name)
00029         : m_sSessionId(sSessionId),
00030       m_name(name),
00031       m_pAbiCollab(NULL)
00032     {
00033     }
00034     virtual ~DocHandle() {}
00035 
00036     const std::string&      getSessionId() const
00037         { return m_sSessionId; }
00038     const UT_UTF8String&        getName() const
00039         { return m_name; }
00040     void setSession(AbiCollab * pAbiCollab)
00041         { m_pAbiCollab = pAbiCollab; }
00042 
00043     AbiCollab *                 getSession(void)
00044         { return m_pAbiCollab;}
00045 
00046 private:
00047     const std::string           m_sSessionId;
00048     const UT_UTF8String         m_name;
00049     AbiCollab *                 m_pAbiCollab;
00050 };
00051 
00052 #endif /* DOCHANDLE_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1