comparison libgui/src/qtinfo/parser.h @ 19495:17e6c770e6ac gui-release

check existence of uncompressed or compressed info files for doc viewer * parser.cc (set_info_path): return type changed to bool, checking existence of info file uncompressed and with all known compressed file extensions, returns false if no file was found and true after parsing the found file; * parser.h: return type of set_info_path changed to bool * webinfo.cc (ctor): do not check existence of info file since this is done via set_info_path; (set_info_path): return type changed to bool, load Top-node if parser::set_info_path returns true and return the related return value * webinfo.h: return type of set_info_path changed to bool
author Torsten <ttl@justmail.de>
date Fri, 02 Jan 2015 18:47:29 +0100
parents 86c6ae5f969e
children ffc339cea115
comparison
equal deleted inserted replaced
19489:17f5db3a9149 19495:17e6c770e6ac
51 { 51 {
52 Q_OBJECT 52 Q_OBJECT
53 53
54 public: 54 public:
55 parser (QObject *parent = 0); 55 parser (QObject *parent = 0);
56 void set_info_path (const QString& _info_path); 56 bool set_info_path (const QString& _info_path);
57 QString get_info_path (); 57 QString get_info_path ();
58 QString search_node (const QString& node); 58 QString search_node (const QString& node);
59 QString global_search (const QString& text, int maxFounds); 59 QString global_search (const QString& text, int maxFounds);
60 60
61 QString find_ref (const QString &name); 61 QString find_ref (const QString &name);