// -*- c++ -*-
//  Generated by gtkmmproc from ./../data.gen_h -- DO NOT MODIFY!
#ifndef _GTKMM_DATA_H
#define _GTKMM_DATA_H

/* $Id: data.h,v 1.2 2003/06/17 16:37:40 pbd Exp $ */

/* data.h
 *
 * Copyright (C) 1998-1999 The Gtk-- 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 <gtk--/object.h>
#include <gtk/gtkdata.h>

namespace Gtk {
class Data;
class Data_Class;
}
namespace Gtk { Gtk::Data *wrap (GtkData *o); }
namespace Gtk
{
//: Abstract base class for objects containing data.
//- The {\class Gtk:Data} object is a very simple object intended to be used as a base class
//- for objects which contain data (i.e. the 'Model' in the object-oriented
//- Model/View/Controller framework).
//-
//- Currently it is not very useful since all it provides is a "disconnect" signal.
//- This signal could be emitted by a {\class Gtk::Data} subclass to notify any
//- 'Views' that they should disconnect from the {\class Gtk::Data} (the 'Model'),
//- possibly just before the {\class Gtk::Data} is destroyed.
class Data : public Object {

public:
  typedef Data          CppObjectType;
  typedef Data_Class    CppClassType;
  typedef GtkData           BaseObjectType;
  typedef GtkDataClass      BaseClassType;

private:
  friend class Data_Class;
  static CppClassType data_class;

  Data(const Data&);
  Data& operator=(const Data&); // not implemented

protected:
  void   initialize_class();
  explicit Data(GtkData *castitem);

public:
  static GtkType get_type();
  GtkData* gtkobj()             { return (GtkData*)(gtkobject); }
  const GtkData* gtkobj() const { return (GtkData*)(gtkobject); }
  static bool isA(Object *checkcast);

  // Hook for proxies
  static const char* const signal_names[];

  virtual ~Data();

private:

public:



  //: Emitted to notify any views on the {\class Gtk::Data} object to disconnect
  //: from it, possibly because the {\class Gtk::Data} object is about to be destroyed.


protected:
  Data();

public:

  union
    {
      CppObjectType * data_self;
      Gtk::ProxySignal0<void,CppObjectType,BaseObjectType,0> disconnect;
    };

protected:
  // impl functions
    virtual void disconnect_impl();

};

}


#endif
