4 * $XConsortium: DtMailDialogCallbackData.hh /main/4 1996/04/21 19:41:35 drk $
6 * RESTRICTED CONFIDENTIAL INFORMATION:
8 * The information in this document is subject to special
9 * restrictions in a confidential disclosure agreement between
10 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
11 * document outside HP, IBM, Sun, USL, SCO, or Univel without
12 * Sun's specific written approval. This document and all copies
13 * and derivative works thereof must be returned or destroyed at
16 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
21 ///////////////////////////////////////////////////////////////////////////////
22 //////////////////////////////////////////////////////////////////////////////
23 // This example code is from the book:
25 // Object-Oriented Programming with C++ and OSF/Motif
28 // Prentice Hall, 1992
31 // Copyright 1991 by Prentice Hall
32 // All Rights Reserved
34 // Permission to use, copy, modify, and distribute this software for
35 // any purpose except publication and without fee is hereby granted, provided
36 // that the above copyright notice appear in all copies of the software.
37 ///////////////////////////////////////////////////////////////////////////////
38 //////////////////////////////////////////////////////////////////////////////
41 ////////////////////////////////////////////////////////////////
42 // DtMailDialogCallbackData.h: Auxiliary class used by DtMailGenDialog
43 //////////////////////////////////////////////////////////////
44 #ifndef DTMAILDIALOGCALLBACKDATA
45 #define DTMAILDIALOGCALLBACKDATA
47 class DtMailGenDialog;
49 typedef void (*DialogCallback)( void * );
51 class DtMailDialogCallbackData {
55 DtMailGenDialog *_dialog;
58 DialogCallback _cancel;
59 DialogCallback _other;
65 DtMailDialogCallbackData ( DtMailGenDialog *dialog,
68 DialogCallback cancel,
78 _clientData = clientData;
82 DtMailGenDialog *dialog() { return _dialog; }
83 DialogCallback ok() { return _ok; }
84 DialogCallback help() { return _help; }
85 DialogCallback cancel() { return _cancel; }
86 DialogCallback other() { return _other; }
87 void *clientData() { return _clientData; }
88 Widget other_w() { return _other_w; }