* the idea is nicked from geary.
*
*/
-
+public errordomain FakeServerError {
+ FILE_DOES_NOT_EXIST
+ }
+
public class FakeServer : Object
{
+
WebKit.WebView view;
public FakeServer(WebKit.WebView wkview)
var file = File.new_for_path ( GLib.Environment.get_home_dir() + "/gitlive" + request.get_path());
if (!file.query_exists()) {
print("Skip file missing = %s/gitlive%s\n", GLib.Environment.get_home_dir() , request.get_path());
+ request.finish_error(new FakeServerError.FILE_DOES_NOT_EXIST ("My error msg"));
return;
}
var info = file.query_info(