00001 /* 00002 * Copyright 2000 Karl Nelson 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Library General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public 00015 * License along with this library; if not, write to the Free 00016 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 * 00018 */ 00019 00020 #ifndef GNOMEMM_APP_CALLBACK_H 00021 #define GNOMEMM_APP_CALLBACK_H 00022 00023 namespace Gnome 00024 { 00025 00026 /* 00027 // With replies 00028 class ReplyHolder 00029 { 00030 public: 00031 ReplyCallback cb_; 00032 ReplyHolder(ReplyCallback cb) : cb_(cb) {} 00033 }; 00034 00035 class StringHolder 00036 { 00037 public: 00038 StringCallback cb_; 00039 StringHolder(StringCallback cb) : cb_(cb) {} 00040 }; 00041 00042 void add_reply(Gnome::Dialog* w, ReplyHolder* rh); 00043 void add_reply(Gnome::Dialog* w, StringHolder* rh); 00044 void reply_call(gint i, void* data); 00045 void string_reply_call(const gchar* i, void* data); 00046 */ 00047 00048 } /* namespace Gnome */ 00049 00050 #endif /* GNOMEMM_APP_CALLBACK_H */