|
GnuCash 2.4.99
|
00001 /* 00002 * Copyright (C) 2002 Derek Atkins 00003 * 00004 * Authors: Derek Atkins <warlord@MIT.EDU> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License as 00008 * published by the Free Software Foundation; either version 2 of 00009 * the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public 00017 * License along with this program; if not, write to the 00018 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef _GNCSEARCH_DATE_H 00023 #define _GNCSEARCH_DATE_H 00024 00025 #include "search-core-type.h" 00026 #include "qof.h" 00027 #include "qof.h" 00028 00029 #define GNC_TYPE_SEARCH_DATE (gnc_search_date_get_type ()) 00030 #define GNCSEARCH_DATE(obj) GTK_CHECK_CAST (obj, GNC_TYPE_SEARCH_DATE, GNCSearchDate) 00031 #define GNCSEARCH_DATE_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, GNC_TYPE_SEARCH_DATE, GNCSearchDateClass) 00032 #define IS_GNCSEARCH_DATE(obj) GTK_CHECK_TYPE (obj, GNC_TYPE_SEARCH_DATE) 00033 00034 typedef struct _GNCSearchDate GNCSearchDate; 00035 typedef struct _GNCSearchDateClass GNCSearchDateClass; 00036 00037 struct _GNCSearchDate 00038 { 00039 GNCSearchCoreType parent; 00040 00041 QofQueryCompare how; 00042 Timespec ts; 00043 }; 00044 00045 struct _GNCSearchDateClass 00046 { 00047 GNCSearchCoreTypeClass parent_class; 00048 00049 /* virtual methods */ 00050 00051 /* signals */ 00052 }; 00053 00054 GType gnc_search_date_get_type (void); 00055 GNCSearchDate *gnc_search_date_new (void); 00056 00057 /* methods */ 00058 void gnc_search_date_set_date (GNCSearchDate *fi, Timespec ts); 00059 void gnc_search_date_set_how (GNCSearchDate *fi, QofQueryCompare how); 00060 00061 #endif /* ! _GNCSEARCH_DATE_H */ 00062
1.7.4