1. Technical Field
The disclosure generally relates to embedded electronic devices and a communication method between two window processes thereof.
2. Description of Related Art
Embedded electronic devices, such as digital cameras, set-top boxes, digital phone frames, and others provide many functions, such as playing multimedia files, reading documents, and browsing websites.
Multiple windows requiring simultaneous processing by the device are often utilized. Conventional communication between the windows may be difficult. For example, if window B uses a function of window A, window B must include a header file of window A; and if window A is a common object for windows B and C, window A must call the parent window's functions, the window A may include a header files from window B and window C. Redefinition of the function window A, requires that all the header files must be redefined again. Inconvenience is thus incurred to modify the function of the windows in a conventional embedded electronic device.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as an EPROM. It will be appreciated that modules may comprised connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
Referring to
Referring to
Referring to
Referring to
In step S10, the first window module 50 is run to generate a first window process 55, and the second window module 70 is run to generate a second window process 75.
In step S12, the second window process 75 is shown on display module 30.
In step S14, the second window process 75 sends a message to call the first window process 55.
In step S16, the first window process 55 receives and executes the message, and returns a result to the second window process 75.
The electronic device employs a message loop system, a message event to trigger functions, such as internet explorer (IE), accordingly, can direct the foreground window process to process something in the background window process, and deliver the message to another window process. This electronic device and the method can provide communication between multiple windows for a of UI project.
It is to be understood, however, that even though numerous characteristics and advantages have been set forth in the foregoing description of preferred embodiments, together with details of the structures and functions of the preferred embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
It is also to be understood that the above description and the claims drawn to a method may include some indication in reference to certain steps. However, the indication used is only to be viewed for identification purposes and not as a suggestion as to an order for the steps.
Number | Date | Country | Kind |
---|---|---|---|
200910304953.6 | Jul 2009 | CN | national |