outfd.puts(" xsi:schemaLocation=\"http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd\">\n");
outfd.puts(" <metadata>\n");
outfd.printf(" <name>%s</name>\n", Markup.escape_text(title));
+ outfd.printf(" <keywords>%s</keywords>\n", Markup.escape_text(tag));
outfd.puts(" </metadata>\n");
if (track != null) writeTrack(outfd);
if (entries != null) writeEntries(outfd);
break;
}
}
+ else if (name == "keywords")
+ {
+ result.tag = cur_text;
+ }
else if (name == "time")
{
Time t = Time();
return parser.result;
}
- public delegate bool EntriesVisitor(string dir, string name);
+ public void set_acknowledged(string name, bool acked)
+ {
+ string from, to;
+ if (acked)
+ {
+ from = config.homedir + "/log/" + name;
+ to = config.homedir + "/archive/" + name;
+ DirUtils.create(config.homedir + "/archive", 0777);
+ } else {
+ from = config.homedir + "/archive/" + name;
+ to = config.homedir + "/log/" + name;
+ DirUtils.create(config.homedir + "/log", 0777);
+ }
+ if (FileUtils.test(from, FileTest.EXISTS))
+ {
+ FileUtils.rename(from, to);
+ entries_changed();
+ }
+ }
+ public delegate bool EntriesVisitor(string dir, string name);
protected void list_dir(string dir, EntriesVisitor visitor)
{