CN101140517A - Method and device for realizing business card holder Vcard format in PC software - Google Patents

Method and device for realizing business card holder Vcard format in PC software Download PDF

Info

Publication number
CN101140517A
CN101140517A CNA2007101762426A CN200710176242A CN101140517A CN 101140517 A CN101140517 A CN 101140517A CN A2007101762426 A CNA2007101762426 A CN A2007101762426A CN 200710176242 A CN200710176242 A CN 200710176242A CN 101140517 A CN101140517 A CN 101140517A
Authority
CN
China
Prior art keywords
vcard
file
software
formatted file
card holder
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.)
Pending
Application number
CNA2007101762426A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA2007101762426A priority Critical patent/CN101140517A/en
Publication of CN101140517A publication Critical patent/CN101140517A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention discloses a method to fulfill a card holder VCard format in PC software, which is applied to mobile memory devices with function of address list and comprises procedures of creating and parsing VCard format file. The VCard format file creating includes: obtaining contact information input by users and tidying the contact information to create VCard format file according to VCard requirements and memorize the VCard format file in light of contact position information. Moreover, the VCard format file parsing includes procedures below: The PC software searches the VCard file based on command input by the VCard file and the designated file path to verify whether the VCard content is legal. If legal, the VCard file content is parsed. The software sends a command of adding contact to add contact. Furthermore, the present invention discloses a device and a mobile memory device applying the said method.

Description

