Use generated dbus interface rather than editing it every time
This commit is contained in:
50
src/service/interface/dbusservice.vala
Normal file
50
src/service/interface/dbusservice.vala
Normal file
@@ -0,0 +1,50 @@
|
||||
/* Generated by vala-dbus-binding-tool 1.0-aa2fb. Do not modify! */
|
||||
/* Generated with: vala-dbus-binding-tool --no-synced --strip-namespace=net --strip-namespace=buzzert --rename-namespace=kordophone:DBusService --api-path=xml/ */
|
||||
using GLib;
|
||||
|
||||
namespace DBusService {
|
||||
|
||||
[DBus (name = "net.buzzert.kordophone.Settings", timeout = 120000)]
|
||||
public interface Settings : GLib.Object {
|
||||
|
||||
[DBus (name = "ServerURL")]
|
||||
public abstract string server_u_r_l { owned get; set; }
|
||||
|
||||
[DBus (name = "Username")]
|
||||
public abstract string username { owned get; set; }
|
||||
|
||||
[DBus (name = "CredentialItem")]
|
||||
public abstract GLib.ObjectPath credential_item { owned get; set; }
|
||||
|
||||
[DBus (name = "SetServer")]
|
||||
public abstract void set_server(string url, string user) throws DBusError, IOError;
|
||||
|
||||
[DBus (name = "ConfigChanged")]
|
||||
public signal void config_changed();
|
||||
}
|
||||
|
||||
[DBus (name = "net.buzzert.kordophone.Repository", timeout = 120000)]
|
||||
public interface Repository : GLib.Object {
|
||||
|
||||
[DBus (name = "GetVersion")]
|
||||
public abstract string get_version() throws DBusError, IOError;
|
||||
|
||||
[DBus (name = "GetConversations")]
|
||||
public abstract GLib.HashTable<string, GLib.Variant>[] get_conversations() throws DBusError, IOError;
|
||||
|
||||
[DBus (name = "SyncAllConversations")]
|
||||
public abstract void sync_all_conversations() throws DBusError, IOError;
|
||||
|
||||
[DBus (name = "SyncConversation")]
|
||||
public abstract void sync_conversation(string conversation_id) throws DBusError, IOError;
|
||||
|
||||
[DBus (name = "ConversationsUpdated")]
|
||||
public signal void conversations_updated();
|
||||
|
||||
[DBus (name = "GetMessages")]
|
||||
public abstract GLib.HashTable<string, GLib.Variant>[] get_messages(string conversation_id, string last_message_id) throws DBusError, IOError;
|
||||
|
||||
[DBus (name = "MessagesUpdated")]
|
||||
public signal void messages_updated(string conversation_id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user