"/org/maemo/movieposter/IMDb",
"org.maemo.movieposter.Provider");
server.Fetched.connect (this.on_poster_fetched);
+ server.Failed.connect (this.on_poster_failed);
} catch (Error e) {
warning ("Couldn't connect to IMDb poster downloader: %s\n", e.message);
}
}
}
+ private void on_poster_failed (dynamic DBus.Object server, int handle) {
+ Request request = null;
+ foreach (Request r in requests) {
+ if (r.handle == handle) {
+ request = r;
+ break;
+ }
+ }
+ if (request == null)
+ return;
+ requests.remove (request);
+ // request.callback (pixbuf, request.movie);
+ }
+
public void join () {
}
public abstract int FetchThumbnail (string title, string year, string kind) throws DBus.Error;
public abstract void Unqueue (int handle) throws DBus.Error;
public signal void fetched (int handle, string path);
+ public signal void failed (int handle);
}