In PC software, realize the method and the device of business card holder Vcard format
Technical field
The present invention relates to mobile phone, network interface card PC bundled software field processing mode, particularly a kind of method and device of in PC software, realizing business card holder Vcard format to cards folder.
Background technology
Cards folder is one of ingredient of outbalance in the wireless device PC bundled softwares such as mobile phone, network interface card, for a long time, industry is for the storage mode of cards folder, the storage mode of more employing database, because the develop rapidly of the communications industry, the client requires to get more and more to the memory space of associated person information, uses database stores information, has following problem:
The first, the informational needs of revising certain field in the cards folder increases or revises the field contents of correspondence in database, needs upgrade database, and the Fundamentals of shake-up are more;
The second, between the same manufacturer different model machine, the exchange difficulty of associated person information is bigger;
Three, the product of different manufacturers, reading of associated person information is very inconvenient.
When above-mentioned defective caused the user to carry out the mobile phone replacing, problem was particularly outstanding.
And the VCard standard allows that open exchange personal data exchange (Personal Data Interchange PDI) information, can find these information at the traditionally on paper business card.The form of normalized definition electronic business card (or being VCard).The VCard standard can be used as the Interchange Format between various application or the system.The form of definition and the method for transmission are irrelevant.Transmitting exchange may be file system, and the public telephone network of point-to-point exchange is in the mode of cable network or wireless transmission.The user can directly utilize VCard on the internet, Email can be transmitted associated person information in VCard, the form that a lot of users fill on the webpage can use VCard automatically, admittedly consider that direct application VCard formatted file is in mobile terminal stores equipment, to address the aforementioned drawbacks.
Summary of the invention
Technical matters to be solved by this invention is, a kind of method and device of realizing business card holder Vcard format in PC software is provided, contact person record information is changed into the VCard file layout, when the contact field information-change, reduced degree of dependence, and the user can also be by software easily with importing, the derivation of associated person information to database.
For achieving the above object, the movable storage device that the method that realizes business card holder Vcard format in PC software provided by the present invention is applied to have phonebook function, this method comprises: the VCard formatted file generates step and VCard formatted file analyzing step,
Described VCard formatted file generates step and comprises:
Steps A is obtained the associated person information of user's input, and described associated person information is put in order;
Step B according to the VCard requirement, generates the VCard formatted file with described associated person information;
Step C stores described VCard formatted file according to described contact man position information;
Described VCard formatted file analyzing step comprises again:
Step D, PC software imports instruction according to the VCard file and specified file path is searched described VCard file, searches successfully execution in step E, otherwise end operation;
Whether step e checks described VCard file content legal, legally then resolves described VCard file content execution in step F, otherwise end operation;
Step F, described PC software are sent command of adding contact and are added the contact person.
The above-mentioned method that in PC software, realizes business card holder Vcard format, in the described steps A, the described step that associated person information is put in order, be the length information of arranging in the length information of the actual input of user and the original configuration file to be compared by PC software, the part that exceeds is reduced, and the length information of arranging in described original configuration file is to obtain by the mode of instruction dynamic interaction in R﹠D process.
The above-mentioned method that in PC software, realizes business card holder Vcard format, described VCard file content starts with BEGIN:VCARD, ends up with END:VCARD; Described VCard data layout is: type [; Parameter]: value.
The above-mentioned method that in PC software, realizes business card holder Vcard format, described step C further comprises, one judges the step of the position that described contact person will store, be used for judging according to described position information of contact whether described contact person is subordinated to movable storage device, as be subordinated to movable storage device, then send the VCard formatted file that generates to the movable storage device side and add the contact person, otherwise, end operation.
The step that the above-mentioned method that realizes business card holder Vcard format in PC software, described VCard formatted file with generation send movable storage device side interpolation contact person to further comprises:
Step C1, PC software send to movable storage device and add contact person's request instruction and transmit described VCard formatted file;
Step C2, the VCard demoder of described movable storage device side is resolved the VCard formatted file of described transmission, and carries out the operation of adding the contact person;
Step C3, feedback is added contact person's operating result.
The above-mentioned method that in PC software, realizes business card holder Vcard format, the step that described feedback is added contact person's operating result further comprises:
Step C31, the movable storage device side feeds back to the PC side with operating result ID;
Step C32, the PC side is resolved described ID value, is failure operation as analysis result, described PC side retrieval and the output of ID corresponding prompt message.
The above-mentioned method that in PC software, realizes business card holder Vcard format, in the described step e, whether legal step further comprises to check described VCard file content:
Check described VCard file whether with the BEGIN:VCARD beginning, with the END:VCARD ending ";
Check described VCard data layout whether to be: type [; Parameter]: value.
The above-mentioned method that in PC software, realizes business card holder Vcard format, described step F further comprises:
Step F 1, system call command of adding contact module, and feedback is added ID as a result;
Step F 2, PC software are resolved described ID value, and retrieval and the output of this ID value corresponding prompt message.
Further, the present invention also provides a kind of device of realizing the method for business card holder Vcard format in the above-mentioned PC software of using, and is arranged in the phonebook module of movable storage device, and this device comprises:
VCard formatted file generation module is used at PC software cards folder information being converted into the VCard formatted file and stores;
VCard formatted file parsing module is used for when the VCard formatted file is carried out import operation described VCard formatted file being resolved.
Further, the present invention also provides a kind of above-mentioned method of business card holder Vcard format and movable storage device of device realized of using in PC software, comprise that one realizes the device of business card holder Vcard format, be arranged in the phonebook module that described device comprises again:
VCard formatted file generation module is used at PC software cards folder information being converted into the VCard formatted file and stores;
VCard formatted file parsing module is used for when the VCard formatted file is carried out import operation described VCard formatted file being resolved.
Compared with prior art, using the present invention stores associated person information with the VCard form, can write down information such as Business Name, address, telephone number, E-mail address, because VCard adopts the form of file storage, to the dependence of database, increased the dirigibility that software uses when having reduced the associated person information change, simultaneously, PC software can be resolved the VCard file that other manufacturers change out, at the product of different manufacturers, and the reading just more very of associated person information.On the other hand, application of the present invention can be stored as associated person information the VCard formatted file easily, and can be easily import in the PC equipment associated person information of VCard formatted file or movable storage device (Mobile Equipment, ME) in, for example: mobile phone, network interface card, (U) SIM etc.
Description of drawings
Fig. 1 is the schematic flow sheet that generates business card holder Vcard format in the embodiment of the invention;
Fig. 2 is the schematic flow sheet of resolving business card holder Vcard format in the embodiment of the invention;
Fig. 3 is an embodiment of the invention apparatus structure schematic block diagram.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention being done more detailed description, with purpose, scheme and the effect of further understanding the present invention, but is not as the restriction to claims protection domain of the present invention.
PC software mainly is divided into phone directory, short message, module is set etc., the VCard form that the present invention mentions is subordinated to phonebook module, the field store that original associated person information is selected to need to preserve is in database, this mode makes when the associated person information content is added, need make more modification to database, cause the incompatible problem in software version front and back easily, the present invention is with the form storage of associated person information with file, at first reduced the incompatibility problem that introduce in the legacy data storehouse when the contact person changes, information can be imported and exported easily simultaneously, increase the dirigibility of software.
The method that in PC software, realizes business card holder Vcard format provided by the invention, the movable storage device that is used for having phonebook function comprises:
The VCard formatted file generates step, is used at PC software cards folder information being converted into the VCard formatted file and stores;
VCard formatted file analyzing step is used for when the VCard formatted file is carried out import operation described VCard formatted file being resolved.
One, VCard formatted file generation step further comprises the steps:
Step S10 obtains user's input information, and the relevant information field is carried out the reduction of length according to the actual conditions of equipment or the agreement of realization;
Step S11 according to the VCard requirement, generates the VCard formatted file with the associated person information of input;
Step S12 stores described VCard formatted file according to contact man position information.
In step S10, obtain user's input information, and the relevant information field carried out the reduction of length according to the actual conditions of equipment or the agreement of realization " comprise following process:
The user finishes after the input of associated person information, and PC software is put the information of user input in order, and the length information of arranging in the length information of the actual input of user and the original configuration file is compared, and the part of overlength is reduced; The length information of arranging in wherein original configuration file, because the capacity information of SIM and usim card has bigger difference, in the process of research and development, (U) length information of SIM obtains by the mode of instruction dynamic interaction.
In step S11, generate the process of VCard file, carry out the work that writes of document according to the requirement of VCard self, because this document needs and ME carries out alternately,, finish the work of writing of VCard integral body so also need to do corresponding agreement with ME.
The VCard content must start with BEGIN:VCARD, ends up with END:VCARD
The VCard data layout is capable to be: type [; Parameter]: value
EMAIL;HOME:[email protected]
EMAIL: be a type, expression is an address information
"; " number be to separate to meet
HOME represents parameter, purposes or the classification of expression EMAIL
[email protected] represents it is an EMAIL occurrence
Similarly also have:
NOTE;ENCODING=QUOTED-PRINTABLE:=C6=E4=CB=FB
TEL;WORK;VOICE:13326544487
Above-mentioned steps S12 further comprises again:
Step S121 determines contact man position information, if the contact person is subordinated to ME, will generates the VCard file and send ME side execution in step S122 to, otherwise, end operation;
Step S122 waits for that ME returns the execution result to instruction, if operation failure gives the user with corresponding prompt message.
Among the step S121,, then need to carry out information interaction with the ME side if contact location is ME (mobile phone, network interface card or SIM).PC software adds contact person's request instruction and sends the VCard file of finishing writing to ME sending to ME, to the VCard demoder should be arranged, resolves the VCard file that transmits in the ME side, and carries out concrete interpolation operation at ME;
The specific implementation process of above-mentioned steps S122 is as follows:
After ME receives the interpolation request that the PC side sends, carry out and add operation, and the ID as a result that will operate feeds back to the PC side, the PC side is resolved ME feedback ID, if ID belongs to non-successfully operation, PC software is given user's corresponding prompt language according to corresponding ID, such as: " contact person adds failure ", " communication abnormality " etc.;
Two, the parsing of VCard form (is example with the importing) mainly comprises the steps:
Step S20, PC software imports instruction according to the VCard file and specified file path is searched described VCard file, searches successfully execution in step S21, otherwise end operation;
Whether step S21 checks described VCard file content legal, legal then resolve described VCard file content and and concrete contact field corresponding field associating information and execution in step S22, otherwise end operation;
Step S22, described PC software sends command of adding contact, and the feedback operation result.
Comprised that before step S20 the user sends the VCard file and imports instruction, and the step in path, specified file place.This step specific implementation process: " importing the VCard file " instruction that the user selects PC software to provide; System path is selected dialog box, the path that the user selects the VCard file to exist, and to software transmission confirmation;
Among the above-mentioned steps S21, PC software is to the legitimacy check of the VCard file of appointment " main test: whether the VCard file of (1) appointment is with the BEGIN:VCARD beginning, with the END:VCARD ending "; (2) whether the VCard data layout is: type [; Parameter]: value;
To checking legal VCard file then to resolve described VCard file content, information such as Name, Notes are corresponded to contact person's field such as name, remarks, and contact person concrete in VCard file and the system is related;
PC software sends command of adding contact among the above-mentioned steps S22, and the feedback operation result " concrete implementation: software sends command of adding contact according to the VCard result who resolves; System call command of adding contact module, and with interpolation ID feedback as a result; PC software is resolved concrete ID value, and the signal language of retrieval and this ID correspondence, gives the user with correct information indicating.
With reference to figure 3, the present invention also further provides a kind of above-mentioned device 300 of realizing the method for business card holder Vcard format in PC software of using, it is arranged in the phonebook module 300 ' of movable storage device 30, comprise: VCard formatted file generation module 301 is used at PC software cards folder information being converted into the VCard formatted file and stores; VCard formatted file parsing module 302 is used for when the VCard formatted file is carried out import operation described VCard formatted file being resolved.
The present invention realizes the form storage of associated person information with the VCard file when the contact field information-change, reduced the degree of dependence to database; PC software can be realized the importing of VCard fileinfo simultaneously, has made things convenient for importing, the derivation of same model and different model equipment room data, has demonstrated fully the VCard its flexibility, has made things convenient for exchanges data.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (10)

