Re: [Interest] Question about using QtDBus

2014-09-04 Thread Rogers Nate
On 09/04/2014 12:02 PM, Thiago Macieira wrote: > It's automatic if you try to access the data. >> void CanData::generateTestData() >> { >> QDBusPendingReply > logData = >> m_ServiceData->serviceErrorLog(); >> logData.waitForFinished(); >> if (logData.isError()) >> { >> qDebu

Re: [Interest] Question about using QtDBus

2014-09-04 Thread Thiago Macieira
On Thursday 04 September 2014 12:40:16 Rogers Nate wrote: > On 09/03/2014 01:34 PM, Thiago Macieira wrote: > > On Wednesday 03 September 2014 17:16:47 Rogers Nate wrote: > >> >> > >> value="QList"/> > > > > Not valid XML. The < needs to be < and the > needs to be > > > Ha, that was it,

Re: [Interest] Question about using QtDBus

2014-09-04 Thread Rogers Nate
On 09/03/2014 01:34 PM, Thiago Macieira wrote: > On Wednesday 03 September 2014 17:16:47 Rogers Nate wrote: >> > value="QList"/> > Not valid XML. The < needs to be < and the > needs to be > Ha, that was it, thanks! One last question on how to process the value, I noticed some people use wa

Re: [Interest] Question about using QtDBus

2014-09-03 Thread Thiago Macieira
On Wednesday 03 September 2014 17:16:47 Rogers Nate wrote: > value="QList"/> Not valid XML. The < needs to be < and the > needs to be > -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center

Re: [Interest] Question about using QtDBus

2014-09-03 Thread Rogers Nate
On 09/03/2014 01:15 PM, Thiago Macieira wrote: > On Wednesday 03 September 2014 16:26:31 Rogers Nate wrote: >> public Q_SLOTS: // METHODS >> void serviceErrorLog(); > This isn't right. Is the interface file also returning void (or > QDBusReply)? > > Can you attach the .xml file too? Also her

Re: [Interest] Question about using QtDBus

2014-09-03 Thread Thiago Macieira
On Wednesday 03 September 2014 16:26:31 Rogers Nate wrote: > public Q_SLOTS: // METHODS > void serviceErrorLog(); This isn't right. Is the interface file also returning void (or QDBusReply)? Can you attach the .xml file too? -- Thiago Macieira - thiago.macieira (AT) intel.com Software Arc

Re: [Interest] Question about using QtDBus

2014-09-03 Thread Rogers Nate
On 09/03/2014 01:15 PM, Thiago Macieira wrote: > On Wednesday 03 September 2014 16:26:31 Rogers Nate wrote: >> public Q_SLOTS: // METHODS >> void serviceErrorLog(); > This isn't right. Is the interface file also returning void (or > QDBusReply)? > > Can you attach the .xml file too? http://ww

Re: [Interest] Question about using QtDBus

2014-09-03 Thread Rogers Nate
On 09/03/2014 12:17 PM, Thiago Macieira wrote: > On Wednesday 03 September 2014 15:03:05 Rogers Nate wrote: >> QDBusError("org.freedesktop.DBus.Error.InvalidSignature", "Unexpected reply >> signature: got "", expected "a(ss)"") > This means the interface code knows that the reply should contain an

Re: [Interest] Question about using QtDBus

2014-09-03 Thread Thiago Macieira
On Wednesday 03 September 2014 15:03:05 Rogers Nate wrote: > QDBusError("org.freedesktop.DBus.Error.InvalidSignature", "Unexpected reply > signature: got "", expected "a(ss)"") This means the interface code knows that the reply should contain an array of a structure containing a pair of strings,

Re: [Interest] Question about using QtDBus

2014-09-03 Thread Rogers Nate
On 09/02/2014 05:32 PM, Thiago Macieira wrote: On Tuesday 02 September 2014 20:05:04 Rogers Nate wrote: I used qdbuscpp2xml to generate new adapter and interface files but I am still getting the same error... As I said, you can't use cpp2xml on a class where there's a signal or slot containin

Re: [Interest] Question about using QtDBus

2014-09-02 Thread Thiago Macieira
On Tuesday 02 September 2014 20:05:04 Rogers Nate wrote: > I used qdbuscpp2xml to generate new adapter and interface files but I am > still getting the same error... As I said, you can't use cpp2xml on a class where there's a signal or slot containing a parameter that isn't one of the basic Qt ty

Re: [Interest] Question about using QtDBus

