vCard Class Library for .NET (Version 0.4; LGPL license)
Copyright (c) 2007-2009 David Pinch * http://www.thoughtproject.com/Libraries/vCard/
Introduction
This is a simple library for manipulating vCards. A vCard is used to exchange
contact information (e.g. to import into Microsoft Outlook or download from
the web into a suitable PIM application). All code is released under the LGPL
for free use and with full permission to use with commercial software.
General Design:
(a) The vCard object model is separated from the various vCard file formats.
You can manipulate contact information, photos, and other properties in the
standard way you would expect from a .NET class library.
(b) Almost all vCard properties can exist multiple times in a vCard file.
However, some judgement is used when determining whether a property
should be implemented as a collection or a singular property. For
example, it is possible to have multiple formatted names, each in a
different language. The need for this functionality is very rare
and therefore the formatted name property is implemented as a string
property rather than collection of "formatted name" objects.
On the other hand, multiple email addresses are common. Email addresses
are stored in a collection. Nevertheless, feel free to request changes
if you believe singular property should be converted to a collection.
(c) The vCardReader and vCardWriter classes are abstract classes that
define the interfaces for reading and writing vCard formats. This
version of the library supplies vCardStandardReader and vCardStandardWriter,
which implement the vCard 2.1 format specification.
A future version will include support for Jabber, RDF and hCard formats.
If you want to help evolve the library, adding support for those
formats will be appreciated.
(d) Example usage (in VB.NET; the library itself is in C#):
Dim card As New vCard()
card.GivenName = "David"
card.FamilyName = "Pinch"
Dim photo as New vCardPhoto( _
"http://www.thoughtproject.com/Common/me.jpg")
card.Photos.Add(photo)
Dim writer as vCardStandardWriter = New vCardStandardWriter()
writer.EmbedWebPhotos = true
writer.Write(card, "c:\davepinch.vcf")
Folders (directories):
.\ (root)
file_id.diz ............................. Description in FILE_ID.DIZ format*
license.txt ............................. LGPL license text
pad_file.xml ............................ Description in PAD XML format*
readme.txt .............................. This file.
roadmap.txt ............................. Plans for the next version
* These two files are provided for the convenience of file distribution
networks and shareware/freeware sites. They contain information that can
be extracted by special computer programs. Developers can ignore or
delete the files.
.\Solution\
The Solution folder contains a Visual Studio 2008 solution for building the
vCard class library. A unit test project (nUnit) is also provided.
.\Reference\
Copies of the vCard RFC (Request for Comments) documents. Other resources
and technical information will be placed into this folder in the future
releases. Documents in this folder may be copyrighted products under
licenses that allow redistribution (but not affiliated with the author).
.\Help\
A help project for Sandcastle Help File Builder. See Readme.Text in the
folder for instructions on building your own documentation. An sample
help file (CHM) has been compiled for your convenience.
.\Samples\
Samples demonstrating use the library.
Current Status
This is version 0.4 of the library. It implements a substantial portion of the
vCard standard. Future efforts will focus on compatible formats like
hCard and RDF. However, the library is still treated as beta status.
Please do not use on production systems unless you are confident with the
degree of functionality currently implemented.
ADR .......................... Delivery address
BDAY ......................... Birthdate (partial)
CATEGORIES ................... Category names / keywords
CLASS ........................ Access classification
EMAIL ........................ Email address
FN ........................... Formatted name
GEO .......................... Geographical coordinates
KEY .......................... Certificate key
LABEL ........................ Delivery label
MAILER ....................... Mailer software name
N ............................ Name
NAME ......................... Display name of the vCard
NICKNAME ..................... Nickname
NOTE ......................... Note/Comment
ORG .......................... Organization
PHOTO ........................ Personal photos
PRODID ....................... Product name/version
REV .......................... Revision date
ROLE ......................... Role/profession
SOURCE ....................... Directory source
TEL .......................... Telephone number
TITLE ........................ Job title
TZ ........................... Time zone
UID .......................... Unique ID
URL .......................... Web site
X-WAB-GENDER ................. Gender (Outlook Extension)
Known issues to be fixed in a future release (before version 1.0):
- Preferred addresses and labels not marked as preferred
Credits
Thanks for Martin Meraner for providing testing assistance and helping with
the certificate implementation. Thanks to Bill Lunney for assisting with
photo/imaging support. Thanks to Richard Bennett for testing. Thanks
to Robbie Paplin for helping with image (photo) support. Thanks to Karsten
Januszeski for pushing me to update the library and eventually move to
CodePlex.
Support and Downloads
The author is happy to assist people using the library. Please make sure you have
downloaded the latest copy of the code from the following web site:
http://www.thoughtproject.com/Libraries/vCard/
You can reach the author at the following:
David Pinch
http://www.linkedin.com/in/davepinch
davepinch@gmail.com
When sending code changes or bug reports, let me know if you want me to list your
home page or some other personal statement. This is the least I can do. People
who contribute source code and other materials will also be credited in the
copyrights. You should be comfortable with the LGPL open source license before
sharing any code, though!
Linked-In users are welcome to send an invitation/connection request. Be sure
to mention this library (or any library on thoughtproject.com) in your invitation.
Please submit vCard files that are not correctly parsed by the library.
License and Copyrights
vCard Class Library for .NET (version 0.4 -- alpha)
Copyright (C) 2007 David Pinch (dave@thoughtproject.com) and contributors
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be usefu
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
C# vCard 类库 (129个子文件)
Default.aspx 7KB
vCards.chm 660KB
Web.config 7KB
vCardStandardReader.cs 68KB
PalmAgentSampleTests.cs 56KB
vCardStandardWriter.cs 45KB
Helper.cs 21KB
vCard.cs 21KB
vCardStandardReaderTests.cs 17KB
Outlook2007.cs 17KB
vCardTests.cs 16KB
vCardSubpropertyCollectionTests.cs 15KB
OutlookTests.cs 14KB
vCardStandardWriterTests.cs 12KB
vCardSubpropertyCollection.cs 11KB
vCardPhone.cs 11KB
RfcAuthorTests.cs 10KB
Default.aspx.designer.cs 10KB
vCardDeliveryAddressTests.cs 10KB
vCardPhoto.cs 9KB
XPalmWithPhotoTests.cs 8KB
vCardProperty.cs 7KB
vCardPhoneTests.cs 7KB
vCardDeliveryAddress.cs 7KB
vCardDeliveryLabel.cs 6KB
vCardWebSiteTests.cs 6KB
Default.aspx.cs 5KB
vCardSubproperty.cs 4KB
vCardWebsite.cs 4KB
SampleCards.Designer.cs 4KB
vCardPhotoTests.cs 4KB
WarningMessages.Designer.cs 4KB
vCardEmailAddressTests.cs 4KB
vCardEmailAddress.cs 4KB
vCardCertificate.cs 4KB
vCardSource.cs 3KB
vCardReader.cs 3KB
vCardPhoneTypes.cs 3KB
vCardPropertyTests.cs 3KB
vCardWriter.cs 2KB
vCardEmailAddressCollection.cs 2KB
vCardEmailAddressType.cs 2KB
vCardValueCollection.cs 2KB
vCardPhoneCollection.cs 2KB
vCardSubpropertyTests.cs 2KB
vCardException.cs 2KB
vCardNote.cs 2KB
vCardWebsiteCollection.cs 2KB
AssemblyInfo.cs 2KB
Main.Master.designer.cs 1KB
vCardSourceTests.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
vCardDeliveryAddressTypes.cs 1KB
vCardStandardWriterOptions.cs 1KB
vCardNoteCollection.cs 1KB
vCardGender.cs 1KB
vCardWebsiteTypes.cs 1KB
vCardAccessClassification.cs 1KB
vCardEncoding.cs 966B
vCardFormat.cs 959B
vCardSourceCollection.cs 840B
vCardPhotoCollection.cs 836B
vCardDeliveryAddressCollection.cs 653B
vCardCertificateTests.cs 636B
vCardPropertyCollection.cs 633B
vCardDeliveryLabelCollection.cs 599B
vCardCertificateCollection.cs 595B
vCardCollection.cs 572B
Main.Master.cs 336B
Thought.vCards.csproj 6KB
WebBuilder.csproj 5KB
Thought.vCards.UnitTests.csproj 4KB
Default.css 808B
FILE_ID.DIZ 203B
Links.html 1KB
Main.Master 710B
Application.myapp 472B
vCards.nunit 261B
SampleCards.resx 7KB
WarningMessages.resx 6KB
MainForm.resx 6KB
Resources.resx 5KB
vssver2.scc 639B
mssccprj.scc 166B
vssver2.scc 103B
vssver2.scc 101B
Settings.settings 279B
vCards.shfbproj 2KB
vCardViewer.sln 3KB
vCards Web Sample.sln 3KB
vCards Unit Tests.sln 1KB
vCards.sln 932B
vCards.suo 123KB
vCards Web Sample.suo 33KB
vCardViewer.suo 31KB
vCards Unit Tests.suo 28KB
rfc2426.txt 75KB
rfc2425.txt 65KB
License.txt 26KB
共 129 条
- 1
- 2
资源评论
南虎1688
- 粉丝: 8
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功