CN109189588A - A kind of browser function implementation method, device, terminal and storage medium - Google Patents
A kind of browser function implementation method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN109189588A CN109189588A CN201810892873.6A CN201810892873A CN109189588A CN 109189588 A CN109189588 A CN 109189588A CN 201810892873 A CN201810892873 A CN 201810892873A CN 109189588 A CN109189588 A CN 109189588A
- Authority
- CN
- China
- Prior art keywords
- communication module
- browser
- client
- built
- link
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/14—Tree-structured documents
Abstract
The embodiment of the invention discloses a kind of browser function implementation method, device, terminal and storage mediums, wherein this method comprises: establishing the communication connection between the built-in browser communication module in the client communication module in client and client, wherein, client communication module realizes that built-in browser communication module is realized based on html language based on QML language;Based on communication connection, the transmissions links between client communication module and built-in browser communication module, so that client realizes jumping or collecting for link by built-in browser.Technical solution provided in an embodiment of the present invention, which overcomes the client based on QML in the prior art, directly to load WEB page by HTML, and based between the client of QML and HTML also there is no web page link the problem of the interfaces such as jumping and collect, so that client is realized the function of linking and jump or collect by built-in browser.
Description
Technical field
The present embodiments relate to computer technology more particularly to a kind of browser function implementation method, device, terminal and
Storage medium.
Background technique
Since browser is born, the function of providing greatly facilitates the use of internet.For many clients,
Client is especially broadcast live, many links need to jump to the end Web to show, meanwhile, user also can directly pass through browser
Viewing live streaming room etc..
It, should although the client based on QML provides the core engine WebEngineView based on chromium browser
Core engine can load web page by HTML, and still, the client based on QML directly can not load WEB by HTML
The page, based on also there is no what web page linked the interfaces such as to jump and collect between the client of QML and HTML, therefore, how
Client based on QML is set to realize that the functions such as jump and collect of browser are a problems.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of browser function implementation method, device, terminal and storages to be situated between
Matter makes client realize the function that link is jumped or collected.
In a first aspect, the embodiment of the invention provides a kind of browser function implementation methods, which comprises
It establishes between the built-in browser communication module in client communication module and the client in client
Communication connection, wherein the client communication module realizes that the built-in browser communication module is based on based on QML language
Html language is realized;
Based on the communication connection, passed between the client communication module and the built-in browser communication module
Defeated link, so that the client realizes jumping or collecting for the link by built-in browser.
Second aspect, the embodiment of the invention provides a kind of browser function realization device, described device includes:
Module is established in communication connection, built in the client communication module for establishing in client and the client
Communication connection between browser communication module, wherein the client communication module is realized based on QML language, described built-in
Browser communication module is realized based on html language;
Browser function realizes module, for being based on the communication connection, in the client communication module and described
Transmissions links between built-in browser communication module, so that the client realizes jumping for the link by built-in browser
Or collection.
The third aspect, the embodiment of the invention provides a kind of browser functions to realize terminal, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the browser function implementation method as described in any embodiment of the present invention.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence realizes the browser function implementation method as described in any embodiment of the present invention when the program is executed by processor.
A kind of browser function implementation method, device, terminal and storage medium provided in an embodiment of the present invention, pass through foundation
The communication connection between built-in browser communication module in client communication module in client and client, wherein visitor
Family end communication module realizes that built-in browser communication module is realized based on html language based on QML language;Based on above-mentioned communication link
It connects, the transmissions links between client communication module and built-in browser communication module, so that client passes through built-in browsing
Device realizes jumping or collecting for link, and overcoming the client based on QML in the prior art directly can not load WEB by HTML
The page, and based on also there is no what web page linked the asking for interfaces such as to jump and collect between the client of QML and HTML
Topic makes client realize the function that link is jumped or collected by built-in browser.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart for browser function implementation method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of browser function implementation method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow chart for browser function implementation method that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for browser function realization device that the embodiment of the present invention four provides;
Fig. 5 is the structural schematic diagram that a kind of browser function that the embodiment of the present invention five provides realizes terminal.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of browser function implementation method flow chart that the embodiment of the present invention one provides, and the present embodiment is applicable
In carrying out the case where link is jumped or collected inside client, this method can be realized by browser function realization device, tool
Body can be implemented by the software and/or hardware in browser function realization device.Referring to Fig. 1, the browser function realization side
Method includes the following steps:
S110, it establishes between the built-in browser communication module in the client communication module in client and client
Communication connection, wherein client communication module realizes that it is real that built-in browser communication module is based on html language based on QML language
It is existing.
Wherein, the client that client can be the end PC can also be with the client of mobile phone terminal.QML language is one that Qt is released
Kind declarative scripting language, for describing the user interface of a program: either what and the user interface be such as
What is showed.Html language is hypertext markup language, i.e., one under standard generalized markup language applies.Hypertext refers to the page
It inside may include picture, link or even the non-legible element such as music, program.The structure of hypertext markup language includes head point
(part Head) and main part (part Body), wherein head point provides the information about webpage, and main part provides webpage
Particular content.
In the present embodiment, built-in browser can be preferably set in the client, allowed users to inside client
Use browser.In order to realize the part in client in addition to built-in browser and the data interaction between built-in browser,
Client communication module and built-in browser communication module can be set in the client, and by establishing communication between the two
The part in addition to built-in browser and the data interaction between built-in browser in client are realized in connection.Wherein, preferably
, client communication module can be realized based on QML language, and built-in browser communication module can be realized based on html language.
S120, it is based on communicating to connect, the transmissions links between client communication module and built-in browser communication module,
So that client realizes jumping or collecting for link by built-in browser.
It, can be logical based on this after establishing the communication connection between client communication module and built-in browser communication module
Letter connection, the transmissions links between client communication module and built-in browser communication module, with realize client with it is built-in clear
The link look between device jumps and collection function.
Wherein, the transmissions links between client communication module and built-in browser communication module, with realize client with
Link between built-in browser jumps and collection function, may include client communication module linked be transferred to it is built-in clear
It lookes at device communication module, realizes link jumping from client to built-in browser;It may include that built-in browser communication module will
It, which is linked, is transferred to client communication module, realizes collection of the client to linking in built-in browser, can also include built-in
Link transmission inside browser communication module, realization are linked at jumping inside built-in browser.
Browser function implementation method provided in this embodiment passes through the client communication module established in client and visitor
The communication connection between built-in browser communication module in the end of family, wherein client communication module based on QML language realize,
Built-in browser communication module is realized based on html language;Based on above-mentioned communication connection, in client communication module and built-in
Transmissions links between browser communication module overcome so that client realizes jumping or collecting for link by built-in browser
The client based on QML directly can not load WEB page by HTML in the prior art, and client based on QML with
Also there is no web page links the problem of the interfaces such as jumping and collect between HTML, so that client is passed through built-in browser real
The function that link is jumped or collected is showed.
On the basis of the various embodiments described above, further, client communication module and the client in client are established
In built-in browser communication module between communication connection, comprising:
Using Socket component, Transmission Control Protocol three is carried out between client communication module and built-in browser communication module
It is secondary to shake hands, establish the communication connection between client communication module and built-in browser communication module.
Since the client communication module realized based on QML language is communicated with the built-in browser realized based on html language
It can not be directly communicatively coupled between module, therefore, the WebChannel that can be provided by the bottom C Plus Plus of QML is real
Direct communication between existing client communication module and built-in browser communication module.Preferably, it can use WebChannel
In Socket component realize the direct communication between client communication module and built-in browser communication module.
Specifically, carrying out TCP between client communication module and built-in browser communication module using Socket component
Agreement three-way handshake establishes the communication connection between client communication module and built-in browser communication module.Wherein, in client
Transmission Control Protocol three-way handshake is carried out between end communication module and built-in browser communication module is respectively: shake hands can be for the first time
Client communication module sends TCP connection request data package to built-in browser communication module, and second handshake can be built-in
After browser communication module receives request data package, confirmation data packet is sent to client communication module, shaking hands for the third time can
To be to communicate mould to built-in browser after client communication module receives the confirmation data packet that built-in browser communication module is sent
Block sends confirmation data packet and illustrates success of shaking hands if built-in browser communication module has received confirmation data packet, this
When, client communication module and built-in browser communication module are successfully established communication connection, and the two can be based on the communication connection
Transmissions links.
Further, it based on communication connection, is transmitted between client communication module and built-in browser communication module
Link, so that client realizes jumping for link by built-in browser, comprising:
Based on communication connection, the link jumped in client is transmitted to using client communication module built-in
Browser communication module;
It is identified and is linked using built-in browser communication module, loaded and show that link is corresponding and jump interface, with from client
End jumps to built-in browser.
It, can be with based on the communication connection between client communication module and built-in browser communication module in the present embodiment
Built-in browser is transferred to using the link jump that client communication module selectes user in client to communicate
Module, to show the corresponding interface of the link by built-in browser.Built-in browser communication module receives client communication
Module send link after, identify the link head part and the part body, and according to head part and body part plus
Carry with this link it is corresponding jump interface, and shown in domestic browser so that link jumped to from client it is interior
Set browser.
Further, when jumping interface using the load of built-in browser communication module, comprising: utilize client communication mould
The value of environmental variance is set NULL by block, and when so that the load of built-in browser communication module jumping interface, no order line is mentioned
Show pop-up.
In general, during webpage jumps, browser for the first time load flash plug-in unit when all can eject command row mention
Show, when jumping interface using the load of built-in browser communication module, also inevitably will appear same problem.Order line
The pop-up of prompt is not that NULL is related with the value of environmental variance, is based on this, can use client communication module and become environment
The value of amount is set as NULL, so that system transfer environment variable is can not to find command-line prompt pop-up, so that built-in browsing
Device pops up when loading flash plug-in unit for the first time without command-line prompt.Specifically, client communication module can use environmental variance
Function is set and sets NULL for the value of environmental variance.
Illustratively, it is specifically described by taking the environmental variance under Windows operating system as an example:
System environment variable ComSpec under Windows operating system stores the path of order line cmd.exe, at this time
Null can be set by system environment variable ComSpec by qputenv function, so that Windows operating system can not be found
Command-line prompt pop-up, so that browser can not jump out command-line prompt when loading flash plug-in unit.
Embodiment two
Fig. 2 is a kind of flow chart of browser function implementation method provided by Embodiment 2 of the present invention.The present embodiment is upper
On the basis of stating each embodiment, described it will be based on the communication connection, in the client communication module and described built-in clear
Transmissions links between device communication module are look at, so that the client realizes jumping for the link by built-in browser, into one
Step optimization are as follows: utilize the built-in browser communication module, identification user's link selected in the built-in browser is
No is download link;If the link is not download link, it is based on the communication connection, is communicated using the built-in browser
The link is sent to the client communication module by module;Using the client communication module from core engine
Load corresponding jumps interface with described link in WebEngineView;Using the client communication module by the jump
The improper interface turned in interface is filtered;Based on the communication connection, after being filtered using the client communication module
The remaining interface that normally jumps is sent to the built-in browser communication module, and aobvious using the built-in browser communication module
Show it is described normally jump interface, with realize described in be linked at jumping inside the built-in browser.As shown in Fig. 2, this method
It specifically includes:
S210, it establishes between the built-in browser communication module in the client communication module in client and client
Communication connection, wherein client communication module realizes that it is real that built-in browser communication module is based on html language based on QML language
It is existing.
S220, using built-in browser communication module, identify link of the user selected in built-in browser whether be
Download link.
When detecting user in built-in browser some having been selected to link, built-in browser communication preferably can use
Module identifies whether the selected link of user is download link.Specifically, can use built-in browser communication module from
The part head and the part body are identified in the selected link in family, wherein the part head includes the file type for requesting resource.
Built-in browser communication module is that can determine user in built-in browser according to the file type of resource is requested in the part head
Whether selected link is download link.
If S230, link are not download links, after user clicks on links, based on communication connection, built-in browsing is utilized
Link is sent to client communication module by device communication module.
In the present embodiment, if built-in browser communication module determines user, selected link is not download link, can
To determine that link needs are jumped inside built-in browser.Specifically, can first save user selection link, with
After selected link is clicked at family, based on the communication connection between built-in browser communication module and client communication module, benefit
The part the head for linking and identifying and the part body etc. are sent to client communication mould with built-in browser communication module
Block.
S240, jump corresponding with linking is loaded from core engine WebEngineView using client communication module
Turn interface.
S250, the improper interface jumped in interface is filtered using client communication module.
Preferably, client communication module is in link and the part head for receiving the transmission of built-in browser communication module
After the part body, it can be loaded from core engine WebEngineView according to the information received corresponding with linking
Jump interface.Wherein, poor if there is network condition, user's click speed is too fast or deposits in user clicks on links
In at least one situation such as Caton, be loaded into from core engine WebEngineView using client communication module with
It links corresponding jump in interface to be just likely to comprising improper interface, wherein improper interface may include empty jumps
Interface or mistake jump interface.At this point, if by it is empty jump interface or mistake jump interface be sent to it is built-in clear
Device communication module of looking at is shown, the usage experience of user can be reduced.At this point, it is preferred that can use client communication module will jump
The improper interface turned in interface filters out, and only residue is corresponding with linking normally jumps interface.
S260, based on communication connection, normally jump interface by remaining after filtering using client communication module and be sent to
Built-in browser communication module, and loaded and shown using built-in browser communication module and normally jump interface, to realize link
Jumping inside built-in browser.
In the present embodiment, using client communication module get it is corresponding with linking normally jump interface after, can
Based on the communication connection between built-in browser communication module and client communication module, will normally jump in interface is sent to
Set browser communication module, built-in browser communication module loads and shows that this normally jumps interface, and then in realizing and being linked at
Set jumping inside browser.
Browser function implementation method provided in this embodiment, on the basis of the various embodiments described above, built in utilizing
Browser communication module identifies whether link of the user selected in built-in browser is download link;Under if link is not
Link is carried, then based on communication connection, link is sent to client communication module using built-in browser communication module;Utilize visitor
Family end communication module is loaded from core engine WebEngineView corresponding with linking jumps interface;It is logical using client
The improper interface jumped in interface is filtered by letter module;Based on communication connection, will be filtered using client communication module
The remaining interface that normally jumps is sent to built-in browser communication module afterwards, and is shown normally using built-in browser communication module
Interface is jumped, realizes and is linked at jumping inside built-in browser.
On the basis of the various embodiments described above, further, based on communication connection, in client communication module and built-in
Transmissions links between browser communication module, so that client realizes jumping for link by built-in browser, further includes:
If being linked as download link, pops up using built-in browser communication module after user clicks on links and link phase
Corresponding downloading interface.
Wherein, however, it is determined that current link is download link, then after user clicks on links, it is logical to can use built-in browser
Believe that module pops up customized downloading interface corresponding with download link, when user selects download directory and is downloaded,
Built-in browser communication module and Web server can be established into connection, the received data transmitted according to Web server
Size receivedBytes and total amount of data totalBytes updates progress bar using built-in browser communication module and goes forward side by side
Row display, while being saved what is received in data into corresponding download directory.
Embodiment three
Fig. 3 is a kind of flow chart for browser function implementation method that the embodiment of the present invention three provides.The present embodiment is upper
On the basis of stating each embodiment, described it will be based on the communication connection, in the client communication module and described built-in clear
Transmissions links between device communication module are look at, so that the client realizes the collection of the link by built-in browser, into one
Step optimization are as follows: when detecting that user clicks the collection button in the client, the communication connection is based on, using described interior
It sets browser communication module and current link is sent to the client communication module;It is detected using the client communication module
Whether the current link is collected, if detecting, the current link is not collected, logical using the client
Believe that module saves the current link and the corresponding content of the current link.As shown in figure 3, this method specifically includes:
S310, it establishes between the built-in browser communication module in the client communication module in client and client
Communication connection, wherein client communication module realizes that it is real that built-in browser communication module is based on html language based on QML language
It is existing.
S320, when detect user click client in collection button when, based on communication connection, utilize built-in browser
Current link is sent to client communication module by communication module.
When user browses in the built-in browser of client, detect that user clicks the collection in client
Button, at this point it is possible to determine user want by the current interface of built-in browser and the corresponding link collections of current interface into
In client.At this point it is possible to based on the communication connection between built-in browser communication module and client communication module, using interior
It sets browser communication module and current link is sent to client communication module.
S330, whether collected using the detection current link of client communication module, if detecting, current link does not have
Have and collected, then saves current link and the corresponding content of current link using client communication module.
Preferably, when client communication module receives the current link of built-in browser transmission, it can use client
Whether end communication module detection current link has been collected by client, is repeated asking for collection to prevent current link
Topic.Specifically, whether can be already recorded in the local profile of user's collection network address by detecting current link come really
Determine whether current link is collected.If detecting, current link is not collected, and can be popped up current link and not received
The prompt (or popping up the prompt that current link can be collected) of hiding;If detecting, current link is collected, can be with
The prompt that pop-up current link has been collected.Further, it is also possible to whether determine the collection of user by local profile
Reach the upper limit of collection, if it is determined that the collection of user does not reach the upper limit, then can pop up what current link can be collected
Prompt, at this point it is possible to by the full content write-in local profile in current link and the corresponding interface of current link;
If it is determined that the collection of user has reached the upper limit, then the prompt that current link cannot be collected can be popped up.
Browser function implementation method provided in this embodiment is detected on the basis of the various embodiments described above by working as
When user clicks the collection button in client, based on communication connection, current link is sent out using built-in browser communication module
It send to client communication module;Whether collected using the detection current link of client communication module, if detecting current
Link is not collected, then saves current link and the corresponding content of current link using client communication module, realize
The link collections function of client.
On the basis of the various embodiments described above, further, using client communication module save current link and
When the corresponding content of current link, if the corresponding content of current link does not load completion:
Register each event corresponding with content, wherein the corresponding attribute information of each event, attribute information are to become
Change or does not change;
When detecting attribute information corresponding at least one event is to change, judge that client communication module mentions
Whether the LoadStatus in the core engine WebEngineView of confession is completion status;
If LoadStatus is completion status, the corresponding each event update content of completion status is utilized.
In the present embodiment, when being collected to current link and the corresponding interface of current link, it is likely that work as
Not the case where preceding content linked in corresponding interface does not load completion.At this point it is possible to utilize client using asynchronous refresh mode
Whether the content in interface corresponding to the link of end communication module detection collection loads completion, if detecting the link of collection
Content in corresponding interface, which loads, to be completed, then the relevant informations such as the title, icon, the content that load in the interface completed is existed
It is updated in collection.
Specifically, can each event corresponding with content that is linking in corresponding interface registered in advance, wherein each thing
Part can be with events such as Icon, title, content, wherein each event corresponds to an attribute information, which is to occur
Variation does not change, the attribute informations of the events such as Icon, title, content can with IconChanged,
TitleChanged, contentChanged are indicated.It, can be by sentencing when detecting that at least one attribute information changes
Whether the stress state LoadStatus in core engine WebEngineView that disconnected client communication module provides is to complete to come
Determine whether load completion with the content linked in corresponding interface.If stress state LoadStatus is to complete, benefit
With corresponding content in the corresponding each event update collection of completion status.
Example IV
Fig. 4 is a kind of browser function realization device structural schematic diagram that the embodiment of the present invention four provides.Referring to fig. 4, originally
Browser function realization device in embodiment, comprising:
Module 410 is established in communication connection, built in the client communication module for establishing in client and client
Communication connection between browser communication module, wherein client communication module realizes that built-in browser is logical based on QML language
Believe that module is realized based on html language;
Browser function realizes module 420, for being based on communication connection, in client communication module and built-in browser
Transmissions links between communication module, so that client realizes jumping or collecting for link by built-in browser.
Browser function realization device provided in this embodiment passes through the client communication module established in client and visitor
The communication connection between built-in browser communication module in the end of family, wherein client communication module based on QML language realize,
Built-in browser communication module is realized based on html language;Based on above-mentioned communication connection, in client communication module and built-in
Transmissions links between browser communication module overcome so that client realizes jumping or collecting for link by built-in browser
The client based on QML directly can not load WEB page by HTML in the prior art, and client based on QML with
Also there is no web page links the problem of the interfaces such as jumping and collect between HTML, so that client is passed through built-in browser real
The function that link is jumped or collected is showed.
On the basis of the various embodiments described above, further, module 410 is established in communication connection specifically can be used for:
Using Socket component, Transmission Control Protocol three is carried out between client communication module and built-in browser communication module
It is secondary to shake hands, establish the communication connection between client communication module and built-in browser communication module.
Further, browser function realizes that module 420 may include that client jumps to built-in browser unit, wherein
The unit specifically can be used for:
Based on communication connection, the link jumped in client is transmitted to using client communication module built-in
Browser communication module;
And using the identification link of built-in browser communication module, load and show that link is corresponding and jump interface, with from visitor
Family end jumps to built-in browser.
Further, browser function realizes that module 420 can also include jump-transfer unit inside built-in browser, wherein
The unit specifically can be used for:
Using built-in browser communication module, identify whether link of the user selected in built-in browser is downloading chain
It connects;
If link is not download link, based on communication connection, link is sent to using built-in browser communication module
Client communication module;
It is loaded from core engine WebEngineView using client communication module and corresponding with linking jumps boundary
Face;
The improper interface jumped in interface is filtered using client communication module;
Based on communication connection, using client communication module by after filtering it is remaining normally jump interface be sent to it is built-in clear
Look at device communication module, and loaded and shown using built-in browser communication module and normally jump interface, with realize be linked at it is built-in
Jumping inside browser.
Further, above-mentioned client jumps to jump-transfer unit inside built-in browser unit and built-in browser and specifically goes back
It can be used for
NULL is set by the value of environmental variance using client communication module, so that built-in browser communication module adds
When load jumps interface, no command-line prompt pop-up.
Further, browser function realizes that module 420 can also include link collections unit, wherein the unit is specific
It can be used for:
When detecting that user clicks the collection button in client, based on communication connection, communicated using built-in browser
Current link is sent to client communication module by module;
Whether collected using the detection current link of client communication module, if detecting, current link is not received
Hiding then saves current link and the corresponding content of current link using client communication module.
Further, link collections unit specifically can be also used for:
When saving current link and the corresponding content of current link using client communication module, if current link pair
The content answered does not load completion, then:
Register each event corresponding with content, wherein the corresponding attribute information of each event, attribute information are to become
Change or does not change;
When detecting attribute information corresponding at least one event is to change, judge that client communication module mentions
Whether the LoadStatus in the core engine WebEngineView of confession is completion status;
If LoadStatus is completion status, the corresponding each event update content of completion status is utilized.
Browser function realization device provided by the embodiment of the present invention can be performed provided by any embodiment of the invention
Browser function implementation method has the corresponding functional module of execution method and beneficial effect.
Embodiment five
Fig. 5 is the structural schematic diagram that the browser function that the embodiment of the present invention five provides realizes terminal.Fig. 5, which is shown, to be suitable for
For realizing that the exemplary browser function of embodiment of the present invention realizes the block diagram of terminal 512.The browser function that Fig. 5 is shown
Realize that terminal 512 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 5, browser function realizes that terminal 512 is showed in the form of universal computing device.Browser function is real
The component of existing terminal 512 can include but is not limited to: one or more processor 516, memory 528 connect not homologous ray
The bus 518 of component (including memory 528 and processor 516).
Bus 518 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Browser function realizes that terminal 512 typically comprises a variety of computer system readable media.These media can be
Any usable medium that can be realized that terminal 512 is accessed by browser function, including volatile and non-volatile media, move
And immovable medium.
Memory 528 may include the computer system readable media of form of volatile memory, such as arbitrary access is deposited
Reservoir (RAM) 530 and/or cache memory 532.Browser function realize terminal 512 may further include it is other can
Movement/immovable, volatile/non-volatile computer system storage medium.Only as an example, storage device 534 can be with
For reading and writing immovable, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although in Fig. 5 not
It shows, the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, and to removable
The CD drive of dynamic anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these situations
Under, each driver can be connected by one or more data media interfaces with bus 518.Memory 528 may include
At least one program product, the program product have one group of (for example, at least one) program module, these program modules are configured
To execute the function of various embodiments of the present invention.
Program/utility 540 with one group of (at least one) program module 542, can store in such as memory
In 528, such program module 542 includes but is not limited to operating system, one or more application program, other program modules
And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 542
Usually execute the function and/or method in embodiment described in the invention.
Browser function realize terminal 512 can also with one or more external equipments 514 (such as keyboard, sensing equipment,
Display 524 etc., wherein display 524 can decide whether to configure according to actual needs) communication, it can also be with one or more
It enables a user to realize that the equipment that terminal 512 interacts communicates with the browser function, and/or is realized with the browser function is made
Any equipment (such as network interface card, modem etc.) that terminal 512 can be communicated with one or more of the other calculating equipment
Communication.This communication can be carried out by input/output (I/O) interface 522.Also, browser function realizes that terminal 512 may be used also
To pass through network adapter 520 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network
Network, such as internet) communication.As shown, network adapter 520 realizes terminal 512 by bus 518 and browser function
Other module communications.It should be understood that it is other hard can to realize that terminal 512 is used in conjunction with browser function although being not shown in Fig. 5
Part and/or software module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array,
RAID system, tape drive and data backup storage device etc..
The program that processor 516 is stored in memory 528 by operation, thereby executing various function application and data
Processing, such as realize browser function implementation method provided by the embodiment of the present invention.
Embodiment six
The embodiment of the present invention six provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The browser function implementation method as provided by the embodiment of the present invention is realized when sequence is executed by processor, comprising:
Establish the communication between the built-in browser communication module in the client communication module in client and client
Connection, wherein client communication module realizes that built-in browser communication module is realized based on html language based on QML language;
Based on communication connection, the transmissions links between client communication module and built-in browser communication module, so that
Client realizes jumping or collecting for link by built-in browser.
Certainly, computer readable storage medium provided by the embodiment of the present invention, the computer program stored thereon are unlimited
In executing method operation as described above, can also be performed provided by any embodiment of the invention based on browser function realization
Relevant operation in the browser function implementation method of terminal.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of browser function implementation method characterized by comprising
Establish the communication between the built-in browser communication module in client communication module and the client in client
Connection, wherein the client communication module realizes that the built-in browser communication module is based on HTML language based on QML language
Speech is realized;
Based on the communication connection, the chain between the client communication module and the built-in browser communication module
It connects, so that the client realizes jumping or collecting for the link by built-in browser.
2. the method according to claim 1, wherein the client communication module established in client and institute
State the communication connection between the built-in browser communication module in client, comprising:
Using Socket component, TCP association is carried out between the client communication module and the built-in browser communication module
Three-way handshake is discussed, the communication connection between the client communication module and the built-in browser communication module is established.
3. leading to the method according to claim 1, wherein described be based on the communication connection in the client
Transmissions links between module and the built-in browser communication module are believed, so that the client is realized by built-in browser
The link jumps, comprising:
Based on the communication connection, the link jumped in the client is passed using the client communication module
Transport to the built-in browser communication module;
The link is identified using the built-in browser communication module, is loaded and is shown that the link is corresponding and jumps interface,
To jump to the built-in browser from the client.
4. leading to the method according to claim 1, wherein described be based on the communication connection in the client
Transmissions links between module and the built-in browser communication module are believed, so that the client is realized by built-in browser
The link jumps, further includes:
Using the built-in browser communication module, identify user's link selected in the built-in browser whether be under
Carry link;
If the link is not download link, after user clicks the link, it is based on the communication connection, using described interior
It sets browser communication module and the link is sent to the client communication module;
It is loaded from core engine WebEngineView using the client communication module and links corresponding jump with described
Interface;
The improper interface jumped in interface is filtered using the client communication module;
Based on the communication connection, using the client communication module, jumping interface is sent to institute by remaining normally after filtering
State built-in browser communication module, and loaded using the built-in browser communication module and show it is described normally jump interface,
To be linked at jumping inside the built-in browser described in realization.
5. the method according to claim 3 or 4, which is characterized in that loaded using the built-in browser communication module
When jumping interface, comprising:
NULL is set by the value of environmental variance using the client communication module, so that the built-in browser communicates mould
When block load jumps interface, no command-line prompt pop-up.
6. method according to claim 1, which is characterized in that it is described to be based on the communication connection, in the client communication
Transmissions links between module and the built-in browser communication module, so that the client realizes institute by built-in browser
State the collection of link, comprising:
When detecting that user clicks the collection button in the client, it is based on the communication connection, using described built-in clear
Current link is sent to the client communication module by device communication module of looking at;
Detect whether the current link has been collected using the client communication module, if detecting the current link
It is not collected, then saves the current link using the client communication module and the current link is corresponding interior
Hold.
7. according to the method described in claim 6, it is characterized by further comprising:
When saving the current link and the corresponding content of the current link using the client communication module, if institute
It states the corresponding content of current link and does not load completion, then:
Register each event corresponding with the content, wherein the corresponding attribute information of each event, the attribute information are hair
Changing does not change;
When detecting attribute information corresponding at least one event is to change, judge that the client communication module mentions
Whether the LoadStatus in the core engine WebEngineView of confession is completion status;
If the LoadStatus is completion status, content described in the corresponding each event update of the completion status is utilized.
8. a kind of browser function realization device characterized by comprising
Module is established in communication connection, the built-in browsing in the client communication module for establishing in client and the client
Communication connection between device communication module, wherein the client communication module is based on the realization of QML language, the built-in browsing
Device communication module is realized based on html language;
Browser function realizes module, for being based on the communication connection, in the client communication module and described built-in
Transmissions links between browser communication module, so that the client realizes jumping or receiving for the link by built-in browser
Hiding.
9. a kind of browser function realizes terminal, which is characterized in that the terminal includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now browser function implementation method as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The browser function implementation method as described in any in claim 1-7 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810892873.6A CN109189588B (en) | 2018-08-07 | 2018-08-07 | Browser function implementation method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810892873.6A CN109189588B (en) | 2018-08-07 | 2018-08-07 | Browser function implementation method, device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109189588A true CN109189588A (en) | 2019-01-11 |
CN109189588B CN109189588B (en) | 2020-12-15 |
Family
ID=64921025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810892873.6A Active CN109189588B (en) | 2018-08-07 | 2018-08-07 | Browser function implementation method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189588B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858106A (en) * | 2020-09-23 | 2020-10-30 | 江苏金晓电子信息股份有限公司 | Method for setting attributes of QML (QML framework) extension control |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102169486A (en) * | 2010-02-25 | 2011-08-31 | 腾讯科技(深圳)有限公司 | File downloading method and device |
US20120005586A1 (en) * | 2010-07-02 | 2012-01-05 | Nokia Corporation | Method and apparatus for dynamic network device start up |
CN102915363A (en) * | 2012-10-18 | 2013-02-06 | 北京奇虎科技有限公司 | Website storing method and system |
CN103501463A (en) * | 2013-10-25 | 2014-01-08 | 乐视网信息技术(北京)股份有限公司 | Data acquisition method and electronic equipment |
CN103530365A (en) * | 2013-10-12 | 2014-01-22 | 北京搜狗信息服务有限公司 | Method and system for acquiring downloading link of resources |
CN103777942A (en) * | 2013-12-06 | 2014-05-07 | 深圳市证通电子股份有限公司 | Embedded type software product development framework applied to financial terminal |
CN104050962A (en) * | 2013-03-16 | 2014-09-17 | 李军 | Multifunctional reader based on voice synthesis technology |
CN107479990A (en) * | 2017-08-11 | 2017-12-15 | 恒丰银行股份有限公司 | Distributed software service system |
-
2018
- 2018-08-07 CN CN201810892873.6A patent/CN109189588B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102169486A (en) * | 2010-02-25 | 2011-08-31 | 腾讯科技(深圳)有限公司 | File downloading method and device |
US20120005586A1 (en) * | 2010-07-02 | 2012-01-05 | Nokia Corporation | Method and apparatus for dynamic network device start up |
CN102915363A (en) * | 2012-10-18 | 2013-02-06 | 北京奇虎科技有限公司 | Website storing method and system |
CN104050962A (en) * | 2013-03-16 | 2014-09-17 | 李军 | Multifunctional reader based on voice synthesis technology |
CN103530365A (en) * | 2013-10-12 | 2014-01-22 | 北京搜狗信息服务有限公司 | Method and system for acquiring downloading link of resources |
CN103501463A (en) * | 2013-10-25 | 2014-01-08 | 乐视网信息技术(北京)股份有限公司 | Data acquisition method and electronic equipment |
CN103777942A (en) * | 2013-12-06 | 2014-05-07 | 深圳市证通电子股份有限公司 | Embedded type software product development framework applied to financial terminal |
CN107479990A (en) * | 2017-08-11 | 2017-12-15 | 恒丰银行股份有限公司 | Distributed software service system |
Non-Patent Citations (1)
Title |
---|
DECLARATION OF VAR: ""Interacting with HTML from QML over WebChannel/WebSockets"", 《HTTPS://RETIFRAV.GITHUB.IO/BLOG/2018/07/14/HTML-FROM-QML-OVER-WEBCHANNEL-WEBSOCKETS/?TDSOURCETAG=S_PCTIM_AIOMSG》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858106A (en) * | 2020-09-23 | 2020-10-30 | 江苏金晓电子信息股份有限公司 | Method for setting attributes of QML (QML framework) extension control |
Also Published As
Publication number | Publication date |
---|---|
CN109189588B (en) | 2020-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4932842B2 (en) | Network connectivity and radio conditions in the announcement area | |
CN109542427B (en) | System customization method and device, electronic equipment and storage medium | |
CN109743381B (en) | Long connection interaction method and device for client and server | |
CN109587252A (en) | Loading method, device, electronic equipment and the storage medium of operator parameter | |
CN110389936A (en) | A kind of method, equipment and computer storage medium starting small routine | |
CN113407086B (en) | Object dragging method, device and storage medium | |
CN104142966A (en) | Web page displaying method and client | |
US20160378743A1 (en) | Method and apparatus for insertion of text in an electronic device | |
CN103428559A (en) | Data display method, mobile terminal and play device | |
CN112667118A (en) | Method, apparatus and computer readable medium for displaying historical chat messages | |
CN115209965A (en) | Provision management for video games during game preview | |
CN109885223A (en) | A kind of method and its equipment for realizing mobile terminal desktop information suspension procedure function | |
CN109960554A (en) | Show method, equipment and the computer storage medium of reading content | |
CN108804175A (en) | Multilingual adaptation method, mobile terminal and computer readable storage medium | |
CN109343926A (en) | Application program image target display methods, device, terminal and storage medium | |
CN110457621A (en) | A kind of page display method, device and the medium of mixing application | |
CN101895531B (en) | Client equipment, multimedia data unloading system and unloading method | |
CN104834687A (en) | Picture display method | |
CN109218393A (en) | A kind of implementation method of push, device, equipment and computer storage medium | |
WO2017156986A1 (en) | Full-picture image display method and system for mobile terminal | |
CN110415034A (en) | A kind of control method, device, equipment and storage medium that article is exchanged | |
CN109189588A (en) | A kind of browser function implementation method, device, terminal and storage medium | |
CN110020371B (en) | Method and device for page layout linkage based on react-native | |
CN106209584A (en) | User profile processing method based on the Internet, client and server | |
CN107862035A (en) | Network read method, device, Intelligent flat and the storage medium of minutes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |