Kopete via dbus
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NDesk D-Bus |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
i cannot obtain contact properties from Kopete via dbus. I am using the current version from ubuntu karmic (Dbus 0.6.0.3 , DBus glib 0.4.1).The listing of contacts and obtaining name working without any troubles. The exception is :
Unhandled Exception: System.Exception: Read pos 316 != ep 313
at NDesk.DBus.
at NDesk.DBus.
at NDesk.DBus.
at NDesk.DBus.
at NDesk.DBus.
at NDesk.DBus.
at KopeteProxy.
at DBusTest.
The source code is :
using System;
//using GLib;
using Gtk;
using NDesk.DBus;
using org.freedesktop
using System.Collections;
using System.
namespace DBusTest
{
class MainClass
{
public static void Main(string[] args)
{
BusG.Init ();
Applicati
Bus bus = Bus.Session;
ObjectPath path = new ObjectPath ("/Kopete");
Kopete demo = bus.GetObject<
string[] c = demo.contacts();
foreach(String id in c){
Console.
Console.
}
}
}
}
[Interface(
public interface Kopete {
void connectAll();
void disconnectAll();
bool isConnected(string protocolName, string accountId);
void connect(string protocolName, string accountId);
void disconnect(string protocolName, string accountId);
string[] protocols();
string[] identities();
string[] accounts();
string[] contacts();
string labelForIdentit
string[] contactsByFilte
void setIdentityNick
void setIdentityNick
void setIdentityAvat
void setIdentityAvat
void setIdentityOnli
void setIdentityOnli
void setOnlineStatus
void setOnlineStatus
void setStatusMessag
void sendMessage(string contactId, string message);
bool addContact(string protocolName, string accountId, string contactId, string displayName, string groupName);
bool addContact(string protocolName, string accountId, string contactId, string displayName);
void sendFile(string contactId, string fileUrl);
string getDisplayName(
bool isContactOnline
void openChat(string contactID);
Dictionary<
//event EventHandler<
}