1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[DBus (name = "org.pantheon.files.db")]
interface Demo : Object {
public abstract bool showTable (string table) throws IOError;
public abstract int getColor (string uri) throws IOError;
public abstract bool setColor (string uri, int color) throws IOError;
public abstract bool deleteEntry (string uri) throws IOError;
public abstract bool clearDB () throws IOError;
}
void main () {
try {
Demo demo = Bus.get_proxy_sync (BusType.SESSION, "org.pantheon.files.db",
"/org/pantheon/files/db");
demo.showTable ("tags");
} catch (IOError e) {
stderr.printf ("%s\n", e.message);
}
}
|