1999-05-18 00:16:22 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
1999-11-06 06:43:54 +03: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
|
|
|
*
|
1999-11-06 06:43:54 +03: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.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-05-18 00:16:22 +04:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
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
|
|
|
|
1999-08-05 08:27:57 +04:00
|
|
|
interface nsIAddrDatabase;
|
|
|
|
|
1999-07-07 23:06:40 +04:00
|
|
|
[ptr] native nsVoidArray(nsVoidArray);
|
|
|
|
|
|
|
|
%{C++
|
|
|
|
#include "nsVoidArray.h"
|
|
|
|
%}
|
|
|
|
|
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 {
|
1999-05-18 00:16:22 +04:00
|
|
|
|
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;
|
|
|
|
attribute wstring webPage1;
|
|
|
|
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;
|
2000-02-01 05:46:50 +03:00
|
|
|
attribute wstring name;
|
1999-06-16 04:04:49 +04:00
|
|
|
|
1999-12-04 06:11:36 +03:00
|
|
|
attribute boolean sendPlainText;
|
1999-07-02 00:04:04 +04:00
|
|
|
|
1999-12-04 06:11:36 +03:00
|
|
|
attribute unsigned long dbTableID;
|
|
|
|
attribute unsigned long dbRowID;
|
1999-06-16 04:04:49 +04:00
|
|
|
|
1999-12-04 06:11:36 +03:00
|
|
|
wstring getCardValue(in string attrname);
|
|
|
|
void setCardValue(in string attrname, in wstring value);
|
|
|
|
void setAbDatabase(in nsIAddrDatabase database);
|
1999-07-22 08:12:25 +04:00
|
|
|
|
1999-12-04 06:11:36 +03:00
|
|
|
[noscript] readonly attribute nsVoidArray anonymousStrAttrubutesList;
|
|
|
|
[noscript] readonly attribute nsVoidArray anonymousStrValuesList;
|
|
|
|
[noscript] readonly attribute nsVoidArray anonymousIntAttrubutesList;
|
|
|
|
[noscript] readonly attribute nsVoidArray anonymousIntValuesList;
|
|
|
|
[noscript] readonly attribute nsVoidArray anonymousBoolAttrubutesList;
|
|
|
|
[noscript] readonly attribute nsVoidArray anonymousBoolValuesList;
|
1999-07-22 08:12:25 +04:00
|
|
|
|
1999-12-04 06:11:36 +03:00
|
|
|
void setAnonymousStringAttribute(in string attrname, in string value);
|
|
|
|
void setAnonymousIntAttribute(in string attrname, in unsigned long value);
|
|
|
|
void setAnonymousBoolAttribute(in string attrname, in boolean value);
|
|
|
|
void addAnonymousAttributesToDB();
|
|
|
|
void editAnonymousAttributesInDB();
|
1999-07-22 08:12:25 +04:00
|
|
|
|
1999-12-04 06:11:36 +03:00
|
|
|
readonly attribute string cardURI;
|
|
|
|
void addCardToDatabase(in string uri);
|
|
|
|
void editCardToDatabase(in string uri);
|
|
|
|
void copyCard(in nsIAbCard srcCard);
|
|
|
|
wstring getCollationKey(in wstring str);
|
1999-05-18 00:16:22 +04:00
|
|
|
};
|