1. method that in PC software, realizes business card holder Vcard format, the movable storage device that is applied to have phonebook function comprises: the VCard formatted file generates step and VCard formatted file analyzing step, it is characterized in that,
Described VCard formatted file generates step and comprises:
Steps A is obtained the associated person information of user's input, and described associated person information is put in order;
Step B according to the VCard requirement, generates the VCard formatted file with described associated person information;
Step C stores described VCard formatted file according to described contact man position information;
Described VCard formatted file analyzing step comprises again:
Step D, PC software imports instruction according to the VCard file and specified file path is searched described VCard file, searches successfully execution in step E, otherwise end operation;
Whether step e checks described VCard file content legal, legally then resolves described VCard file content execution in step F, otherwise end operation;
Step F, described PC software are sent command of adding contact and are added the contact person.
2. the method that in PC software, realizes business card holder Vcard format according to claim 1, it is characterized in that, in the described steps A, the described step that associated person information is put in order, be the length information of arranging in the length information of the actual input of user and the original configuration file to be compared by PC software, the part that exceeds is reduced, and the length information of arranging in described original configuration file is to obtain by the mode of instruction dynamic interaction in R﹠D process.
3. the method that realizes business card holder Vcard format in PC software according to claim 1 is characterized in that described VCard file content starts with BEGIN:VCARD, ends up with END:VCARD; Described VCard data layout is: type [; Parameter]: value.
4. the method that in PC software, realizes business card holder Vcard format according to claim 1, it is characterized in that, described step C further comprises, one judges the step of the position that described contact person will store, be used for judging according to described position information of contact whether described contact person is subordinated to movable storage device, as be subordinated to movable storage device, then send the VCard formatted file that generates to the movable storage device side and add the contact person, otherwise, end operation.
5. the method that realizes business card holder Vcard format in PC software according to claim 4 is characterized in that, the step that described VCard formatted file with generation sends movable storage device side interpolation contact person to further comprises:
Step C1, PC software send to movable storage device and add contact person's request instruction and transmit described VCard formatted file;
Step C2, the VCard demoder of described movable storage device side is resolved the VCard formatted file of described transmission, and carries out the operation of adding the contact person;
Step C3, feedback is added contact person's operating result.
6. the method that realizes business card holder Vcard format in PC software according to claim 5 is characterized in that, the step that described feedback is added contact person's operating result further comprises:
Step C31, the movable storage device side feeds back to the PC side with operating result ID;
Step C32, the PC side is resolved described ID value, is failure operation as analysis result, described PC side retrieval and the output of ID corresponding prompt message.
7. the method that realizes business card holder Vcard format in PC software according to claim 1 is characterized in that in the described step e, whether legal step further comprises to check described VCard file content:
Check described VCard file whether with the BEGIN:VCARD beginning, with the END:VCARD ending ";
Check described VCard data layout whether to be: type [; Parameter]: value.
8. the method that realizes business card holder Vcard format in PC software according to claim 1 is characterized in that described step F further comprises:
Step F 1, system call command of adding contact module, and feedback is added ID as a result;
Step F 2, PC software are resolved described ID value, and retrieval and the output of this ID value corresponding prompt message.
9. use each described device of in PC software, realizing the method for business card holder Vcard format in the aforesaid right requirement 1~8 for one kind, be arranged in the phonebook module of movable storage device, it is characterized in that, comprising:
VCard formatted file generation module is used at PC software cards folder information being converted into the VCard formatted file and stores;
VCard formatted file parsing module is used for when the VCard formatted file is carried out import operation described VCard formatted file being resolved.
10. an application rights requires each described movable storage device of realizing the method for business card holder Vcard format in PC software in 1~8, comprise that one realizes the device of business card holder Vcard format, be arranged in the phonebook module, it is characterized in that, described device comprises again:
VCard formatted file generation module is used at PC software cards folder information being converted into the VCard formatted file and stores;
VCard formatted file parsing module is used for when the VCard formatted file is carried out import operation described VCard formatted file being resolved.
CNA2007101762426A 2007-10-23 2007-10-23 Method and device for realizing business card holder Vcard format in PC software Pending CN101140517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101762426A CN101140517A (en) 2007-10-23 2007-10-23 Method and device for realizing business card holder Vcard format in PC software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101762426A CN101140517A (en) 2007-10-23 2007-10-23 Method and device for realizing business card holder Vcard format in PC software