2014-09-02 Thread Rogers Nate
On 09/02/2014 03:00 PM, Thiago Macieira wrote: On Tuesday 02 September 2014 18:53:59 Rogers Nate wrote: That option doesn't seem to be available to me, or am I not calling it correctly? I tried a few different ways... nrogers@nrogers-Precision-T1500:/media/nrogers/data/dev/projects/dbustest/D

Re: [Interest] Question about using QtDBus

2014-09-02 Thread Thiago Macieira
On Tuesday 02 September 2014 18:53:59 Rogers Nate wrote: > That option doesn't seem to be available to me, or am I not calling it > correctly? I tried a few different ways... > > nrogers@nrogers-Precision-T1500:/media/nrogers/data/dev/projects/dbustest/Da > taProcess$ qdbuscpp2xml -A -i ServiceDa

Re: [Interest] Question about using QtDBus

2014-09-02 Thread Rogers Nate
On 09/02/2014 02:48 PM, Thiago Macieira wrote: > On Tuesday 02 September 2014 17:31:28 Rogers Nate wrote: >> If you're using code generation with gdbusxml2cpp, you'll need to pass the >> -i ServiceData.h option to the generator so it will add the #include. >> I am using qmake, I usually use... >> >

Re: [Interest] Question about using QtDBus

2014-09-02 Thread Thiago Macieira
On Tuesday 02 September 2014 17:31:28 Rogers Nate wrote: > If you're using code generation with gdbusxml2cpp, you'll need to pass the > -i ServiceData.h option to the generator so it will add the #include. > I am using qmake, I usually use... > > > qdbuscpp2xml -A ServiceData.h -o ServiceData.xm

Re: [Interest] Question about using QtDBus

2014-09-02 Thread Rogers Nate
On 08/28/2014 04:39 PM, Thiago Macieira wrote: On Thursday 28 August 2014 20:16:56 Rogers Nate wrote: http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";

Re: [Interest] Question about using QtDBus

2014-08-28 Thread Thiago Macieira
On Thursday 28 August 2014 20:16:56 Rogers Nate wrote: > 1.0//EN" > "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"; reedesktop.org/standards/dbus/1.0/introspect.dtd>> > > > > value="ServiceErrorLogData"/> > > > > and I got this warnin

Re: [Interest] Question about using QtDBus

2014-08-28 Thread Rogers Nate
On 08/28/2014 03:18 PM, Thiago Macieira wrote: It should be. Can you tell us a little more? Is your slot called at all? If not, what error does the caller get when trying to call it? If so, is any warning printed after return? When I build it with type "ao" in the ServiceData.xml file, I get thi

Re: [Interest] Question about using QtDBus

2014-08-28 Thread Thiago Macieira
On Thursday 28 August 2014 18:28:55 Rogers Nate wrote: > I have that static method in ServiceErrorLogData.cpp... > > void ServiceErrorLogData::registerMetaType() > { > qRegisterMetaType("ServiceErrorLogData"); > > qDBusRegisterMetaType(); > qDBusRegisterMetaType >(); > } > > I was ca

Re: [Interest] Question about using QtDBus

2014-08-28 Thread Rogers Nate
I have that static method in ServiceErrorLogData.cpp... void ServiceErrorLogData::registerMetaType() { qRegisterMetaType("ServiceErrorLogData"); qDBusRegisterMetaType(); qDBusRegisterMetaType >(); } I was calling this from my main.cpp. Is that not a good way to do it or did I not us

Re: [Interest] Question about using QtDBus

2014-08-28 Thread Thiago Macieira
On Thursday 28 August 2014 17:17:54 Rogers Nate wrote: > I have a data process where I am trying to store my data so it can be > updated/retrieved from different processes. I am trying to get a QList > of a custom object to be returned from the data object so it can be used > by my CAN communicati

Re: [Interest] Question about using QtDBus

2014-08-28 Thread Rogers Nate
Lol, I wish that message didn't get put there. Fortunately you are one of the intended recipients so there should be no problem... Nate On 08/28/2014 02:10 PM, Christoph Feck wrote: > deleted this message from my Confidentiality Notice: The preceding e-mail message (including any attachment

Re: [Interest] Question about using QtDBus

2014-08-28 Thread Christoph Feck
On Thursday 28 August 2014 19:17:54 Rogers Nate wrote: > Confidentiality Notice: The preceding e-mail message (including any > attachments) contains information that may be confidential, > protected by applicable legal privileges, or constitute non-public > information. It is intended to be conveye

[Interest] Question about using QtDBus

2014-08-28 Thread Rogers Nate
I have a data process where I am trying to store my data so it can be updated/retrieved from different processes. I am trying to get a QList of a custom object to be returned from the data object so it can be used by my CAN communication object. I have striped down some code to give an example of