// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _BONOBOMM_SERVERS_UNKNOWN_CIMPL_H #define _BONOBOMM_SERVERS_UNKNOWN_CIMPL_H #include /* $Id: unknown_cimpl.hg,v 1.2 2002/10/12 21:53:18 murrayc Exp $ */ /* object.h * * Copyright (C) 2002 The libbonobomm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include #ifndef DOXYGEN_SHOULD_SKIP_THIS #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gnome { namespace Bonobo { namespace Servers { class Unknown_CImpl_Class; } // namespace Servers } // namespace Bonobo } // namespace Gnome namespace Gnome { namespace Bonobo { namespace Servers { /** This is a C++ wrapper of BonoboObject, which implements the BonoboUnknown interface in C. * It's used as a base for other wrappers of C server implementations. * When we custom-implement servers in C++ we derive from Unknown_CppImpl instead. */ class Unknown_CImpl : public Glib::Object, public virtual ::POA_Bonobo::Unknown { public: #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef Unknown_CImpl CppObjectType; typedef Unknown_CImpl_Class CppClassType; typedef BonoboObject BaseObjectType; typedef BonoboObjectClass BaseClassType; private: friend class Unknown_CImpl_Class; static CppClassType unknown_cimpl_class_; Unknown_CImpl(const Unknown_CImpl&); Unknown_CImpl& operator=(const Unknown_CImpl&); // not implemented protected: explicit Unknown_CImpl(BonoboObject* castitem); #endif /* DOXYGEN_SHOULD_SKIP_THIS */ ::Bonobo::Unknown_var corbaref_; public: virtual ~Unknown_CImpl(); static Glib::RefPtr wrap_specific_type(BonoboObject* gobject, bool take_copy = false); //Re-uses the existing wrapper, if it exists. #ifndef DOXYGEN_SHOULD_SKIP_THIS static GType get_type() G_GNUC_CONST; static GType get_base_type() G_GNUC_CONST; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ BonoboObject* gobj() { return (BonoboObject*)(gobject_); } const BonoboObject* gobj() const { return (BonoboObject*)(gobject_); } BonoboObject* gobj_copy(); public: //C++ methods used to invoke GTK+ virtual functions: protected: //GTK+ Virtual Functions (override these to change behaviour): //Default Signal Handlers:: private: public: virtual void reference() const; virtual void unreference() const; //Bonobo::Unknown methods: void ref() throw(CORBA::SystemException); ; void unref() throw(CORBA::SystemException); ; ::Bonobo::Unknown_ptr queryInterface(char const* repoid) throw(CORBA::SystemException); ; void set_immortal(bool immortal = true); }; } //namespace Servers } //namespace Bonobo } //namespace Gnome namespace Glib { /** @relates Gnome::Bonobo::Servers::Unknown_CImpl */ Glib::RefPtr wrap(BonoboObject* object, bool take_copy = false); } #endif /* _BONOBOMM_SERVERS_UNKNOWN_CIMPL_H */