/* $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 #m4 include(class_bonoboobject.m4) _DEFS(bonobomm/servers,libbonobo) _PINCLUDE(glibmm/private/object_p.h) 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 { _CLASS_BONOBOOBJECT(Unknown_CImpl, BonoboObject, BONOBO_OBJECT, Glib::Object, GObject, Bonobo::Unknown) _STRUCT_NOT_HIDDEN public: virtual void reference() const; virtual void unreference() const; //Bonobo::Unknown methods: _WRAP_CORBA_METHOD(void ref()); _WRAP_CORBA_METHOD(void unref()); _WRAP_CORBA_METHOD(::Bonobo::Unknown_ptr queryInterface(char const* repoid)); _WRAP_METHOD(void set_immortal(bool immortal = true), bonobo_object_set_immortal) }; } //namespace Servers } //namespace Bonobo } //namespace Gnome