2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
1999-05-18 00:16:22 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.1 (the "License"); you may not use this file except in
|
|
|
|
* compliance with the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/NPL/
|
1999-05-18 00:16:22 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
1999-05-18 00:16:22 +04:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
1999-11-06 06:43:54 +03:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the NPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the NPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
1999-05-18 00:16:22 +04:00
|
|
|
|
1999-07-20 02:52:23 +04:00
|
|
|
#include "nsISupports.idl"
|
1999-05-18 00:16:22 +04:00
|
|
|
|
2001-02-03 02:39:43 +03:00
|
|
|
[scriptable, uuid(97448252-F189-11d4-A422-001083003D0C)]
|
2001-01-25 23:19:38 +03:00
|
|
|
interface nsIAbPreferMailFormat {
|
|
|
|
const unsigned long unknown = 0;
|
|
|
|
const unsigned long plaintext = 1;
|
|
|
|
const unsigned long html = 2;
|
|
|
|
};
|
|
|
|
|
1999-06-04 01:41:27 +04:00
|
|
|
[scriptable, uuid(FA5C977F-04C8-11d3-A2EB-001083003D0C)]
|
1999-07-20 02:52:23 +04:00
|
|
|
interface nsIAbCard : nsISupports {
|
2001-04-12 21:31:51 +04:00
|
|
|
// Card properties
|
1999-12-04 06:11:36 +03:00
|
|
|
attribute wstring firstName;
|
|
|
|
attribute wstring lastName;
|
|
|
|
attribute wstring displayName;
|
|
|
|
attribute wstring nickName;
|
|
|
|
attribute wstring primaryEmail;
|
|
|
|
attribute wstring secondEmail;
|
|
|
|
attribute wstring workPhone;
|
|
|
|
attribute wstring homePhone;
|
|
|
|
attribute wstring faxNumber;
|
|
|
|
attribute wstring pagerNumber;
|
|
|
|
attribute wstring cellularNumber;
|
|
|
|
attribute wstring homeAddress;
|
|
|
|
attribute wstring homeAddress2;
|
|
|
|
attribute wstring homeCity;
|
|
|
|
attribute wstring homeState;
|
|
|
|
attribute wstring homeZipCode;
|
|
|
|
attribute wstring homeCountry;
|
|
|
|
attribute wstring workAddress;
|
|
|
|
attribute wstring workAddress2;
|
|
|
|
attribute wstring workCity;
|
|
|
|
attribute wstring workState;
|
|
|
|
attribute wstring workZipCode;
|
|
|
|
attribute wstring workCountry;
|
|
|
|
attribute wstring jobTitle;
|
|
|
|
attribute wstring department;
|
|
|
|
attribute wstring company;
|
2002-03-09 00:16:15 +03:00
|
|
|
/**
|
|
|
|
* webPage1 is work web page
|
|
|
|
*/
|
1999-12-04 06:11:36 +03:00
|
|
|
attribute wstring webPage1;
|
2002-03-09 00:16:15 +03:00
|
|
|
/**
|
|
|
|
* webPage2 is home web page
|
|
|
|
*/
|
1999-12-04 06:11:36 +03:00
|
|
|
attribute wstring webPage2;
|
|
|
|
attribute wstring birthYear;
|
|
|
|
attribute wstring birthMonth;
|
|
|
|
attribute wstring birthDay;
|
|
|
|
attribute wstring custom1;
|
|
|
|
attribute wstring custom2;
|
|
|
|
attribute wstring custom3;
|
|
|
|
attribute wstring custom4;
|
|
|
|
attribute wstring notes;
|
|
|
|
attribute unsigned long lastModifiedDate;
|
1999-06-16 04:04:49 +04:00
|
|
|
|
2001-01-25 23:19:38 +03:00
|
|
|
attribute unsigned long preferMailFormat;
|
2000-04-01 21:34:39 +04:00
|
|
|
attribute boolean isMailList;
|
2001-12-22 05:06:31 +03:00
|
|
|
/**
|
|
|
|
* If isMailList is true then mailListURI
|
|
|
|
* will contain the URI of the associated
|
|
|
|
* mail list
|
|
|
|
*/
|
2001-04-12 21:31:51 +04:00
|
|
|
attribute string mailListURI;
|
1999-06-16 04:04:49 +04:00
|
|
|
|
2001-12-22 05:06:31 +03:00
|
|
|
wstring getCardValue(in string name);
|
|
|
|
|
1999-12-04 06:11:36 +03:00
|
|
|
void setCardValue(in string attrname, in wstring value);
|
1999-07-22 08:12:25 +04:00
|
|
|
|
2001-04-12 21:31:51 +04:00
|
|
|
// Copies the card attributes from srcCard
|
|
|
|
void copy(in nsIAbCard srcCard);
|
|
|
|
|
|
|
|
// Edits an existing card in the directory defined by 'uri'
|
|
|
|
// Rename to editCardInDirectory
|
|
|
|
// Component will be an RDF card, since it has already
|
|
|
|
// been created
|
|
|
|
//
|
2001-12-22 05:06:31 +03:00
|
|
|
// XXX FIX ME, this should not be a the card, it should be on the addressbook.
|
2001-04-12 21:31:51 +04:00
|
|
|
void editCardToDatabase(in string uri);
|
1999-07-22 08:12:25 +04:00
|
|
|
|
2001-12-22 05:06:31 +03:00
|
|
|
boolean equals(in nsIAbCard card);
|
2002-01-08 06:19:10 +03:00
|
|
|
|
|
|
|
string convertToBase64EncodedXML();
|
2002-02-20 09:30:03 +03:00
|
|
|
wstring convertToXMLPrintData();
|
1999-05-18 00:16:22 +04:00
|
|
|
};
|