Re: [agl-dev-community] [HELP] Port Qt Desktop Widget to run on AGL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have been reading the taskmanager source code, but some parts I do not understand.

void TaskManager::query() {
callService("get_process_list",
QJsonValue(QJsonObject({{"processes", QJsonValue()}})));
callService("get_netstat", QJsonValue());
}

void TaskManager::callService(const QString& command, QJsonValue value) {
Message *msg = new Message();
msg->createRequest("taskmanager", command, value);
qDebug() << "sending message " << msg->toJson();
m_loop->sendMessage(msg);
delete msg;
}


This looks to me like the application sends messages like "get_process_list" to some kind of message loop. My question is where are these messages defined? And where are these messages get received the processed?

Is it related to this? https://docs.automotivelinux.org/docs/en/guppy/apis_services/reference/signaling/signaling/architecture.html

In our case, we have built the image with the command line tool "filefrag" included. How can I call it from the Qt application?

Thanks

Guowei

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#7891) | Reply To Group | Reply To Sender | Mute This Topic | New Topic

Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux