Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

callback.h

Go to the documentation of this file.
00001 // $Id: callback.h,v 1.4 2004/02/13 17:26:17 murrayc Exp $ -*- c++ -*- 00002 00003 /* callback.h 00004 * 00005 * Copyright (C) 2000-2002 GConfmm Development Team 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public 00018 * License along with this library; if not, write to the Free 00019 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 00022 #ifndef GCONFMM_CALLBACK_H 00023 #define GCONFMM_CALLBACK_H 00024 00025 extern "C" 00026 { 00027 #include <gconf/gconf-client.h> 00028 } 00029 00030 #include <glibmm/object.h> 00031 #include <gconfmm/entry.h> 00032 00033 namespace Gnome 00034 { 00035 00036 namespace Conf 00037 { 00038 00039 typedef sigc::slot<void, guint, Entry> Callback; 00040 00041 class Client; 00042 00043 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00044 class CallbackHolder 00045 { 00046 public: 00047 00048 CallbackHolder(Callback slot); 00049 ~CallbackHolder(); 00050 00051 void add(Client* pObj); 00052 00053 Callback m_Slot; 00054 00055 static void destroy(void *data); 00056 static void call(GConfClient *client, guint i, GConfEntry *entry, void *data); 00057 }; 00058 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00059 00060 } /* namespace Conf */ 00061 } /* namespace Gnome */ 00062 00063 #endif //GCONFMM_CALLBACK_H

Generated on Tue Jun 8 02:43:44 2004 for gconfmm by doxygen 1.3.7