00001 /****************************************************************************** 00002 * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved. 00003 * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved. 00004 *****************************************************************************/ 00012 #if !defined(ALP_FIND_H_) 00013 #define ALP_FIND_H_ 1 00014 00015 #include <stdio.h> 00016 #include <stdlib.h> 00017 #include <sys/types.h> 00018 #include <sys/stat.h> 00019 #include <stdlib.h> 00020 #include <unistd.h> 00021 #include <errno.h> 00022 #include <string.h> 00023 00024 #include <glib-2.0/glib.h> 00025 #include <gdk-pixbuf/gdk-pixbuf.h> 00026 00027 #include <alp/types.h> 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00038 00039 00044 #define ALP_STATUS_FIND_CANCELLED (ALP_CLASS_FIND | 0x0005) 00045 00046 // 00047 // A Find "client" (aka an app that advertises searching, aka participates in 00048 // searching, aka returns results of searching through its data) calls 00049 // these functions. 00050 // 00051 00053 00060 alp_status_t alp_find_results_start(void); 00061 00063 00077 alp_status_t alp_find_results_submit_progress( 00078 const gchar *description); 00079 00081 00111 alp_status_t alp_find_results_submit_one( 00112 const gchar *app, 00113 const char *key, 00114 const GdkPixbuf *icon, 00115 const gchar *primary_desc, 00116 const gchar *secondary_desc); 00117 00119 00127 alp_status_t alp_find_results_end(void); 00128 00132 #ifdef __cplusplus 00133 }; 00134 #endif 00135 00136 #endif /* ALP_FIND_H_ */
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.