Publications (1)

Publication Number Publication Date
CN101140517A true CN101140517A (en) 2008-03-12

Family

ID=39192478

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101762426A Pending CN101140517A (en) 2007-10-23 2007-10-23 Method and device for realizing business card holder Vcard format in PC software

Country Status (1)

Country Link
CN (1) CN101140517A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307056A (en) * 2011-08-18 2012-01-04 惠州Tcl移动通信有限公司 Method for processing mobile terminal contact information and mobile terminal
CN102385350A (en) * 2010-08-30 2012-03-21 北汽福田汽车股份有限公司 Process card output method and device, and computer device
CN102385572A (en) * 2011-06-30 2012-03-21 广东欧珀移动通信有限公司 Method for avoiding messy codes caused by import of vCard
CN103986842A (en) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 Contact person data collecting method and device
CN110673868A (en) * 2019-09-17 2020-01-10 Oppo广东移动通信有限公司 System data processing method, device and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385350A (en) * 2010-08-30 2012-03-21 北汽福田汽车股份有限公司 Process card output method and device, and computer device
CN102385572A (en) * 2011-06-30 2012-03-21 广东欧珀移动通信有限公司 Method for avoiding messy codes caused by import of vCard
CN102307056A (en) * 2011-08-18 2012-01-04 惠州Tcl移动通信有限公司 Method for processing mobile terminal contact information and mobile terminal
WO2013023529A1 (en) * 2011-08-18 2013-02-21 惠州Tcl移动通信有限公司 Method for processing contact information of mobile terminal and mobile terminal
CN102307056B (en) * 2011-08-18 2015-04-22 惠州Tcl移动通信有限公司 Method for processing mobile terminal contact information and mobile terminal
CN103986842A (en) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 Contact person data collecting method and device
CN103986842B (en) * 2014-05-30 2019-02-15 努比亚技术有限公司 A kind of collecting method and device of contact data
CN110673868A (en) * 2019-09-17 2020-01-10 Oppo广东移动通信有限公司 System data processing method, device and storage medium
CN110673868B (en) * 2019-09-17 2023-04-11 Oppo广东移动通信有限公司 System data processing method, device and storage medium

