1 /*----------------------------------------------------------------------------
2 --
3 --  Module:           xtmShowToDo
4 --
5 --  Project:          Xdiary
6 --  System:           xtm - X Desktop Calendar
7 --    Subsystem:      <>
8 --    Function block: <>
9 --
10 --  Description:
11 --    Interface file for module xtmShowToDo.
12 --
13 --  Filename:         xtmShowToDo.h
14 --
15 --  Authors:          Roger Larsson, Ulrika Bornetun
16 --  Creation date:    1991-01-24
17 --
18 --
19 --  (C) Copyright Ulrika Bornetun, Roger Larsson (1995)
20 --      All rights reserved
21 --
22 --  Permission to use, copy, modify, and distribute this software and its
23 --  documentation for any purpose and without fee is hereby granted,
24 --  provided that the above copyright notice appear in all copies. Ulrika
25 --  Bornetun and Roger Larsson make no representations about the usability
26 --  of this software for any purpose. It is provided "as is" without express
27 --  or implied warranty.
28 ----------------------------------------------------------------------------*/
29 
30 /* SCCS module identifier. */
31 /* SCCSID = @(#) Module: xtmShowToDo.h, Version: 1.1, Date: 95/02/18 15:52:52 */
32 
33 
34 /* Include this module only once. */
35 #ifndef define_xtmShowToDo_h
36 #  define define_xtmShowToDo_h
37 
38 
39 /*----------------------------------------------------------------------------
40 --  Include files
41 ----------------------------------------------------------------------------*/
42 
43 #include "TimDate.h"
44 
45 #include "xtmGlobal.h"
46 
47 
48 /*----------------------------------------------------------------------------
49 --  Macro definitions
50 ----------------------------------------------------------------------------*/
51 
52 
53 /*----------------------------------------------------------------------------
54 --  Type declarations
55 ----------------------------------------------------------------------------*/
56 
57 /* Reasons when the action routine is called. */
58 typedef enum {
59   XTM_SD_REASON_DESTROY
60 } XTM_SD_REASON;
61 
62 /* Handle to use when comminucating with the summary window. */
63 typedef  void  *XTM_SD_HANDLE;
64 
65 /* Callback when the summary window is destroyed. */
66 typedef void ( *XTM_SD_ACTION_CB ) ( XTM_SD_REASON, void * );
67 
68 
69 /*----------------------------------------------------------------------------
70 --  Global definitions
71 ----------------------------------------------------------------------------*/
72 
73 
74 /*----------------------------------------------------------------------------
75 --  Function prototypes
76 ----------------------------------------------------------------------------*/
77 
78 void
79   xtmSdDestroy( XTM_SD_HANDLE  show_handle );
80 
81 void
82   xtmSdDisplaySummary( XTM_SD_HANDLE  show_handle,
83                        TIM_TIME_REF   from_date,
84                        TIM_TIME_REF   to_date,
85                        char           *search_tags );
86 
87 void
88   xtmSdEmptyCache();
89 
90 XTM_SD_HANDLE
91   xtmSdInitialize( XTM_GL_BASE_DATA_REF  appl_data_ref,
92                    Widget                toplevel,
93                    char                  *db_name,
94                    XTM_SD_ACTION_CB      actionCB,
95                    void                  *user_data );
96 
97 #endif
98