CN101404626B - Instant communication system and electronic equipment - Google Patents

Instant communication system and electronic equipment Download PDF

Info

Publication number
CN101404626B
CN101404626B CN2008102175804A CN200810217580A CN101404626B CN 101404626 B CN101404626 B CN 101404626B CN 2008102175804 A CN2008102175804 A CN 2008102175804A CN 200810217580 A CN200810217580 A CN 200810217580A CN 101404626 B CN101404626 B CN 101404626B
Authority
CN
China
Prior art keywords
box window
module
dialog box
class
user
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.)
Active
Application number
CN2008102175804A
Other languages
Chinese (zh)
Other versions
CN101404626A (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
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 CN2008102175804A priority Critical patent/CN101404626B/en
Publication of CN101404626A publication Critical patent/CN101404626A/en
Application granted granted Critical
Publication of CN101404626B publication Critical patent/CN101404626B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention, applicable to the computer technology field, provides an instant communication system and an electronic device thereof. The system includes: a user information module, which is used for maintaining the user information of the whole instant communication system according to stored users and linkmen information and establishing a linkman list of the user; a dialogue box window module, which is used for achieving the operation of dialogue box window and taking charge of management and maintenance of all dialogue box window information; and a main interface module, which is used for displaying the user information in the linkman list established by the user information module and utilizing the dialogue box window module according to the operation information input by the user to complete the corresponding operation of the dialogue box window related with the linkman. The invention respectively completes the processing of user information, main interface and dialogue box window by different modules and achieves an instant communication system. The loose coupling of all modules of the system is conducive to later function expansion and the maintainability is strong.

Description

A kind of instant communicating system and electronic equipment
Technical field
The invention belongs to field of computer technology, relate in particular to a kind of instant communicating system and electronic equipment.
Background technology
Network instant communication (Instant Messenger, IM) instrument develops into today, accepted by most netizen, the user is in life or work all a large amount of use IM software realizations and the exchanges and communication between friend, colleague and the classmate, IM software has become among the user one of indispensable instrument in the daily life, the user is to the ease for use of IM software, stability, and fail safe, easily aspect such as autgmentability has proposed higher requirement.Existing most of IM software, though powerful, safe, coupling height between each module, interdepend seriously, be not easy to later stage function expansion, maintainable poor.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of instant communicating system, is intended to solve coupling height between existing each module of IM software, is not easy to problems such as expansion and maintainable difference.
The embodiment of the invention is achieved in that a kind of instant communicating system, and described system comprises:
Subscriber information module is used for the user profile according to user who stores and contact person's thereof the whole instant communicating system of maintenance of information, and sets up user's contacts list;
Dialogue box window module is used to realize the operation of dialog box window, and is in charge of and safeguards all dialog box window information; And
Main interface module, be used for each user profile in the contacts list that the described subscriber information module of main interface demonstration is set up, the operation information of importing according to the user calls the corresponding operating that described dialogue box window module is finished the dialog box window related with the contact person;
Described subscriber information module, dialogue box window module and main interface module are finished the processing to user profile, dialog box window and main interface respectively;
Described subscriber information module and dialogue box window module are in-process assembly, and described main interface module is the outer assembly of process, and described system utilizes the microsoft foundation class development environment to realize.
Another purpose of the embodiment of the invention is to provide the electronic equipment that comprises above-mentioned instant communicating system.
In embodiments of the present invention, finish processing respectively, realized a kind of instant communicating system, the loose couplings between each module of system, be easy to later stage function expansion, maintainable strong user profile, main interface and dialog box window by different modules.
Description of drawings
Fig. 1 is the structure chart of the instant communicating system that provides of the embodiment of the invention;
Fig. 2 is the schematic diagram at the main interface that provides of the embodiment of the invention;
Fig. 3 is the schematic diagram of the dialog box window that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, finish processing respectively by different modules to user profile, main interface and dialog box window.
Fig. 1 shows the structure of the instant communicating system that the embodiment of the invention provides, and only shows the part relevant with the embodiment of the invention for convenience of explanation.
This system can be used for electronic equipment, for example computer, personal digital assistant (Personal DigitalAssistant, PDA), mobile phone etc., can be to run on the unit that software unit, hardware cell or software and hardware in these electronic equipments combine, also can be used as independently, suspension member is integrated in these electronic equipments or runs in the application system of these electronic equipments, wherein:
Subscriber information module 101 according to the user of storage and the user profile of contact person's the whole instant communicating system of maintenance of information thereof, and is set up user's contacts list.
Dialogue box window module 102 realizes the operation of dialog box window, and is in charge of and safeguards all dialog box window information.
Main interface module 103, each user profile in the contacts list that display user's information module 101 is set up in main interface, the operation information of importing according to the user calls the corresponding operating that dialogue box window module 102 is finished the dialog box window related with the contact person.Here, when the user clicks certain contact person on main interface, call the session window that dialogue box window module 102 realizes ejecting respective contacts.
In embodiments of the present invention, with user's information and each contact person's that this user had information stores in a file such as .ini of service end, user profile comprises instant messaging number, head portrait sequence number, the pet name, sex data etc., after the user lands by instant communicating system, obtain the relative users of storage and each contact person's of being had information from service end, according to the user profile of the whole instant communicating system of maintenance of information that gets access to.Set up user profile class CUserInfo and subscriber information management class CuserInfoMgr in subscriber information module 101, details are as follows:
User profile class CUserInfo is used for maintenance customer and each contact person's thereof essential information, and such has encapsulated instant messaging number, head portrait sequence number, the pet name, sex data of user or its each contact person etc.Extraneous as obtaining user or its each contact person's instant messaging number, only call such the corresponding interface that is exposed to the external world and obtain.
Subscriber information management class CuserInfoMgr, realization is to the management of user profile class CUserInfo, be responsible for safeguarding the information of all user profile class CUserInfo, it is inner, and we utilize map<DWORD, CUserInfo〉m_MapUserInfo realizes, uses the index of instant messaging number as user profile, according to the particular number in the user profile, be communication number, set up contacts list.Interpolation member method in subscriber information management class CUserInfoMgr is used for reading from the .ini file whole contact persons' user profile, and each user profile is added in the MapUserInfo structure.
In order to allow the relevant portion in other modules obtain its conceivable user profile, but do not rely on subscriber information management class CUserInfoMgr, to reach independently requirement of module.Here we utilize the COM codes and standards, user profile class CUserInfo and subscriber information management class CUserInfoMgr are defined as an in-process assembly (in-process component), it also is com component, and be that it defines user information interface IUserInfo, provide invoke user information management class CUserInfoMgr interface operable to the external world, defining interface HRESULT GetNickName (DWORD dw for example, BSTR*pt), be used to offer caller conceivable certain user's the pet name.
Then, main interface module 103 is embodied as the outer assembly (out-of-process component) of process, each user profile in the contacts list that the described subscriber information module of demonstration is set up in main interface, the operation information of importing according to the user calls the corresponding operating that dialogue box window module 102 is finished the dialog box window related with respective contacts.Portion adds private variable CListCtrl m_listCtrl within it, is used for realizing each user profile of contacts list is presented in the main interface, and main interface as shown in Figure 2.Wherein, we are with the global variable of subscriber information management class CUserInfoMgr as this assembly, and such benefit is the copy that the overall situation has only a user profile, for distributed application, can effectively solve the problem of data sync like this.Use this scheme, can well realize the target of user profile and interfacial separation, modularized program design, and provide strong guarantee for carrying out of follow-up work.
Then, dialogue box window module 102 is embodied as the in-process assembly of another one, calls, when the user clicks certain contact person on main interface, be responsible for the establishment and the management of the session window of the corresponding respective contacts of ejection for main interface module 103.Definition dialog box window class CallInOneDiag is used to realize whole operations of the dialog box window related with the contact person, and the interface of dialog box window as shown in Figure 3.In dialog box window class CallInOneDiag, add privately owned member map<DWORD, CAllInOneDiag*〉m_diagShow, the dialog box window instance objects of maintenance, the corresponding respective contacts of management of dialogs frame window class CallInOneDiag.Define the dialog box window administrative class, be in charge of and safeguard the example of all dialog box window class CallInOneDiag.For each dialog box window program when clicking X button and finish the life cycle of oneself, can notify the example of its corresponding dialog box window administrative class, be called the manager among the present invention, be allowed to condition at deletion this dialog box window instance objects itself among the m_diagShow well, in dialog box window class CAllInOneDiag, adding privately owned member CComPtr<IAllInOneDiag〉pAllInOneDiag preserves its gerentocratic pointer, meanwhile, defining interface HRESULTRemoveAllInOneDiag (DWORD dw) is used for example at the specific dialog box window class CAllInOneDiag of m_diagShow deletion in the dialog box window administrative class.Like this, because certain concrete dialog box window class CAllInOneDiag example just can call its gerentocratic interface RemoveAllInOneDiag (DWORD dw) that removes dialog box window, thereby reach the purpose of notifying it.Like this, the administrative relationships between the example of dialog box window class CAllInOneDiag and its manager have just been set up.
In addition, be dialogue box window module 102 definition dialog box window administrative class interface IAllInOneDiag, be used for providing and call dialog box window class CallInOneDiag interface operable to the external world.2 interface HRESULT of this interface definition DiagOpen (DWORD dw, IUserInfo*pUserInfo), HRESULTDiagClose (), for main interface module 103 routine calls.In main interface module 103, preserve the interface pointer of described dialog box window class CAllInOneDiag simultaneously, be used for carrying out alternately with dialogue box window module 102, by in main interface module 103 programs, adding privately owned member CComPtr<IAllInOneDiag pAllInOneDiag realizes.When the user clicks a contact person at main interface, main interface module 103 is at first called the com interface of dialog box window administrative class CAllInOneDiag, is responsible for opening and closing operation of finishing the dialog box window corresponding with this contact person etc. again by the dialog box window administrative class.
Above-mentioned dialog box window class CAllInOneDiag is responsible for dialog box window and shows, it can also safeguard the operation of all content displayed and execution on the dialog box window interface, all changes about dialog box window in the down-stream only need to realize that corresponding change gets final product in dialog box window class CAllInOneDiag, and do not need to change other modules, for the expansion of program provides bigger freedom.
In embodiments of the present invention, utilize microsoft foundation class (Microsoft Foundation Classes, MFC) development environment and com component technology, realized a kind of framework of lightweight instant communicating system, subscriber information module 101 and dialogue box window module 102 are embodied as in-process assembly, main interface module 103 is embodied as the outer assembly of process, in the MFC development environment,, comes to be responsible for respectively maintenance customer's information and interface by the different class of definition.
Further, other expanded functions (for example system's setting, demonstration weather forecast etc.) of instant communicating system also can be embodied as corresponding in-process assembly, main interface module 103 is called corresponding in-process assembly and is finished corresponding operating after receiving the operation information of user's input.
In addition, the instant communicating system that provides of the embodiment of the invention also can be a user saves as the local disk data with this user's information and each contact person's of having thereof information after this lands end.Like this, this user is in next landfall process, and instant communicating system can directly read this user's information from this locality and the individual contact person's that has user profile, and need not to obtain data from service end again, helps reducing the load of service end.
Certainly, the instant communicating system that the embodiment of the invention provides can also be realized whole instant communicating system, for example CORRBA .NET, DCOM etc. according to different application scenarioss except realizing with com component with other modularity.
In embodiments of the present invention, finish processing respectively, realized a kind of instant communicating system, the loose couplings between each module of system, be easy to later stage function expansion, maintainable strong user profile, main interface and dialog box window by different modules.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the foregoing description method is to instruct relevant hardware to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. an instant communicating system is characterized in that, described system comprises:
Subscriber information module is used for the user profile according to user who stores and contact person's thereof the whole instant communicating system of maintenance of information, and sets up user's contacts list;
Dialogue box window module is used to realize the operation of dialog box window, and is in charge of and safeguards all dialog box window information; And
Main interface module, be used for each user profile in the contacts list that the described subscriber information module of main interface demonstration is set up, the operation information of importing according to the user calls the corresponding operating that described dialogue box window module is finished the dialog box window related with the contact person;
Described subscriber information module, dialogue box window module and main interface module are finished the processing to user profile, dialog box window and main interface respectively;
Described subscriber information module and dialogue box window module are in-process assembly, and described main interface module is the outer assembly of process, and described system utilizes the microsoft foundation class development environment to realize.
2. the system as claimed in claim 1 is characterized in that, the outer assembly of described in-process assembly and process is com component.
3. system as claimed in claim 2 is characterized in that, described subscriber information module comprises:
The user profile class is used for maintenance customer and each contact person's thereof essential information;
The subscriber information management class is used to realize the management to described user profile class; And
User information interface is used for providing the interface that calls described subscriber information management generic operation to the external world.
4. system as claimed in claim 2 is characterized in that, described dialogue box window module comprises:
The dialog box window class is used to realize the operation of the dialog box window related with the contact person;
The dialog box window administrative class is used to be in charge of and safeguard the example of all dialog box window classes; And
Dialog box window administrative class interface is used for providing the interface that calls described dialog box window generic operation to the external world.
5. system as claimed in claim 3 is characterized in that, described main interface module with the subscriber information management class as global variable.
6. system as claimed in claim 4 is characterized in that, preserves the interface pointer of described dialog box window administrative class in the described main interface module, is used for carrying out alternately with described dialogue box window module.
7. electronic equipment that comprises each described instant communicating system of claim 1 to 6.
CN2008102175804A 2008-11-10 2008-11-10 Instant communication system and electronic equipment Active CN101404626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102175804A CN101404626B (en) 2008-11-10 2008-11-10 Instant communication system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102175804A CN101404626B (en) 2008-11-10 2008-11-10 Instant communication system and electronic equipment

Publications (2)

Publication Number Publication Date
CN101404626A CN101404626A (en) 2009-04-08
CN101404626B true CN101404626B (en) 2011-08-17

Family

ID=40538500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102175804A Active CN101404626B (en) 2008-11-10 2008-11-10 Instant communication system and electronic equipment

Country Status (1)

Country Link
CN (1) CN101404626B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130034832A (en) * 2011-09-29 2013-04-08 삼성전자주식회사 Expansion function supporting method and electric device supporting the same
CN104348706A (en) * 2013-08-02 2015-02-11 腾讯科技(深圳)有限公司 Information display method and device and server
CN103472975A (en) * 2013-09-11 2013-12-25 江苏中科梦兰电子科技有限公司 Intelligent terminal human-computer interaction method with instant messaging style

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620045A (en) * 2003-08-19 2005-05-25 罗技欧洲公司 Instant messenger presence and identity management
CN1992623A (en) * 2005-12-28 2007-07-04 腾讯科技(深圳)有限公司 Method for establishing muti-person session discussion group of instant communication
CN101159714A (en) * 2007-11-30 2008-04-09 腾讯科技(深圳)有限公司 Instant communication method, device and cluster server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620045A (en) * 2003-08-19 2005-05-25 罗技欧洲公司 Instant messenger presence and identity management
CN1992623A (en) * 2005-12-28 2007-07-04 腾讯科技(深圳)有限公司 Method for establishing muti-person session discussion group of instant communication
CN101159714A (en) * 2007-11-30 2008-04-09 腾讯科技(深圳)有限公司 Instant communication method, device and cluster server

Also Published As

Publication number Publication date
CN101404626A (en) 2009-04-08

Similar Documents

Publication Publication Date Title
CN100553238C (en) A kind of associated user display system and method
CN101938568B (en) Method, system and mobile terminal for positioning information
CN101895607A (en) Method and terminal for protecting user privacy information
CN107464557A (en) Call recording method, device, mobile terminal and storage medium
CN1968468B (en) Tetra mobile phone integrating GIS and PDA functions and implementation method thereof
CN101605158A (en) Mobile phone dedicated for deaf-mutes
US20120324329A1 (en) Presentation of tabular information
CN109960813A (en) A kind of interpretation method, mobile terminal and computer readable storage medium
CN103414815A (en) Method and terminal for displaying contact information
Inostroza et al. Usability heuristics validation through empirical evidences: A touchscreen-based mobile devices proposal
CN101404626B (en) Instant communication system and electronic equipment
JP2013118612A (en) Screen capture method for mobile communication terminal
CN103544954A (en) Method and device for adding text label to voice message
CN110049187A (en) A kind of display methods and terminal device
CN104159204A (en) Information interaction method and apparatus based on short messages
CN113821132B (en) Message processing method and device
CN105893735B (en) Medical information remote co-screen assistance method and terminal
CN101815120A (en) Method, system and mobile communication terminal for adding recipient in editing interface
CN101917509B (en) Linux-based telephone system under MID platform and implementation method thereof
CN107122686A (en) Share the method, device and mobile terminal of screen content
CN108737653A (en) A kind of chat based reminding method, terminal and computer readable storage medium
CN101599917A (en) System, method and the interface of instant messages service are provided
CN102447730A (en) Method and system used for helping to know contacts
Bergqvist et al. ComCenter: a person oriented approach to mobile communication
KR100837142B1 (en) Device and method of providing network contents for heterogeneous mobile platforms and computer-readable medium having thereon program performing function embodying the same

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