Similar Documents

Publication Publication Date Title
US20050015406A1 (en) Method and system for customizable client aware content selection and rendering in a portal server
US9451029B2 (en) Method of remote control for portable device and system using the same
CN101431537B (en) Method and apparatus for address information intercommunication between different network
CN101977121A (en) Configuration file processing method, device and system
CN101140517A (en) Method and device for realizing business card holder Vcard format in PC software
CN101355565A (en) Method and server for providing page service for various browsers
CN107729061A (en) The modularization construction method of engineering project under a kind of ios platform
CN105631035A (en) Data storage method and device
CN103078996A (en) Method and system for generating desktop shortcut of mobile terminal as well as client side and server
US20050015718A1 (en) Method and system for client aware content aggregation and rendering in a portal server
CN101377778A (en) System and method for switching display interface
CN102044172A (en) E-book reader with network book review function and implementation method thereof
KR100544061B1 (en) Apparatus of transmitting private information in mobile terminal and its method
CN102111487A (en) Method and device for realizing global system for mobile communications (GSM) terminal to access 3G universal subscriber identity module (USIM) card
CN113438251A (en) Protocol conversion method, device and system
CN102937862B (en) System and method for managing mobile terminal by browser
CN1936947B (en) Device customizing system, device customizing method, authentication agent
CN105610701B (en) A kind of method, apparatus and system of instant messaging
CN102227727A (en) Method and device for distributed configuration of remote data processing services in motor vehicle systems
KR100628454B1 (en) The method for conversion and transmission of user data between a different kind of mobile phone
CN112367661B (en) USAT application matching implementation method, USIM, terminal, device and medium
CN101626431A (en) Processing method and processing system capable of adapting to communication mode
CN201204621Y (en) Split type mobile terminal
CN107016998A (en) Equipment room voice typing method and system
CN106302821A (en) A kind of data request method and equipment thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080312