CN101005487A - Device and method for display module message in instant communication - Google Patents

Device and method for display module message in instant communication Download PDF

Info

Publication number
CN101005487A
CN101005487A CN 200610001395 CN200610001395A CN101005487A CN 101005487 A CN101005487 A CN 101005487A CN 200610001395 CN200610001395 CN 200610001395 CN 200610001395 A CN200610001395 A CN 200610001395A CN 101005487 A CN101005487 A CN 101005487A
Authority
CN
China
Prior art keywords
module
message
functional module
icon
functional
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
Application number
CN 200610001395
Other languages
Chinese (zh)
Other versions
CN101005487B (en
Inventor
刘方敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Lucent Technologies Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN 200610001395 priority Critical patent/CN101005487B/en
Publication of CN101005487A publication Critical patent/CN101005487A/en
Application granted granted Critical
Publication of CN101005487B publication Critical patent/CN101005487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention is used for solving the issue existed in currently-used technology that is the inner core module in client side is not flexible for processing module message. The method comprises: according to the configuration message in the configuration file, the module message managing loads the functional module for subscribing message icon; according to the module ID carried in the module message, said module message managing module relays the module message to the relevant functional module; the functional module receiving the module message provides the subscribed icon and the subscribed content, and informs the prompt window to display the subscribed icon and the subscribed content.

Description

The device and method of display module message in instant messaging
Technical field
The present invention relates to the computer and the communications field, relate in particular to the device and method device of display module message in instant messaging.
Background technology
On the function of instant messaging (IM) software from single text message to voice and video, multi-direction development such as address list, note, what adapt with it is that the type of message received of the module of client is also more and more abundanter.At present on the IM of main flow software, the ways of presentation of the message arrival of these dissimilar difference in functionality modules is to flash some fixing icons at tray zone, need open corresponding functional modules by certain mode of operation (mainly being by double-clicking tray icon at present) and just can realize if the user thinks the functional content of further affirmation or understanding arrival message.
The main process of existing main flow IM software processing module message is as follows:
1, module message arrives the IM client.
2, IM client kernel module decides the current icon that should flash according to the sign (for all modules, this sign is positioned at a specific part of message) of module message.
3, flash icon, double-click this icon as the user, IM software transfer the corresponding function module is handled this message.
Technique scheme has the following disadvantages:
1, new functional module of every interpolation all need increase a processing in kernel, and recompilates, and is unfavorable for the stability and the development efficiency of system, its very flexible.
2, the customizable degree of functional module is extremely limited, and a general functional module can only customize one and flash icon, if wish complicated customization, then needs the code of kernel is carried out bigger change, and its workload is big and cost is high.
Summary of the invention
The invention provides a kind of in instant messaging the device and method of display module message, when handling processing module message by the kernel module of client and have very flexible, and realize that there is the big and high problem of cost of workload in complex custom to solve in the prior art.
The invention provides following technical scheme:
A kind of in instant messaging the device of display module message, comprising:
Be used for providing the functional module of custom icon and/or customized content according to the module message that receives;
Be used for loading described functional module, and module message be transmitted to described functional module and show the kernel module of custom icon and/or customized content according to the notice of this functional module according to the configuration information of configuration file.
Described kernel module comprises:
Be used for the value-added tax function module and module message be transmitted to the module message Management Unit of corresponding functional module;
Be used for showing the prompt window component exhibiting of custom icon and/or customized content according to the notice of described functional module.
Described functional module, module message Management Unit and prompt window component exhibiting have The Component Object Model (COM) protocol interface respectively, pass through this interactive interfacing between each module.
A kind of in instant messaging the method for display module message, comprise the steps:
The module message Management Unit loads the functional module of customized messages icon according to the configuration information in the configuration file;
Described module message Management Unit is transmitted to corresponding functional module according to the module id that carries in the module message that receives with this module message;
The functional module that receives module message provides corresponding custom icon and/or customized content according to this module message, and notice prompt window component exhibiting; And
By prompt window component exhibiting displaying format customization icon and/or customized content.
Wherein:
The further module id of the functional module that loaded of record after the module message Management Unit value-added tax function module, and after receiving module message, determine to receive the functional module of this message according to this module id.
Described module message Management Unit sends described module message to described functional module as parameter by interface.
Described functional module is determined corresponding custom icon and/or customized content according to the information of specific fields in the module message.
Described specific fields is made of one or more bits, to realize the fine granularity customization.
After described prompt window component exhibiting received notice, the interface that the functional module by correspondence provides dynamically obtained custom icon and/or customized content; Perhaps described functional module sends custom icon and customized content message to described prompt window component exhibiting as parameter.
The present invention has following beneficial effect:
1, adopts the present invention can satisfy different functional modules and adopt different custom icon to indicate oneself, when adding new functional module, need not revise kernel code simultaneously, support of the icon customization of new functional module own message.
2, adopt the present invention, when the difference in functionality module information arrives, when tray zone flashes custom icon, can eject the prompt window of relevant this module message summary, in conjunction with icon and content the user is carried out clearer and more definite prompting simultaneously.The user can be more convenient pass through the operation of prompt window is carried out further mutual.
3, each functional module can be further according to the characteristics of this module and the further custom icon of content of arrival message, and for example the IM module is man or woman according to the other side and shows different icon etc.
Description of drawings
Fig. 1 is the structural representation of IM client among the present invention;
Fig. 2 is for realizing the flow chart of icon customization among the present invention;
Fig. 3 is the message structure schematic diagram of module message among the present invention;
Fig. 4 A, 4B among the present invention to the display effect figure of module message custom icon and customized content.
Embodiment
The present invention will be separated from each other the common treatment funtion part and the customized treatment funtion part of disparate modules message on the basis of the module message communication of existing IM software, to improve the flexibility of module message customization.
In the embodiment of the invention, to the common treatment funtion part of disparate modules message as the kernel module in the IM software client, and to the customized treatment funtion part of module message as the functional module in the IM software client.Kernel module is responsible for module is arrived the management that the message customized experience is concentrated, and needs the information of the functional module of loading to be recorded in the configuration file, and kernel module loads corresponding functional modules according to configuration file.
Consult shown in Figure 1ly, the IM client comprises kernel module, functional module A and functional module B.The quantity of functional module is not limited to this, can have only one, also can be more than two.
Kernel module is mainly used in receiver module message, and according to the module id in the module message this module message is handed to corresponding functional module, and displaying format customization icon and/or customized content.Functional module is mainly used in according to module message and prepares custom icon and/or customized content and notice kernel module.
Kernel module further comprises module message Management Unit and prompt window component exhibiting (being the Tip component exhibiting), wherein:
Described module message Management Unit is used for according to configuration file value-added tax function module, and according to the sign of the module message that receives it is handed to corresponding functional module.
It is custom icon and/or the customized content that module message is prepared that described prompt window component exhibiting is used for by graphic interface display function module.
Functional module provides interface, and the prompt window component exhibiting in the kernel module can obtain dynamic icon from functional module by this interface.
After adopting said structure, handled respectively by kernel module and functional module before module message is demonstrated, make relevant party be ready to the various data of message customized experience; Functional module then provides and endorses the interface that obtains dynamic icon in one, dynamically is ready to custom icon before arrival message is demonstrated; The prompting component exhibiting need arrive module the custom icon of message and/or the customized content mode by prompt window and show the user.
(Component Object Model, COM) the interface definition standard realizes the The Component Object Model that can adopt widespread usage among the Windows alternately in the kernel module between module message Management Unit and prompt window component exhibiting and the functional module.Preferable implementation is, module message Management Unit, prompt window component exhibiting and functional module realize a com interface respectively, and the masters of communication only need know that the interface that receives the recipient exists, and does not need directly to carry out close coupling with the recipient.For example the module message Management Unit is in forwarding module message, by the function of a unified interface interchange functional module A or functional module B, and need be at the difference of A or B and change the processing code.Adopt the advantage of COM to be loose coupling and to meet industrial standard.
Consult shown in Figure 2ly, realize that the process that custom icon shows is as follows:
The opposite end client of step 200, communication carries the module id of modules A to local client sending module A message in this module message.
Module message Management Unit in step 210, the kernel module is handled this message, and according to the module id in the message it is handed to corresponding functional modules A and handle.
As for the IM module message, when handling this message, at first obtains the module message Management Unit module id of message from the specific part of message, preceding 100 bits (Byte) of message body (this deposit position all is consistent to all module messages) for example, according to the module id (for example " MODULE-IM ") of this module id and the functional module that loaded, decision is handed to the IM module with this message.
Find when step 220, functional module A preliminary treatment that this message need show user's (signaling message does not generally need to show the user) by prompt window, is ready to custom icon and customized content in inside.
As for the IM module, because module message itself is the other side IM module structure, so local IM module is known the formation of this module message, therefore the IM module is resolved the information of back acquisition module message body specific fields to module message, as the 101st byte, find that the numeral of wherein depositing is 1, the IM module determines that the corresponding sex information and 1 of this byte corresponds to the man, so the IM module is at first pointed to the icon variable in inside male sex IM user's icon deposit position; IM continues the content of the 102-165byte of analysis message then, it has been defined as eap-message digest during the IM module coding, so the IM module is appointed as content to be displayed the content of this part.The content of remainder is ignored in this is handled.
Prompt window component exhibiting in step 230, the functional module A notice kernel module has an arrival message to need to show.
Step 240, prompt window component exhibiting obtain custom icon and customized content to functional module A.
Step 250, prompt window component exhibiting are integrated custom icon and customized content, and show the user by the graphical interfaces window.
Prompt window provides X button directly to ignore message for the user, the user clicks the further processing of the processing module in the triggering kernel module to message prompt window, it is handled with to have mode now identical, as passing through the message content in the window display module message.Prompt window can be user-friendly to by supporting simple interactive operation.
In above-mentioned flow process, functional module also can directly be called the display function of prompt window component exhibiting with custom icon and customized content as parameter by interface.
Below with the processing procedure of IM module message and broadcast module message be example the present invention is further described, message constitutes sees Fig. 4 (message header comprises the general information of some message, and 100byte is as module id before the message body):
The processing procedure of example 1, broadcast module message (module only needs an icon to show customization)
When starting, sets up kernel the correspondence table of a module id and respective modules interface, wherein: " MODULE-IM " respective modules IModule1 (IM module), " MODULE-BROADCAST " respective modules IModule2 (broadcast module) by configuration file.
After the core message Management Unit receives a new module message, 100byte before obtaining in this message body, content is " MODULE-BROADCAST ", by inquiring about the correspondence table of having set up, it is given to module IM odule2 and carries out preliminary treatment, just broadcast module with this message; The preliminary treatment of module IM odule2 is fairly simple, and contents all behind the preceding 100byte in the message body as content to be displayed, will be broadcasted icon and content to be displayed then and showed as the interface of parameter call prompt window component exhibiting realization; The prompt window component exhibiting utilizes the UI special efficacy of self unifying to realize that broadcasted content and broadcasting icon are showed.The user clicks this prompt window, can watch the detailed content of broadcasting; Click " X button " and can ignore this broadcasting.Its effect is shown in Fig. 4 A.
The processing procedure of example 2, IM module message (module needs dynamically to change custom icon according to content)
Set up the correspondence table of a module sign and respective modules interface when kernel starts by configuration file, wherein: " MODULE-IM " respective modules realizes IModule1, and " MODULE-BROADCAST " respective modules realizes IModule2.
After the core message Management Unit gets access to a new module message, obtain preceding 100byte in this message body, its content is " MODULE-IM "; By the correspondence table that inquiry has been set up, inner core managing module is given to IModule1 with it and is carried out preliminary treatment, just the IM module; The IM module is further handled message, module is obtained the 101st byte of message body, find that the numeral of wherein depositing is 1, the IM module knows that the corresponding sex information and 1 of this byte corresponds to the man, so the IM module at first will be pointed to male sex IM user's icon deposit position with the variable of display icon in inside; IM continues the content of the 102-165byte of analysis message then, it has been defined as eap-message digest during the IM module coding, so the IM module is appointed as content to be displayed the content of this part.The content of remainder is ignored in this is handled; Then icon to be shown and content to be displayed are showed as the interface of parameter call prompt window component exhibiting realization; The prompt window component exhibiting utilizes the UI special efficacy of self unifying to realize that IM synopsis and the other side's sex icon are showed.The user clicks this prompt window, can watch the detailed content of IM; Click " X button " and can ignore this message.Its effect is shown in Fig. 4 B.If 101byte is 0, then the icon variable is made as women IM user's picture mark position, promptly realized the effect of the dynamic custom icon of module shown in Fig. 4 C.
In example 2, can increase the number of bits that is used to represent custom icon, as adopt two bits, 00 corresponding expression friend's custom icon, 01 corresponding expression household's custom icon, 10 corresponding expression relative's custom icon, 11 corresponding expression classmates' custom icon, the concrete processing procedure of its realization and in like manner above-mentioned.Like this, can realize the fine granularity customization, satisfy different user's requests.
For other modules, as mobile module, the meaning of each byte is different in the message body, it can go to define relevant meaning according to the agreement of own inside modules, and the icon and the content of decision needs demonstration in view of the above, for example the 200byte of message is defined as the user that the A of operator still is the B of operator, and defines inner icon variable respective value in view of the above.
Adopt the present invention, when extended function module, can not change kernel module, can add the custom icon that needs very easily, and can carry out fine-grained customization according to the content that arrives message; Adopt the present invention to make the experience of module arrival message clearer and more definite, more convenient alternately.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1, a kind of in instant messaging the device of display module message, it is characterized in that, comprising:
Be used for providing the functional module of custom icon and/or customized content according to the module message that receives;
Be used for loading described functional module, and module message be transmitted to described functional module and show the kernel module of custom icon and/or customized content according to the notice of this functional module according to the configuration information of configuration file.
2, device as claimed in claim 1 is characterized in that, described kernel module comprises:
Be used for the value-added tax function module and module message be transmitted to the module message Management Unit of corresponding functional module;
Be used for showing the prompt window component exhibiting of custom icon and/or customized content according to the notice of described functional module.
3, device as claimed in claim 2 is characterized in that, described functional module, module message Management Unit and prompt window component exhibiting have The Component Object Model (COM) protocol interface respectively, passes through this interactive interfacing between each module.
4, a kind of in instant messaging the method for display module message, it is characterized in that, comprise the steps:
The module message Management Unit loads the functional module of customized messages icon according to the configuration information in the configuration file;
Described module message Management Unit is transmitted to corresponding functional module according to the module id that carries in the module message that receives with this module message;
The functional module that receives module message provides corresponding custom icon and/or customized content according to this module message, and notice prompt window component exhibiting; And
By prompt window component exhibiting displaying format customization icon and/or customized content.
5, method as claimed in claim 4, it is characterized in that, the further module id of the functional module that loaded of record after the module message Management Unit value-added tax function module, and after receiving module message, determine to receive the functional module of this message according to this module id.
6, method as claimed in claim 5 is characterized in that, described module message Management Unit sends described module message to described functional module as parameter by interface.
7, method as claimed in claim 4 is characterized in that, after described prompt window component exhibiting received notice, the interface that the functional module by correspondence provides dynamically obtained custom icon and/or customized content; Perhaps
Described functional module sends custom icon and customized content message to described prompt window component exhibiting as parameter.
As each described method of claim 4 to 7, it is characterized in that 8, described functional module is determined corresponding custom icon and/or customized content according to the information of specific fields in the module message.
9, method as claimed in claim 8 is characterized in that, described specific fields is made of one or more bits, to realize the fine granularity customization.
As claim 6 or 7 described methods, it is characterized in that 10, described interface adopts The Component Object Model (COM) protocol interface.
CN 200610001395 2006-01-19 2006-01-19 Device and method for display module message in instant communication Active CN101005487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610001395 CN101005487B (en) 2006-01-19 2006-01-19 Device and method for display module message in instant communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610001395 CN101005487B (en) 2006-01-19 2006-01-19 Device and method for display module message in instant communication

Publications (2)

Publication Number Publication Date
CN101005487A true CN101005487A (en) 2007-07-25
CN101005487B CN101005487B (en) 2013-01-30

Family

ID=38704351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610001395 Active CN101005487B (en) 2006-01-19 2006-01-19 Device and method for display module message in instant communication

Country Status (1)

Country Link
CN (1) CN101005487B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009130605A2 (en) * 2008-04-21 2009-10-29 Vaka Corporation Methods and systems for customizing and embedding widgets in instant messages
CN102404127A (en) * 2010-09-08 2012-04-04 腾讯科技(深圳)有限公司 Method and device both for reminding of new message
CN102523175A (en) * 2011-12-18 2012-06-27 上海量明科技发展有限公司 Method and system for storing icon files by transmitting data via instant communication
CN102567414A (en) * 2010-12-31 2012-07-11 上海量明科技发展有限公司 Method and system for storing interactive communication document
CN101714079B (en) * 2008-10-07 2013-06-12 华硕电脑股份有限公司 Method of computer system transferring notice icon relating to notice region and relevant device thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050055412A1 (en) * 2003-09-04 2005-03-10 International Business Machines Corporation Policy-based management of instant message windows

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009130605A2 (en) * 2008-04-21 2009-10-29 Vaka Corporation Methods and systems for customizing and embedding widgets in instant messages
WO2009130605A3 (en) * 2008-04-21 2010-01-07 Vaka Corporation Methods and systems for customizing and embedding widgets in instant messages
US8413055B2 (en) 2008-04-21 2013-04-02 Vaka Corporation Methods and systems for customizing and embedding widgets in instant messages
CN101714079B (en) * 2008-10-07 2013-06-12 华硕电脑股份有限公司 Method of computer system transferring notice icon relating to notice region and relevant device thereof
CN102404127A (en) * 2010-09-08 2012-04-04 腾讯科技(深圳)有限公司 Method and device both for reminding of new message
CN102404127B (en) * 2010-09-08 2014-06-11 腾讯科技(深圳)有限公司 Method and device both for reminding of new message
CN102567414A (en) * 2010-12-31 2012-07-11 上海量明科技发展有限公司 Method and system for storing interactive communication document
CN102523175A (en) * 2011-12-18 2012-06-27 上海量明科技发展有限公司 Method and system for storing icon files by transmitting data via instant communication
CN102523175B (en) * 2011-12-18 2016-01-06 上海量明科技发展有限公司 Instant messaging transmission data carry out the method and system of icon file storage

Also Published As

Publication number Publication date
CN101005487B (en) 2013-01-30

Similar Documents

Publication Publication Date Title
US11171894B2 (en) Interface for managing messages in a mobile terminal
US10136285B2 (en) Bluetooth alert notification service
US7529853B2 (en) Universal IM and presence aggregation on technology-specific client
US20110202853A1 (en) Contact objects
US20090203403A1 (en) Mobile communication device notifier
US20120094647A1 (en) Utilizing mobile device functionality from remote computers
CN102833180B (en) Method and system for sharing microblog messages
WO2013189363A2 (en) Method for sending/receiving information by both parties in call state and mobile terminal
KR20150110060A (en) Method and electronic device for displaying contact
CN101005487B (en) Device and method for display module message in instant communication
CN102291490A (en) Handheld terminal and quick switching method of communication application program of handheld terminal
CN109861904A (en) Nametags display methods and device
WO2020135431A1 (en) Message urgent reminding method and apparatus, and electronic device
JP2017534226A (en) Contact recording processing method, apparatus, program, and recording medium
CN102932533A (en) Method and device for third party application program to call contacts
CN101938560A (en) Mobile communication terminal message management method and mobile communication terminal
CN102395112A (en) Intercommunication method for diversified multi-media information and mobile terminal
US20080227489A1 (en) Method and system for providing multi-style user interface for mobile terminal
CN201813538U (en) System for mass-sending short messages
KR102058635B1 (en) Method for controlling file name and an electronic device thereof
WO2018205073A1 (en) Method for reminding about email and email server
US20060035666A1 (en) Method for transmitting data signals via wireless communication device during conversation
CN1327734C (en) Telephone number information generation and storage method of mobile communication terminal
CN114731493A (en) Method for sending or receiving short message through internet message application program under condition of not using internet
US8417291B2 (en) Method and apparatus for managing phonebook in a portable terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant