open-source-search-engine/PageResults.h
2013-10-13 15:45:12 -07:00

41 lines
1.2 KiB
C

#ifndef _PAGERESULTS_H_
#define _PAGERESULTS_H_
#include "SafeBuf.h"
bool printDmozRadioButtons ( SafeBuf &sb , long catId ) ;
bool printLogoAndSearchBox ( SafeBuf &sb , class HttpRequest *hr, long catId );
bool printTermPairs ( SafeBuf &sb , class Query *q , class PairScore *ps ) ;
bool printSingleTerm ( SafeBuf &sb , class Query *q , class SingleScore *ss );
bool printEventAddress ( SafeBuf &sb , char *addrStr , class SearchInput *si ,
double *lat , double *lon , bool isXml ,
// use this for printing distance if lat/lon above
// is invalid. only for non-xml printing though.
float zipLat ,
float zipLon ,
double eventGeocoderLat,
double eventGeocoderLon,
char *eventBestPlaceName );
bool printDMOZCrumb ( SafeBuf &sb , long catId , bool xml ) ;
bool printDMOZSubTopics ( SafeBuf& sb, long catId, bool inXml ) ;
bool printEventCountdown2 ( SafeBuf &sb ,
SearchInput *si,
long now ,
long timeZoneOffset ,
char useDST,
long nextStart ,
long nextEnd ,
long prevStart ,
long prevEnd ,
bool storeHours ,
bool onlyPrintIfSoon ) ;
char **getEventCategories();
#endif