We have talked about developing MeeGo applications using the QML language. In MeeGo development, handler is the core of MeeGo Process Communication. Let's take a brief look at where the MeeGo system uses idea.
1.When you start another application from one application. For example, if you want to call a contact in the Contact application, the MeeGo system uses the queue for Process Communication.
2.The Service Framework is region-based.. For example, if you see a multimedia file, click to submit a "playback file" request to search for an appropriate application to play the file.
3.Publish and subscriber Systems. For example, if a battery message is displayed on a screen and subscribed to, notify the subscriber through notify when the power is changed.
4.Notification Manager is also region-based. If a text message arrives, the Notification Manger will prompt.
5.System Configuration FileIf you want to notify MeeGo of applications that are interested in the changes, you also need to use the notice, such as theme changes.
6.Bluetooth middleware bluez and telephone management system ofono Process Communication SystemIt is also based on callback.
Given the importance of the queue, we can say that "there is no MeeGo without Pipeline ". It is also necessary to know which of the following tools in MeeGo can be used to locate and solve problems in the development process faster.
Prepare DBUS_SESSION_BUS_ADDRESS
Two zookeeper-based applications must be able to communicate with each other. They need DBUS_SESSION_BUS_ADDRESS.MeeGo to start a zookeeper service process when starting its uxlaunch, you can get the value of DBUS_SESSION_BUS_ADDRESS from this process, and the application loaded through uxlaunch will inherit the environment variable. If it is started from the command line, you must set the environment variable before running your application to communicate with existing applications in the MeeGo system. You can set the value as follows.
- export `tr ‘\0′ ‘\n’ < /proc/$(pidof duihome)/environ|grep DBUS_SESSION_BUS_ADDRESS`
-
Tool 1: publish-send/publish-monitor
This is a tool released along with the release software package. It is encapsulated at the underlying level and is not described here. You can enter man sending-send in the console command line to query detailed usage.
Tool 2: q6.
This tool is a command line tool based on Qt. Usage:
- qdbus [--system] [--literal] [servicename] [path] [method] [args]
- servicename the service to connect to (e.g., org.freedesktop.DBus)
- path the path to the object (e.g., /)
- method the method to call, with or without the interface
- args arguments to pass to the call
There are two parameters
-System is connected to system-bus (sessions have two types of bus: session-bus and system-bus. Without parameters, session-bus is connected by default .)
-Literal: print the original response information
* If the q6. command does not contain any parameters, all services on the worker will be listed.
* If the parameter contains only the service name, q6. all object paths are listed.
* If the q6. command gives the service name and the corresponding object path, the methods, signals, and available attributes on the path will be listed.
Example of q6.
List all services of session bus
- $ qdbus
-
List all services of system bus
- $ qdbus –system
-
List all paths on com. nokia. meego-im-uiserver service
- $ qdbus com.nokia.meego-im-uiserver
-
Lists available methods in a path on com. nokia. meego-im-uiserver service.
- $ qdbus com.nokia.meego-im-uiserver /org/maemo/duiinputmethodserver1
-
Call a specified service to specify a method in the path.
- $ qdbus com.nokia.meego-im-uiserver /org/maemo/duiinputmethodserver1 org.maemo.duiinputmethodserver1.showInputMethod
-
Tool 3: d-feet
D-feet is an application written in python. You can use the following command to install it in MeeGo:
- #zypper install d-feet
-
To view the registered movie service in the system, run the d-feet command.
- #d-feet
-
To call the specified method, double-click the corresponding method.
If this method requires a parameter, the parameter option box is displayed.
Tool 4: qdbusviewer
Qdbusviewer is a development tool in the Qt software package. You can use the following command to install qdbusviewer in MeeGo:
- #zypper install qt-devel-tools
-
To view which registered container service is in the system, run the qdbusviewer command.
- #qdbusviewer
-
If you want to Call the corresponding method, right-click the method and you can see the word "Call". Select
Conclusion
With these tools, you can not only conveniently know whether the services in the system are registered and running normally. It can also generate some unexpected events, such as receiving a simulated text message or dialing in by phone. In this way, you can debug some functions that require hardware support on the simulator.