2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2004-04-17 22:33:16 +04:00
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-05-18 00:16:22 +04:00
|
|
|
*
|
2004-04-17 22:33:16 +04:00
|
|
|
* The contents of this file are subject to the Mozilla 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/MPL/
|
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.
|
|
|
|
*
|
2004-04-17 22:33:16 +04:00
|
|
|
* The Initial Developer of the Original Code is
|
2001-09-29 00:14:13 +04:00
|
|
|
* 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
|
2004-04-17 22:33:16 +04:00
|
|
|
* either of 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"),
|
2001-09-29 00:14:13 +04:00
|
|
|
* 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
|
2004-04-17 22:33:16 +04:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
2001-09-29 00:14:13 +04:00
|
|
|
* 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
|
2004-04-17 22:33:16 +04:00
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
2001-09-29 00:14:13 +04:00
|
|
|
*
|
|
|
|
* ***** 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;
|
|
|
|
};
|
|
|
|
|
2006-12-04 20:04:43 +03:00
|
|
|
[scriptable, uuid(e4e2a043-4b06-43a3-b52b-146e155d9ec5)]
|
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;
|
2002-11-12 22:21:28 +03:00
|
|
|
attribute wstring phoneticFirstName;
|
|
|
|
attribute wstring phoneticLastName;
|
1999-12-04 06:11:36 +03:00
|
|
|
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;
|
2002-09-11 11:06:19 +04:00
|
|
|
attribute wstring workPhoneType;
|
|
|
|
attribute wstring homePhoneType;
|
|
|
|
attribute wstring faxNumberType;
|
|
|
|
attribute wstring pagerNumberType;
|
|
|
|
attribute wstring cellularNumberType;
|
1999-12-04 06:11:36 +03:00
|
|
|
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-09-11 11:06:19 +04:00
|
|
|
attribute wstring aimScreenName;
|
|
|
|
attribute wstring anniversaryYear;
|
|
|
|
attribute wstring anniversaryMonth;
|
|
|
|
attribute wstring anniversaryDay;
|
|
|
|
attribute wstring spouseName;
|
|
|
|
attribute wstring familyName;
|
|
|
|
attribute wstring defaultAddress;
|
|
|
|
attribute wstring category;
|
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;
|
2005-09-23 04:35:27 +04:00
|
|
|
attribute unsigned long popularityIndex; /* bumped every time e-mail is sent to this recipient */
|
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;
|
2006-11-11 03:23:07 +03:00
|
|
|
/**
|
|
|
|
* allowRemoteContent to be displayed in HTML mail received from this contact.
|
|
|
|
*/
|
|
|
|
attribute boolean allowRemoteContent;
|
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
|
|
|
|
2006-12-04 20:04:43 +03:00
|
|
|
/**
|
|
|
|
* This function will copy all values from one card to another.
|
|
|
|
*
|
|
|
|
* @param srcCard The source card to copy values from.
|
|
|
|
*/
|
|
|
|
void copy(in nsIAbCard srcCard);
|
2001-04-12 21:31:51 +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();
|
2003-10-06 00:07:22 +04:00
|
|
|
string convertToEscapedVCard();
|
1999-05-18 00:16:22 +04:00
|
|
|
};
|