Bug 1399756 - remove trailing spaces from IDL files in mailnews. rs=white-space-only

This commit is contained in:
Jorg K 2017-12-18 23:37:21 +01:00
Родитель 20e8230753
Коммит 8ca55b52f3
108 изменённых файлов: 489 добавлений и 489 удалений

Просмотреть файл

@ -20,7 +20,7 @@ interface nsIAbAddressCollector : nsISupports {
* will be updated if they are supplied alongside the address.
* If a card does not exist for the email it will be created if aCreateCard
* is true.
*
*
* @param aAddresses The list of emails (in standard header format)
* to collect into the address book.
* @param aCreateCard Set to true if a card should be created if the

Просмотреть файл

@ -87,7 +87,7 @@ interface nsIAbBooleanConditionString : nsISupports
*
* <name> [condition] value
*
*/
*/
attribute wstring value;
};

Просмотреть файл

@ -189,7 +189,7 @@ interface nsIAbCard : nsIAbItem {
* @param name The case-sensitive name of the property to set.
*/
void deleteProperty(in AUTF8String name);
/**
* @{
* These properties are shorthand for getProperty and setProperty.
@ -231,7 +231,7 @@ interface nsIAbCard : nsIAbItem {
*/
//void translateFrom(in AUTF8String aType, in AUTF8String aData);
/**
/**
* Generate a phonetic name from the card, using the firstName and lastName
* values.
*
@ -267,7 +267,7 @@ interface nsIAbCard : nsIAbItem {
* <tt>a.equals(b) == b.equals(a)</tt> might not return true. In
* particular, calling equals on cards from different address books
* may return inaccurate results.
*
*
*
* @return Equality, as defined above.
* @param aCard The card to compare against.

Просмотреть файл

@ -13,7 +13,7 @@ interface nsISimpleEnumerator;
*/
[scriptable, uuid(70f6123f-e06b-4101-9750-4ce73b38134b)]
interface nsIAbCollection : nsIAbItem {
/**
* Returns true if this collection is read-only.
*/
@ -31,7 +31,7 @@ interface nsIAbCollection : nsIAbItem {
*/
readonly attribute boolean isSecure;
/**
/**
* Returns an address book card for the specified email address if found.
*
* If there are multiple cards with the given email address, this method will

Просмотреть файл

@ -28,7 +28,7 @@ interface nsIAbDirFactory : nsISupports
/**
* Delete a top level address book directory
*
*
*/
void deleteDirectory (in nsIAbDirectory directory);
};

Просмотреть файл

@ -16,7 +16,7 @@ interface nsIAbDirFactoryService : nsISupports
* book. The scheme is extracted from the uri and contract id is generated
* of the form:
* @mozilla.org/addressbook/directory-factory;1?name=<scheme>
*
*
* This id is used to instantiate a registered component which implemented
* the nsIAbDirFactory interface.
*

Просмотреть файл

@ -2,7 +2,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
interface nsIAbCard;

Просмотреть файл

@ -2,7 +2,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsIAbCollection.idl"
#include "nsIAbCard.idl"
@ -162,7 +162,7 @@ interface nsIAbDirectory : nsIAbCollection {
*/
boolean useForAutocomplete(in ACString aIdentityKey);
/**
/**
* Does this directory support mailing lists? Note that in the case
* this directory is a mailing list and nested mailing lists are not
* supported, this will return false rather than true which the parent
@ -182,7 +182,7 @@ interface nsIAbDirectory : nsIAbCollection {
// Specific to a directory which stores mail lists
/**
* Creates a new mailing list in the directory. Currently only supported
* Creates a new mailing list in the directory. Currently only supported
* for top-level directories.
*
* @param list The new mailing list to add.
@ -222,7 +222,7 @@ interface nsIAbDirectory : nsIAbCollection {
* Need to change to factory based approach
* to create new address books
*
* This method should become redundant or
* This method should become redundant or
* be only associated with card folders
*
* The parameters are the same as for

Просмотреть файл

@ -30,14 +30,14 @@ interface nsIAbDirectoryQueryArguments : nsISupports
/**
* Defines if sub directories should be
* queried
* queried
*
*/
attribute boolean querySubDirectories;
/**
/**
* A parameter which can be used to pass in data specific to a particular
* type of addressbook.
* type of addressbook.
*/
attribute nsISupports typeSpecificArg;
@ -57,7 +57,7 @@ interface nsIAbDirectoryQueryPropertyValue : nsISupports
* For example 'primaryEmail' or 'homePhone'
* for card properties.
*
* Two further properties are defined that
* Two further properties are defined that
* do not exist as properties on a card.
*
* 'card:nsIAbCard' which represents the interface
@ -71,7 +71,7 @@ interface nsIAbDirectoryQueryPropertyValue : nsISupports
*
*/
readonly attribute wstring value;
/**
* The value of the property
* as an interface

Просмотреть файл

@ -15,7 +15,7 @@
* moz-abldapdirectory://ldap1.holland/dc=sun,dc=com?<query>
*
* If no search data is defined then the methods
* will return immediately with no error.
* will return immediately with no error.
*/
[scriptable, uuid(ABF26047-37E3-44FD-A28A-6D37A1B9CCB3)]
interface nsIAbDirectorySearch : nsISupports

Просмотреть файл

@ -41,7 +41,7 @@ interface nsIAbItem : nsISupports {
const unsigned long GENERATE_FIRST_LAST_ORDER = 2;
/** @} */
/**
/**
* Generate a name from the item for display purposes.
*
* If this item is an nsIAbCard, then it will use the aGenerateFormat option

Просмотреть файл

@ -1,5 +1,5 @@
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@ -17,8 +17,8 @@ interface nsIAbCard;
* return null; empty strings are passed through as usual. The intent is
* that properties with a non-zero number of attributes can be overridden for
* a specific server by supplying a zero-length string. For this to work,
* most callers are likely to want to check for both success and a
* non-empty string.
* most callers are likely to want to check for both success and a
* non-empty string.
*
* Note that the one exception to this pattern is getAttributes, which
* throws NS_ERROR_FAILURE for non-existent property entries, since
@ -40,18 +40,18 @@ interface nsIAbLDAPAttributeMap : nsISupports
* Get all the LDAP attributes associated with a given property
* name, in order of precedence (highest to lowest).
*
* @param aProperty the address book property to return attrs for
*
* @param aProperty the address book property to return attrs for
*
* @return a comma-separated list of attributes, null if no entry is
* present
*/
ACString getAttributeList(in ACString aProperty);
/**
* Get all the LDAP attributes associated with a given property name, in
* Get all the LDAP attributes associated with a given property name, in
* order of precedence (highest to lowest).
*
* @param aProperty the address book property to return attrs for
*
* @param aProperty the address book property to return attrs for
*
* @return an array of attributes
*
@ -64,16 +64,16 @@ interface nsIAbLDAPAttributeMap : nsISupports
* Get the first (canonical) LDAP attribute associated with a given property
* name
*
* @param aProperty the address book property to return attrs for
*
* @return the first attribute associated with a given property,
* @param aProperty the address book property to return attrs for
*
* @return the first attribute associated with a given property,
* null if there is no entry for this property
*/
ACString getFirstAttribute(in ACString aProperty);
/**
* Set an existing mapping to the comma-separated list of attributes.
*
*
* @param aProperty the mozilla addressbook property name
*
* @param aAttributeList a comma-separated list of attributes in
@ -94,8 +94,8 @@ interface nsIAbLDAPAttributeMap : nsISupports
/**
* Find the Mozilla addressbook property name that this attribute should
* map to.
*
* map to.
*
* @return the addressbook property name, null if it's not used in the map
*/
ACString getProperty(in ACString aAttribute);
@ -110,7 +110,7 @@ interface nsIAbLDAPAttributeMap : nsISupports
* @exception NS_ERROR_FAILURE there are no attributes in this property map
*/
ACString getAllCardAttributes();
/**
* Get all properties that may be used in an addressbook card via this
* property map.
@ -141,7 +141,7 @@ interface nsIAbLDAPAttributeMap : nsISupports
*
* @param aPrefBranchName the pref branch containing all the
* property names
*
*
* @exception NS_ERROR_FAILURE one or more LDAP attributes are listed
* multiple times. The object is now in an
* inconsistent state, and should be either
@ -165,7 +165,7 @@ interface nsIAbLDAPAttributeMap : nsISupports
/**
* The nsIAbLDAPAttributeMapService is used to build and hold a cache
* of maps.
* of maps.
*/
[scriptable, uuid(12e2d589-3c2a-48e4-8c82-b1e6464a0dfd)]
interface nsIAbLDAPAttributeMapService : nsISupports

Просмотреть файл

@ -43,7 +43,7 @@ interface nsIAbLDAPCard : nsISupports
ACString buildRdn(in nsIAbLDAPAttributeMap aAttrMap,
in unsigned long aAttrCount,
[array, size_is(aAttrCount)] in string aAttributes);
/**
* Stores meta-properties from a raw LDAP search result.
*

Просмотреть файл

@ -47,7 +47,7 @@ interface nsIAbLDAPDirectory : nsISupports
* Currently the only supported mechanism is GSSAPI
*/
attribute ACString saslMechanism;
/**
* The AuthDN to use to access the server.
*/

Просмотреть файл

@ -22,7 +22,7 @@ interface nsIAbLDAPReplicationQuery : nsISupports
*/
void init(in nsIAbLDAPDirectory aDirectory,
in nsIWebProgressListener aProgressListener);
/**
* Starts an LDAP query to do replication as needed
*/
@ -58,7 +58,7 @@ interface nsIAbLDAPChangeLogQuery : nsISupports
* Starts an LDAP ChangeLog query to find changelog entries
*/
void queryChangeLog(in AUTF8String aChangeLogDN, in int32_t aLastChangeNo);
/**
* Starts an LDAP query to find changed entries
*/

Просмотреть файл

@ -12,7 +12,7 @@ interface nsIAbLDAPDirectory;
*/
[scriptable, uuid(3f499c70-5ceb-4b91-8b7f-62c366859383)]
interface nsIAbLDAPReplicationService: nsISupports {
/**
* Start Replication of given LDAP directory represented by the URI
*/
@ -23,7 +23,7 @@ interface nsIAbLDAPReplicationService: nsISupports {
* Cancel Replication of given LDAP directory represented by the URI
*/
void cancelReplication(in nsIAbLDAPDirectory aDirectory);
/**
* callback when replication is done, failure or success
*/

Просмотреть файл

@ -7,7 +7,7 @@
interface nsIFile;
interface nsIAddrDatabase;
[scriptable, uuid(7afaa95f-0b1c-4d8a-a65f-bb5073ed6d39)]
[scriptable, uuid(7afaa95f-0b1c-4d8a-a65f-bb5073ed6d39)]
interface nsIAbLDIFService : nsISupports {
/**

Просмотреть файл

@ -78,13 +78,13 @@ interface nsIAbListener : nsISupports {
* card).
*
* @param property The property of the item being changed.
*
*
* @param oldValue The old value of the item property being
* changed if it is known, null otherwise.
*
*
* @param newValue The new value of the item property being
* changed.
*
*
*/
void onItemPropertyChanged(in nsISupports item, in string property, in wstring oldValue, in wstring newValue);
};

Просмотреть файл

@ -2,7 +2,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
interface nsIFile;

Просмотреть файл

@ -22,7 +22,7 @@ interface nsIAbBooleanExpression;
* as some helper functions.
*/
[scriptable, uuid(ea0d8b3d-a549-4874-82d8-3a82cee2a3f1)]
interface nsIAbManager : nsISupports
interface nsIAbManager : nsISupports
{
/**
* Returns an enumerator containing all the top-level directories
@ -130,7 +130,7 @@ interface nsIAbManager : nsISupports
*/
void notifyDirectoryItemDeleted(in nsIAbDirectory aParentDirectory,
in nsISupports aItem);
/**
* Call to notify the registered listeners when a directory is removed.
*

Просмотреть файл

@ -105,5 +105,5 @@ interface nsIAbView : nsISupports
/**
* Returns an array of the currently selected addresses.
*/
readonly attribute nsIArray selectedAddresses;
readonly attribute nsIArray selectedAddresses;
};

Просмотреть файл

@ -6,9 +6,9 @@
#include "nsIURI.idl"
[scriptable, uuid(6EB9D874-01AA-11d4-8FBE-000064657374)]
interface nsIAddbookUrlOperation
{
const long InvalidUrl = 0;
interface nsIAddbookUrlOperation
{
const long InvalidUrl = 0;
const long PrintAddressBook = 1;
const long AddVCard = 2;
};

Просмотреть файл

@ -22,7 +22,7 @@ interface nsISimpleEnumerator;
#define MOZ_AB_LDIF_PREFIX "mozilla"
// note, GeneratedName is not a real column
// if you change any of this, make sure to change
// if you change any of this, make sure to change
// Get / Set CardValue in nsAbCardProperty.cpp
#define kPhoneticNameColumn "_PhoneticName"
#define kAddressCharSetColumn "AddrCharSet"
@ -41,7 +41,7 @@ interface nsISimpleEnumerator;
%}
[scriptable, uuid(20d4c6c3-0460-403e-aa9c-813654641566)]
interface nsAddrDBCommitType
interface nsAddrDBCommitType
{
const long kLargeCommit = 1;
const long kSessionCommit = 2;
@ -56,7 +56,7 @@ interface nsIAddrDatabase : nsIAddrDBAnnouncer {
*/
attribute nsIFile dbPath;
nsIAddrDatabase open(in nsIFile dbFile, in boolean create, in boolean upgrading);
void close(in boolean forceCommit);
/**
@ -284,7 +284,7 @@ interface nsIAddrDatabase : nsIAddrDBAnnouncer {
* @param aParent parent mailing list to which the card
* is added. If set to null, listeners of the
* database will not be notified of card creation.
* @param aRoot If the card is created while creating a new mailing
* @param aRoot If the card is created while creating a new mailing
* list, its set to the parent addressbook.
* Set to null in other case.
*/

Просмотреть файл

@ -15,17 +15,17 @@ interface nsIFolderListener : nsISupports {
const folderListenerNotifyFlagValue added = 0x1;
void OnItemAdded(in nsIMsgFolder aParentItem,
in nsISupports aItem);
const folderListenerNotifyFlagValue removed = 0x2;
void OnItemRemoved(in nsIMsgFolder aParentItem,
in nsISupports aItem);
const folderListenerNotifyFlagValue propertyChanged = 0x4;
void OnItemPropertyChanged(in nsIMsgFolder aItem,
in ACString aProperty,
in string aOldValue,
in string aNewValue);
const folderListenerNotifyFlagValue intPropertyChanged = 0x8;
// While this property handles long long (64bit wide) values,
// the Javascript engine will only pass values up to 2^53 to the consumers.
@ -33,19 +33,19 @@ interface nsIFolderListener : nsISupports {
in ACString aProperty,
in long long aOldValue,
in long long aNewValue);
const folderListenerNotifyFlagValue boolPropertyChanged = 0x10;
void OnItemBoolPropertyChanged(in nsIMsgFolder aItem,
in ACString aProperty,
in boolean aOldValue,
in boolean aNewValue);
const folderListenerNotifyFlagValue unicharPropertyChanged = 0x20;
void OnItemUnicharPropertyChanged(in nsIMsgFolder aItem,
in ACString aProperty,
in wstring aOldValue,
in wstring aNewValue);
const folderListenerNotifyFlagValue propertyFlagChanged = 0x40;
void OnItemPropertyFlagChanged(in nsIMsgDBHdr aItem,
in ACString aProperty,
@ -54,8 +54,8 @@ interface nsIFolderListener : nsISupports {
const folderListenerNotifyFlagValue event = 0x80;
void OnItemEvent(in nsIMsgFolder aItem, in ACString aEvent);
const folderListenerNotifyFlagValue all = 0xFFFFFFFF;
const folderListenerNotifyFlagValue all = 0xFFFFFFFF;
// void OnFolderLoaded(in nsIMsgFolder aFolder);
// void OnDeleteOrMoveMessagesCompleted(in nsIMsgFolder aFolder);

Просмотреть файл

@ -3,7 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
#include "nsIMsgIncomingServer.idl"

Просмотреть файл

@ -10,7 +10,7 @@ interface mozIDOMWindowProxy;
* This interface provides support for registering Mozilla as the default
* Mail Client. This interface can also be used to get/set the user preference
* for the default Mail Client.
*
*
*/
[scriptable, uuid(47D707C3-4369-46A6-A053-5118E12579D6)]
@ -40,7 +40,7 @@ interface nsIMapiRegistry: nsISupports {
OS registry entries to make us show up as regsitered mail and news client
in the OS
*/
void registerMailAndNewsClient();
};

Просмотреть файл

@ -82,8 +82,8 @@ interface nsIMessenger : nsISupports {
void saveAllAttachments(in unsigned long count, [array, size_is(count)] in string contentTypeArray,
[array, size_is(count)] in string urlArray, [array, size_is(count)] in string displayNameArray,
[array, size_is(count)] in string messageUriArray);
void saveAttachmentToFile(in nsIFile aFile, in ACString aUrl, in ACString aMessageUri,
void saveAttachmentToFile(in nsIFile aFile, in ACString aUrl, in ACString aMessageUri,
in ACString aContentType, in nsIUrlListener aListener);
/**
@ -122,7 +122,7 @@ interface nsIMessenger : nsISupports {
nsIMsgDBHdr msgHdrFromURI(in ACString aUri);
// For back forward history, we need a list of visited messages,
// and where we are in the list.
// aPos is relative to the current history cursor - 1 is forward, -1 is back.
// Unfortunately, you must call this before navigating to this position,
// because calling this has the side effect of making us adjust our current
@ -132,7 +132,7 @@ interface nsIMessenger : nsISupports {
attribute long navigatePos;
// If caller just wants the count and cur pos, they can pass in a null history pointer, which will be more efficient
// if they want a list suitable for display in a back/forward menu drop down, they should pass in a aHistory pointer,
// and they'll get returned an array with strings containing something like subject and sender of the message -
// and they'll get returned an array with strings containing something like subject and sender of the message -
// other possible info is the folder containing the message, and the preview text, if available.
void getNavigateHistory(out unsigned long aCurPos, out unsigned long aCount, [array, size_is(aCount)] out string aHistory);

Просмотреть файл

@ -7,7 +7,7 @@
[scriptable, uuid(d9e45fee-1dd1-11b2-938c-9147855ed837)]
interface nsIMessengerOSIntegration : nsISupports {
// for now, nothing. it's up to the implementation to
// for now, nothing. it's up to the implementation to
// do all the work of registering itself as listeners
// all we guarantee is your service will be created
// when accounts are loaded by the account manager

Просмотреть файл

@ -11,7 +11,7 @@ interface nsIMessengerWindowService : nsISupports {
/* aWindowType --> the type of window you want to create. i.e. "mail:3pane"
aFolderURI --> the folder resource you want pre-selected (if any)
aMsgKey --> a particular message you may want selected in that folder (if any)
*/
*/
void openMessengerWindowWithUri(in string aWindowType, in string aFolderURI, in nsMsgKey aMsgKey);
};

Просмотреть файл

@ -48,13 +48,13 @@ interface nsIMsgAccountManager : nsISupports {
/**
* Removes the server from the list of servers
*
*
* @param aServer server to remove
* @param aRemoveFiles remove directory from profile
*
* @throws NS_ERROR_FAILURE if server not found
* @throws NS_ERROR_FAILURE if server not found
*/
void removeIncomingServer(in nsIMsgIncomingServer aServer,
void removeIncomingServer(in nsIMsgIncomingServer aServer,
in boolean aRemoveFiles);
/*
* get the identity with the given key
@ -100,7 +100,7 @@ interface nsIMsgAccountManager : nsISupports {
readonly attribute boolean shutdownInProgress;
/**
* for preventing unauthenticated users from seeing header information
* for preventing unauthenticated users from seeing header information
*/
attribute boolean userNeedsToAuthenticate;
/*
@ -114,7 +114,7 @@ interface nsIMsgAccountManager : nsISupports {
/*
* search for the server with the given uri
* an analog to FindServer()
* The boolean flag selects whether we compare input against the
* The boolean flag selects whether we compare input against the
* 'realhostname' and 'realuserName' pref settings.
*/
nsIMsgIncomingServer
@ -163,7 +163,7 @@ interface nsIMsgAccountManager : nsISupports {
// Create the account for that special server.
void createLocalMailAccount();
/* load accounts kicks off the creation of all accounts. You do not need
* to call this and all accounts should be loaded lazily if you use any
* of the above.

Просмотреть файл

@ -2,7 +2,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
#include "nsIMsgIncomingServer.idl"

Просмотреть файл

@ -13,7 +13,7 @@ interface nsIMsgCopyServiceListener : nsISupports {
/**
* Notify the observer that the message has started to be copied. This
* method is called only once, at the beginning of a message
* copyoperation.
* copyoperation.
*/
void OnStartCopy();
@ -22,7 +22,7 @@ interface nsIMsgCopyServiceListener : nsISupports {
* aProgress -
* aProgressMax -
*/
void OnProgress(in uint32_t aProgress,
void OnProgress(in uint32_t aProgress,
in uint32_t aProgressMax);
/**
@ -46,7 +46,7 @@ interface nsIMsgCopyServiceListener : nsISupports {
void GetMessageId(out ACString aMessageId);
/**
* Notify the observer that the message copied operation has completed.
* Notify the observer that the message copied operation has completed.
* This method is called regardless of whether the the operation was
* successful.
* aStatus - indicate whether the operation was succeeded

Просмотреть файл

@ -18,8 +18,8 @@ interface nsIMsgDBHdr;
6. GetSortStringForRow
7. GetSortLongForRow
8. isString
You can, at your option, implement
You can, at your option, implement
9. GetRowProperties.
With Bug 1192696, Grouped By Sort was implemented for custom columns.
@ -27,7 +27,7 @@ interface nsIMsgDBHdr;
will be displayed in the grouped header row, as well as be used as the
sort string.
If implementing a c++ custom column handler, you must define all
If implementing a c++ custom column handler, you must define all
nsITreeView and nsIMsgCustomColumnHandler methods.
*/
@ -38,5 +38,5 @@ interface nsIMsgCustomColumnHandler : nsITreeView
AString getSortStringForRow(in nsIMsgDBHdr aHdr);
unsigned long getSortLongForRow(in nsIMsgDBHdr aHdr);
boolean isString();
};
};

Просмотреть файл

@ -83,42 +83,42 @@ interface nsMsgViewSortType
[scriptable, uuid(255d1c1e-fde7-11d4-a5be-0060b0fc04b7)]
interface nsMsgViewNotificationCode
{
const nsMsgViewNotificationCodeValue none = 0;
const nsMsgViewNotificationCodeValue none = 0;
/* No change; this call is just being used to potentially nest other sets of calls
inside it. The "where" and "num" parameters are unused.
inside it. The "where" and "num" parameters are unused.
*/
const nsMsgViewNotificationCodeValue insertOrDelete = 1;
const nsMsgViewNotificationCodeValue insertOrDelete = 1;
/* Some lines have been inserted or deleted.
The "where" parameter will indicate the first line that has been added or
removed; the "num" parameter will indicate how many lines, and will be positive on
an insertion and negative on a deletion.
an insertion and negative on a deletion.
*/
const nsMsgViewNotificationCodeValue changed = 2;
const nsMsgViewNotificationCodeValue changed = 2;
/* Some lines have had their contents changed (e.g., messages have been marked read
or something.) "where" indicates the first line with a change; "num" indicates
how many chaged.
how many chaged.
*/
const nsMsgViewNotificationCodeValue scramble = 3;
const nsMsgViewNotificationCodeValue scramble = 3;
/* Everything changed. Probably means we resorted the folder. We are still working
with the same set of items, or at least have some overlap, but all the indices are
invalid. The "where" and "num" parameters are unused.
invalid. The "where" and "num" parameters are unused.
*/
const nsMsgViewNotificationCodeValue all = 4;
/* Everything changed. We're now not displaying anything like what we were; we
probably opened a new folder or something. The FE needs to forget anything it ever knew
about what was being displayed, and start over. The "where" and "num" parameters are
unused.
unused.
*/
const nsMsgViewNotificationCodeValue totalContentChanged = 5;
/* Introduced for the address book to support virtual list views. The total number of
entries on the LDAP directory has changed and the FE must update its scrollbar. The
"num" parameter contains the total number of entries on the LDAP server.
"num" parameter contains the total number of entries on the LDAP server.
*/
const nsMsgViewNotificationCodeValue newTopIndex = 6;
const nsMsgViewNotificationCodeValue newTopIndex = 6;
/* Introduced for the address book to support virtual list views. The virtual list view
cache data has changed and the FE view may be out of date. The view should be updated
so that the first/top index in the view is the index in the "where" parameter. The
scrollbar should be updated to match the new position.
scrollbar should be updated to match the new position.
*/
};
@ -137,7 +137,7 @@ interface nsMsgViewCommandType
const nsMsgViewCommandTypeValue markMessagesRead = 0;
const nsMsgViewCommandTypeValue markMessagesUnread = 1;
const nsMsgViewCommandTypeValue toggleMessageRead = 2;
const nsMsgViewCommandTypeValue flagMessages = 3;
const nsMsgViewCommandTypeValue unflagMessages = 4;
@ -149,7 +149,7 @@ interface nsMsgViewCommandType
const nsMsgViewCommandTypeValue markAllRead = 10;
const nsMsgViewCommandTypeValue expandAll = 11;
const nsMsgViewCommandTypeValue collapseAll = 12;
const nsMsgViewCommandTypeValue copyMessages = 13;
const nsMsgViewCommandTypeValue moveMessages = 14;
@ -201,7 +201,7 @@ interface nsMsgNavigationType
*/
const nsMsgNavigationTypeValue back = 15;
/**
* Go forward to the previous visited message
* Go forward to the previous visited message
*/
const nsMsgNavigationTypeValue forward = 16;
const nsMsgNavigationTypeValue firstFlagged = 17;
@ -218,8 +218,8 @@ interface nsMsgNavigationType
interface nsIMsgDBView : nsISupports
{
void open(in nsIMsgFolder folder, in nsMsgViewSortTypeValue sortType, in nsMsgViewSortOrderValue sortOrder, in nsMsgViewFlagsTypeValue viewFlags, out long count);
void openWithHdrs(in nsISimpleEnumerator aHeaders, in nsMsgViewSortTypeValue aSortType,
in nsMsgViewSortOrderValue aSortOrder,
void openWithHdrs(in nsISimpleEnumerator aHeaders, in nsMsgViewSortTypeValue aSortType,
in nsMsgViewSortOrderValue aSortOrder,
in nsMsgViewFlagsTypeValue aViewFlags, out long aCount);
void close();
@ -229,7 +229,7 @@ interface nsIMsgDBView : nsISupports
void doCommand(in nsMsgViewCommandTypeValue command);
void doCommandWithFolder(in nsMsgViewCommandTypeValue command, in nsIMsgFolder destFolder);
void getCommandStatus(in nsMsgViewCommandTypeValue command, out boolean selectable_p,
void getCommandStatus(in nsMsgViewCommandTypeValue command, out boolean selectable_p,
out nsMsgViewCommandCheckStateValue selected_p);
readonly attribute nsMsgViewTypeValue viewType;
@ -257,13 +257,13 @@ interface nsIMsgDBView : nsISupports
readonly attribute nsMsgKey keyForFirstSelectedMessage;
readonly attribute nsMsgViewIndex viewIndexForFirstSelectedMsg;
/**
* this method will automatically expand the destination thread,
* if needs be.
* this method will automatically expand the destination thread,
* if needs be.
*/
void viewNavigate(in nsMsgNavigationTypeValue motion, out nsMsgKey resultId, out nsMsgViewIndex resultIndex, out nsMsgViewIndex threadIndex, in boolean wrap);
/**
* Indicates if navigation of the passed motion type is valid.
* Indicates if navigation of the passed motion type is valid.
*/
boolean navigateStatus(in nsMsgNavigationTypeValue motion);
@ -338,8 +338,8 @@ interface nsIMsgDBView : nsISupports
* all of the messages in that thread selected.
*/
readonly attribute unsigned long numSelected;
readonly attribute nsMsgViewIndex msgToSelectAfterDelete;
readonly attribute nsMsgViewIndex currentlyDisplayedMessage;
readonly attribute nsMsgViewIndex msgToSelectAfterDelete;
readonly attribute nsMsgViewIndex currentlyDisplayedMessage;
/**
* Number of messages in view, including messages in collapsed threads.
@ -374,7 +374,7 @@ interface nsIMsgDBView : nsISupports
readonly attribute boolean supportsThreading;
attribute nsIMsgSearchSession searchSession;
readonly attribute boolean removeRowOnMoveOrDelete;
readonly attribute boolean removeRowOnMoveOrDelete;
/**
* Finds the view index of the passed in msgKey. Note this should not
@ -444,7 +444,7 @@ interface nsIMsgDBView : nsISupports
/**
* Return the view thread corresponding to aMsgHdr. If we're a cross-folder
* view, then it would be the cross folder view thread, otherwise, the
* view, then it would be the cross folder view thread, otherwise, the
* db thread object.
*
* @param aMsgHdr message header we want the view thread object of.
@ -455,15 +455,15 @@ interface nsIMsgDBView : nsISupports
// use lines or kB for size?
readonly attribute boolean usingLines;
// Custom Column Implementation note: see nsIMsgCustomColumnHandler
// attaches a custom column handler to a specific column (can be a new column or a built in)
void addColumnHandler(in AString aColumn, in nsIMsgCustomColumnHandler aHandler);
// removes a custom column handler leaving the column to be handled by the system
void removeColumnHandler(in AString aColumn);
// returns the custom column handler attached to a specific column - if any
nsIMsgCustomColumnHandler getColumnHandler(in AString aColumn);
@ -493,7 +493,7 @@ interface nsIMsgDBView : nsISupports
};
/* this interface is rapidly morphing from a command updater interface into a more generic
FE updater interface to handle changes in the view
FE updater interface to handle changes in the view
*/
[scriptable, uuid(ce8f52ee-e742-4b31-8bdd-2b3a8168a117)]
@ -512,15 +512,15 @@ interface nsIMsgDBViewCommandUpdater : nsISupports
void displayMessageChanged(in nsIMsgFolder aFolder, in AString aSubject, in ACString aKeywords);
/**
* allows the backend to tell the front end to re-determine
* allows the backend to tell the front end to re-determine
* which message we should selet after a delete or move
*/
void updateNextMessageAfterDelete();
/**
* tell the front end that the selection has changed, and may need to be
* resummarized.
*
*
* @return true if we did summarize, false otherwise.
*/
boolean summarizeSelection();

Просмотреть файл

@ -102,7 +102,7 @@ interface nsIMsgFolder : nsISupports {
readonly attribute nsIMsgFolder rootFolder;
/**
* Get the server's list of filters. (Or in the case of news, the
* Get the server's list of filters. (Or in the case of news, the
* filter list for this newsgroup)
* This list SHOULD be used for all incoming messages.
*
@ -210,10 +210,10 @@ interface nsIMsgFolder : nsISupports {
/**
* Compact all folders in the account corresponding to this folder/
* Optionally compact their offline stores as well (imap/news)
*
*
* @param aListener Notified of completion, can be null.
* @param aMsgWindow For progress/status, can be null.
* @param aCompactOfflineAlso This controls whether we compact all
* @param aCompactOfflineAlso This controls whether we compact all
* offline stores as well.
*/
void compactAll(in nsIUrlListener aListener, in nsIMsgWindow aMsgWindow,
@ -357,7 +357,7 @@ interface nsIMsgFolder : nsISupports {
/**
* Called to notify the database and/or listeners of a change of flag. The
* known flags are defined in nsMsgFolderFlags.h
* known flags are defined in nsMsgFolderFlags.h
*
* @note This doesn't need to be called for normal flag changes via
* the *Flag functions on this interface.
@ -758,7 +758,7 @@ interface nsIMsgFolder : nsISupports {
* for an HTML part, this will be "text/html" even though aStripHTMLTags might be true
*/
AUTF8String getMsgTextFromStream(in nsIInputStream aStream, in ACString aCharset,
in unsigned long aBytesToRead, in unsigned long aMaxOutputLen,
in unsigned long aBytesToRead, in unsigned long aMaxOutputLen,
in boolean aCompressQuotes, in boolean aStripHTMLTags,
out ACString aContentType);
@ -807,7 +807,7 @@ interface nsIMsgFolder : nsISupports {
*
* Note nsIMsgIncomingServer.getCharValue for a server inherits from
* the preference mail.server.default.(propertyName) as a global value
*
*
* (ex: if propertyName = "IAmAGlobal" and no folder nor server properties
* are set, then the inherited property will return the preference value
* mail.server.default.IAmAGlobal)

Просмотреть файл

@ -10,7 +10,7 @@ interface nsIFile;
interface nsIMsgFolderCacheElement;
[scriptable, uuid(78C2B6A2-E29F-44de-9543-10DBB51E245C)]
interface nsIMsgFolderCache : nsISupports
interface nsIMsgFolderCache : nsISupports
{
void Init(in nsIFile aFile);
nsIMsgFolderCacheElement GetCacheElement(in ACString key, in boolean createIfMissing);

Просмотреть файл

@ -162,7 +162,7 @@ interface nsIMsgFolderListener : nsISupports {
* @param aNewFolder The folder with the new name
*/
void folderRenamed(in nsIMsgFolder aOrigFolder, in nsIMsgFolder aNewFolder);
/**
* Notified when a particular event takes place for an item.
*

Просмотреть файл

@ -63,8 +63,8 @@ interface nsIMsgFolderNotificationService : nsISupports {
in boolean aJunkProcessed,
in boolean aTraitProcessed);
void notifyMsgsDeleted(in nsIArray aMsgs);
void notifyMsgsMoveCopyCompleted(in boolean aMove,
in nsIArray aSrcMsgs,
void notifyMsgsMoveCopyCompleted(in boolean aMove,
in nsIArray aSrcMsgs,
in nsIMsgFolder aDestFolder,
in nsIArray aDestMsgs);

Просмотреть файл

@ -22,7 +22,7 @@ interface nsIMsgDBHdr : nsISupports
unsigned long getUint32Property(in string propertyName);
void setUint32Property(in string propertyName,
in unsigned long propertyVal);
// accessors, to make our JS cleaner
readonly attribute boolean isRead;
readonly attribute boolean isFlagged;
@ -34,10 +34,10 @@ interface nsIMsgDBHdr : nsISupports
void markRead(in boolean read);
void markFlagged(in boolean flagged);
void markHasAttachments(in boolean hasAttachments);
attribute nsMsgPriorityValue priority;
void setPriorityString(in string priority);
/* flag handling routines */
attribute unsigned long flags;
unsigned long OrFlags(in unsigned long flags);
@ -68,7 +68,7 @@ interface nsIMsgDBHdr : nsISupports
attribute string author;
attribute string subject;
attribute string recipients;
/* anything below here still has to be fixed */
void setReferences(in string references);
readonly attribute unsigned short numReferences;

Просмотреть файл

@ -145,7 +145,7 @@ interface nsIMsgIdentity : nsISupports {
attribute ACString tmplFolderPickerMode;
/** @} */
// Don't call bccSelf, bccOthers, and bccList directly, they are
// Don't call bccSelf, bccOthers, and bccList directly, they are
// only used for migration and backward compatability. Use doBcc
// and doBccList instead.
attribute boolean bccSelf;
@ -229,8 +229,8 @@ interface nsIMsgIdentity : nsISupports {
/* copy the attributes of the identity we pass in */
void copy(in nsIMsgIdentity identity);
/**
* these generic getter / setters, useful for extending mailnews
/**
* these generic getter / setters, useful for extending mailnews
* note, these attributes persist across sessions
*/
AString getUnicharAttribute(in string name);

Просмотреть файл

@ -51,12 +51,12 @@ interface nsIMsgIncomingServer : nsISupports {
* hostname of the server
*/
attribute ACString hostName;
/**
* real hostname of the server (if server name is changed it's stored here)
*/
attribute ACString realHostName;
/* port of the server */
attribute long port;
@ -143,7 +143,7 @@ interface nsIMsgIncomingServer : nsISupports {
attribute unsigned long biffState;
/* are we running a url as a result of biff going off? (different from user clicking get msg) */
attribute boolean performingBiff;
attribute boolean performingBiff;
/* the on-disk path to message storage for this server */
attribute nsIFile localPath;
@ -157,7 +157,7 @@ interface nsIMsgIncomingServer : nsISupports {
/* the root folder for this server, even if server is deferred */
attribute nsIMsgFolder rootFolder;
/* root folder for this account
/* root folder for this account
- if account is deferred, root folder of deferred-to account */
readonly attribute nsIMsgFolder rootMsgFolder;
@ -243,7 +243,7 @@ interface nsIMsgIncomingServer : nsISupports {
/**
* Verify that we can logon
*
*
* @param aUrlListener - gets called back with success or failure.
* @param aMsgWindow nsIMsgWindow to use for notification callbacks.
* @return - the url that we run.
@ -252,13 +252,13 @@ interface nsIMsgIncomingServer : nsISupports {
/* do a biff */
void performBiff(in nsIMsgWindow aMsgWindow);
/* get new messages */
void getNewMessages(in nsIMsgFolder aFolder, in nsIMsgWindow aMsgWindow,
void getNewMessages(in nsIMsgFolder aFolder, in nsIMsgWindow aMsgWindow,
in nsIUrlListener aUrlListener);
/* this checks if a server needs a password to do biff */
readonly attribute boolean serverRequiresPasswordForBiff;
/* this gets called when the server is expanded in the folder pane */
void performExpand(in nsIMsgWindow aMsgWindow);
@ -267,7 +267,7 @@ interface nsIMsgIncomingServer : nsISupports {
/* close any server connections */
void closeCachedConnections();
/* ... */
void shutdown();
@ -296,7 +296,7 @@ interface nsIMsgIncomingServer : nsISupports {
AString getUnicharValue(in string attr);
void setUnicharValue(in string attr, in AString value);
long getIntValue(in string attr);
void setIntValue(in string attr, in long value);
/** @} */
@ -351,14 +351,14 @@ interface nsIMsgIncomingServer : nsISupports {
boolean equals(in nsIMsgIncomingServer server);
/* Get Messages at startup */
readonly attribute boolean downloadMessagesAtStartup;
readonly attribute boolean downloadMessagesAtStartup;
/* check to this if the server supports filters */
attribute boolean canHaveFilters;
/**
* can this server be removed from the account manager? for
* instance, local mail is not removable, but an imported folder is
* instance, local mail is not removable, but an imported folder is
*/
attribute boolean canDelete;
@ -383,25 +383,25 @@ interface nsIMsgIncomingServer : nsISupports {
attribute nsIMsgDownloadSettings downloadSettings;
/*
* Offline support level. Support level can vary based on abilities
* Offline support level. Support level can vary based on abilities
* and features each server can offer wrt to offline service.
* Here is the legend to determine the each support level details
*
* supportLevel == 0 --> no offline support (default)
* supportLevel == 0 --> no offline support (default)
* supportLevel == 10 --> regular offline feature support
* supportLevel == 20 --> extended offline feature support
* supportLevel == 20 --> extended offline feature support
*
* Each server can initialize itself to the support level if needed
* to override the default choice i.e., no offline support.
*
* POP3, None and Movemail will default to 0.
* IMAP level 10 and NEWS with level 20.
*
* POP3, None and Movemail will default to 0.
* IMAP level 10 and NEWS with level 20.
*
*/
attribute long offlineSupportLevel;
/* create pretty name for migrated accounts */
AString generatePrettyNameForMigration();
AString generatePrettyNameForMigration();
/* does this server have disk space settings? */
readonly attribute boolean supportsDiskSpace;
@ -409,13 +409,13 @@ interface nsIMsgIncomingServer : nsISupports {
/**
* Hide this server/account from the UI - used for smart mailboxes.
* The server can be retrieved from the account manager by name using the
* various Find methods, but nsIMsgAccountManager's GetAccounts and
* various Find methods, but nsIMsgAccountManager's GetAccounts and
* GetAllServers methods won't return the server/account.
*/
attribute boolean hidden;
/**
* If the server supports Fcc/Sent/etc, default prefs can point to
* If the server supports Fcc/Sent/etc, default prefs can point to
* the server. Otherwise, copies and folders prefs should point to
* Local Folders.
*
@ -445,12 +445,12 @@ interface nsIMsgIncomingServer : nsISupports {
/* used for setting up the search UI */
readonly attribute nsMsgSearchScopeValue searchScope;
/**
* If the password for the server is available either via authentication
/**
* If the password for the server is available either via authentication
* in the current session or from password manager stored entries, return
* false. Otherwise, return true. If password is obtained from password
* false. Otherwise, return true. If password is obtained from password
* manager, set the password member variable.
*/
*/
readonly attribute boolean passwordPromptRequired;
/**
@ -467,7 +467,7 @@ interface nsIMsgIncomingServer : nsISupports {
void configureTemporaryFilters(in nsIMsgFilterList filterList);
/**
* If Sent folder pref is changed we need to clear the temporary
* If Sent folder pref is changed we need to clear the temporary
* return receipt filter so that the new return receipt filter can
* be recreated (by ConfigureTemporaryReturnReceiptsFilter()).
*/

Просмотреть файл

@ -20,16 +20,16 @@ interface nsIMsgFolder;
interface nsIMsgHeaderSink;
interface nsIMsgDBHdr;
interface nsIDocShellLoadInfo;
interface nsIDocShell;
interface nsIDocShell;
[scriptable, builtinclass, uuid(995455ba-5bb4-4643-8d70-2b877a2e1320)]
interface nsIMsgMailNewsUrl : nsIURL {
///////////////////////////////////////////////////////////////////////////////
// Eventually we'd like to push this type of functionality up into nsIURI.
// The idea is to allow the "application" (the part of the code which wants to
// The idea is to allow the "application" (the part of the code which wants to
// run a url in order to perform some action) to register itself as a listener
// on url. As a url listener, the app will be informed when the url begins to run
// and when the url is finished.
// and when the url is finished.
////////////////////////////////////////////////////////////////////////////////
void RegisterListener (in nsIUrlListener aUrlListener);
void UnRegisterListener (in nsIUrlListener aUrlListener);
@ -70,7 +70,7 @@ interface nsIMsgMailNewsUrl : nsIURL {
/**
* The folder associated with this url.
*
*
* @exception NS_ERROR_FAILURE May be thrown if the url does not
* relate to a folder, e.g. standalone
* .eml messages.
@ -144,9 +144,9 @@ interface nsIMsgMailNewsUrl : nsIURL {
//////////////////////////////////////////////////////////////////////////////////
// This is a very small interface which I'm grouping with the mailnewsUrl interface.
// Several url types (mailbox, imap, nntp) have similar properties because they can
// represent mail messages. For instance, these urls can be have URI
// equivalents which represent a message.
// We want to provide the app the ability to get the URI for the
// represent mail messages. For instance, these urls can be have URI
// equivalents which represent a message.
// We want to provide the app the ability to get the URI for the
// url. This URI to URL mapping doesn't exist for all mailnews urls...hence I'm
// grouping it into a separate interface...
//////////////////////////////////////////////////////////////////////////////////
@ -158,16 +158,16 @@ interface nsIMsgMessageUrl : nsISupports {
attribute string uri;
// used by imap, pop and nntp in order to implement save message to disk
attribute nsIFile messageFile;
attribute boolean AddDummyEnvelope;
attribute boolean AddDummyEnvelope;
attribute boolean canonicalLineEnding;
attribute string originalSpec;
// This is used when creating a principal for the URL.
readonly attribute AUTF8String principalSpec;
/**
* A message db header for that message.
*
*
* @note This attribute is not guaranteed to be set, so callers that
* actually require an nsIMsgDBHdr will need to use the uri attribute
* on this interface to get the appropriate nsIMsgMessageService and
@ -188,7 +188,7 @@ interface nsIMsgI18NUrl : nsISupports {
/**
* the charset associated with a folder for this url.
*
*
* @exception NS_ERROR_FAILURE May be thrown if the url does not
* relate to a folder, e.g. standalone
* .eml messages.

Просмотреть файл

@ -33,15 +33,15 @@ interface nsIMsgMdnGenerator : nsISupports
const EDisposeType eDeleted = 3;
const EDisposeType eDenied = 4;
const EDisposeType eFailed = 5;
const ReceiptHdrType eDntType = 0;
const ReceiptHdrType eRrtType = 1;
const ReceiptHdrType eDntRrtType = 2;
const MDNIncorporateType eIncorporateInbox = 0;
const MDNIncorporateType eIncorporateSent = 1;
/**
* Prepare the sending of a mdn reply, and checks the prefs whether a
* reply should be send. Might send the message automatically if the
@ -59,12 +59,12 @@ interface nsIMsgMdnGenerator : nsISupports
* false in other cases (whether the message was sent or denied)
*/
boolean process(in EDisposeType eType, in nsIMsgWindow aWindow,
in nsIMsgFolder folder, in nsMsgKey key,
in nsIMsgFolder folder, in nsMsgKey key,
in nsIMimeHeaders headers, in boolean autoAction);
/**
* Must be called when the user was asked for permission and agreed to
* sending the mdn reply.
* sending the mdn reply.
* May only be called when |process| returned |true|. Behaviour is
* unspecified in other cases
*/
@ -72,7 +72,7 @@ interface nsIMsgMdnGenerator : nsISupports
/**
* Must be called when the user was asked for permission and declined to
* send the mdn reply.
* send the mdn reply.
* Will mark the message so that the user won't be asked next time.
* May only be called when |process| returned |true|. Behaviour is
* unspecified in other cases.

Просмотреть файл

@ -22,11 +22,11 @@ interface nsICacheEntry;
[scriptable, uuid(3aa7080a-73ac-4394-9636-fc00e182319b)]
interface nsIMsgMessageService : nsISupports {
/**
* If you want a handle on the running task, pass in a valid nsIURI
* ptr. You can later interrupt this action by asking the netlib
* service manager to interrupt the url you are given back.
* If you want a handle on the running task, pass in a valid nsIURI
* ptr. You can later interrupt this action by asking the netlib
* service manager to interrupt the url you are given back.
* Remember to release aURL when you are done with it. Pass nullptr
* in for aURL if you don't care about the returned URL.
*/
@ -36,10 +36,10 @@ interface nsIMsgMessageService : nsISupports {
* Pass in the URI for the message you want to have copied.
*
* @param aSrcURI
* @param aCopyListener already knows about the destination folder.
* @param aCopyListener already knows about the destination folder.
* @param aMoveMessage TRUE if you want the message to be moved.
* FALSE leaves it as just a copy.
* @param aUrlListener
* @param aUrlListener
* @param aMsgWindow
* @param aURL
*/
@ -47,7 +47,7 @@ interface nsIMsgMessageService : nsISupports {
in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow, out nsIURI aURL);
/**
* Copy multiple messages at a time
* Copy multiple messages at a time
*
* @param keys
* @param srcFolder
@ -65,12 +65,12 @@ interface nsIMsgMessageService : nsISupports {
in nsIUrlListener aUrlListener,
in nsIMsgWindow aMsgWindow);
/**
* When you want a message displayed....
*
* @param aMessageURI Is a uri representing the message to display.
* @param aDisplayConsumer Is (for now) an nsIDocShell which we'll use to load
* @param aDisplayConsumer Is (for now) an nsIDocShell which we'll use to load
* the message into.
* XXXbz Should it be an nsIWebNavigation or something?
* @param aMsgWindow
@ -78,11 +78,11 @@ interface nsIMsgMessageService : nsISupports {
* @param aCharsetOverride (optional) character set over ride to force the message to use.
* @param aURL
*/
void DisplayMessage(in string aMessageURI,
in nsISupports aDisplayConsumer,
void DisplayMessage(in string aMessageURI,
in nsISupports aDisplayConsumer,
in nsIMsgWindow aMsgWindow,
in nsIUrlListener aUrlListener,
in string aCharsetOverride,
in nsIUrlListener aUrlListener,
in string aCharsetOverride,
out nsIURI aURL);
/**
@ -96,16 +96,16 @@ interface nsIMsgMessageService : nsISupports {
* @param aMsgWindow Message window
* @param aUrlListener
*/
void openAttachment(in string aContentType,
in string aFileName,
void openAttachment(in string aContentType,
in string aFileName,
in string aUrl,
in string aMessageUri,
in nsISupports aDisplayConsumer,
in string aMessageUri,
in nsISupports aDisplayConsumer,
in nsIMsgWindow aMsgWindow,
in nsIUrlListener aUrlListener);
/**
* When you want to spool a message out to a file on disk.
* When you want to spool a message out to a file on disk.
* This is an asynch operation of course. You must pass in a
* url listener in order to figure out when the operation is done.
*
@ -119,18 +119,18 @@ interface nsIMsgMessageService : nsISupports {
* @param aMsgWindow
*/
void SaveMessageToDisk(in string aMessageURI, in nsIFile aFile,
in boolean aGenerateDummyEnvelope,
in boolean aGenerateDummyEnvelope,
in nsIUrlListener aUrlListener, out nsIURI aURL,
in boolean canonicalLineEnding, in nsIMsgWindow aMsgWindow);
/**
* When you have a uri and you would like to convert that
* to a url which can be run through necko, you can use this method.
* the Uri MUST refer to a message and not a folder!
* the Uri MUST refer to a message and not a folder!
*
* @param aMessageURI A message uri to convert.
* @param aURL URL which can be run through necko.
* @param aMsgWindow
* @param aMsgWindow
*/
void GetUrlForUri(in string aMessageURI, out nsIURI aURL, in nsIMsgWindow aMsgWindow);
@ -138,16 +138,16 @@ interface nsIMsgMessageService : nsISupports {
* When you want a message displayed in a format that is suitable for printing....
*
* @param aMessageURI A uri representing the message to display.
* @param aDisplayConsumer is (for now) a nsIDocShell which we'll use to load
* the message into.
* @param aDisplayConsumer is (for now) a nsIDocShell which we'll use to load
* the message into.
* XXXbz should it be an nsIWebNavigation?
* @param aMsgWindow
* @param aUrlListener
* @param aURL
* @param aURL
*/
void DisplayMessageForPrinting(in string aMessageURI, in nsISupports aDisplayConsumer,
void DisplayMessageForPrinting(in string aMessageURI, in nsISupports aDisplayConsumer,
in nsIMsgWindow aMsgWindow,
in nsIUrlListener aUrlListener,
in nsIUrlListener aUrlListener,
out nsIURI aURL);
/**
@ -160,7 +160,7 @@ interface nsIMsgMessageService : nsISupports {
*/
void Search(in nsIMsgSearchSession aSearchSession, in nsIMsgWindow aMsgWindow, in nsIMsgFolder aMsgFolder, in string aSearchUri);
/**
/**
* This method streams a message to the passed in consumer. If aConvertData is true, it
* will create a stream converter from message rfc822 to star/star. It will also tack
* aAdditionalHeader onto the url (e.g., "header=filter").
@ -180,14 +180,14 @@ interface nsIMsgMessageService : nsISupports {
*
* @return the URL that gets run
*/
nsIURI streamMessage(in string aMessageURI, in nsISupports aConsumer,
nsIURI streamMessage(in string aMessageURI, in nsISupports aConsumer,
in nsIMsgWindow aMsgWindow,
in nsIUrlListener aUrlListener,
in nsIUrlListener aUrlListener,
in boolean aConvertData,
in ACString aAdditionalHeader,
[optional] in boolean aLocalOnly);
/**
/**
* This method streams a message's headers to the passed in consumer.
* This is for consumers who want a particular header but don't
* want to stream the whole message.
@ -206,7 +206,7 @@ interface nsIMsgMessageService : nsISupports {
* @return the URL that gets run, if any.
*/
nsIURI streamHeaders(in string aMessageURI, in nsIStreamListener aConsumer,
in nsIUrlListener aUrlListener,
in nsIUrlListener aUrlListener,
[optional] in boolean aLocalOnly);
/**
@ -217,7 +217,7 @@ interface nsIMsgMessageService : nsISupports {
*
* @param aUrl The URL of the message, possibly with an appropriate command in it
* @param aFolder The folder this message is in
*
*
* @return TRUE if the message is in mem cache; FALSE if it is not.
*/
boolean isMsgInMemCache(in nsIURI aUrl,
@ -229,18 +229,18 @@ interface nsIMsgMessageService : nsISupports {
*
* @param uri A message uri to get nsIMsgDBHdr for.
*
* @return nsIMsgDBHdr for specified uri or null if failed.
* @return nsIMsgDBHdr for specified uri or null if failed.
*/
nsIMsgDBHdr messageURIToMsgHdr(in string uri);
};
/**
/**
* Some mail protocols (like imap) allow you to fetch individual mime parts. We use this interface
* to represent message services whose protocols support this. To use this interface, you should get
* the message service then QI for this interface. If it's present, then can fetch a mime part.
*/
[scriptable, uuid(3728C255-480C-11d4-98D0-001083010E9B)]
interface nsIMsgMessageFetchPartService : nsISupports
interface nsIMsgMessageFetchPartService : nsISupports
{
/**
* Used to fetch an individual mime part
@ -253,7 +253,7 @@ interface nsIMsgMessageFetchPartService : nsISupports
*
* @return
*/
nsIURI fetchMimePart(in nsIURI aURI, in string aMessageUri, in nsISupports aDisplayConsumer,
nsIURI fetchMimePart(in nsIURI aURI, in string aMessageUri, in nsISupports aDisplayConsumer,
in nsIMsgWindow aMsgWindow,
in nsIUrlListener aUrlListener);
in nsIUrlListener aUrlListener);
};

Просмотреть файл

@ -11,13 +11,13 @@
interface nsIMsgWindow;
[scriptable, uuid(5e885fec-09b0-11d5-a5bf-0060b0fc04b7)]
interface nsIMsgOfflineManager : nsISupports
interface nsIMsgOfflineManager : nsISupports
{
attribute nsIMsgWindow window; // should be a progress window.
attribute boolean inProgress; // an online->offine or online->offline operation in progress.
// the offline menu should be disabled.
void goOnline(in boolean sendUnsentMessages, in boolean playbackOfflineImapOperations, in nsIMsgWindow aMsgWindow);
void synchronizeForOffline(in boolean downloadNews, in boolean downloadMail, in boolean sendUnsentMessages,
void synchronizeForOffline(in boolean downloadNews, in boolean downloadMail, in boolean sendUnsentMessages,
in boolean goOfflineWhenDone, in nsIMsgWindow aMsgWindow);
};

Просмотреть файл

@ -13,7 +13,7 @@ interface nsIMsgWindow;
[scriptable, uuid(6d6fe91d-7f9a-4552-9737-9f74b0e75538)]
interface nsIMsgProgress: nsIWebProgressListener {
/**
/**
* Open the progress dialog, you can specify parameters through an xpcom object
*/
void openProgressDialog(in mozIDOMWindowProxy parent,
@ -24,13 +24,13 @@ interface nsIMsgProgress: nsIWebProgressListener {
/* Close the progress dialog */
void closeProgressDialog(in boolean forceClose);
/* Register a Web Progress Listener */
void registerListener(in nsIWebProgressListener listener);
/* Unregister a Web Progress Listener */
void unregisterListener(in nsIWebProgressListener listener);
/* Indicated if the user asked to cancel the current process */
attribute boolean processCanceledByUser;

Просмотреть файл

@ -61,21 +61,21 @@ interface nsIMsgProtocolInfo : nsISupports
/* the default port
This is similar to nsIProtocolHanderl.defaultPort,
but for architectural reasons, there is a mail-specific interface to this.
When the input param isSecure is set to true, for all supported protocols,
When the input param isSecure is set to true, for all supported protocols,
the secure port value is returned. If isSecure is set to false the default
port value is returned */
long getDefaultServerPort(in boolean isSecure);
/**
* An attribute that tell us whether on not we can
* get messages for the given server type
* An attribute that tell us whether on not we can
* get messages for the given server type
* this is poorly named right now.
* it's really is there an inbox for this type?
* XXX todo, rename this.
*/
readonly attribute boolean canGetMessages;
/**
/**
* do messages arrive for this server
* if they do, we can use our junk controls on it.
*/
@ -87,7 +87,7 @@ interface nsIMsgProtocolInfo : nsISupports
readonly attribute boolean defaultDoBiff;
/**
* do we need to show compose message link in the AccountCentral page ?
* do we need to show compose message link in the AccountCentral page ?
*/
readonly attribute boolean showComposeMsgLink;

Просмотреть файл

@ -2,7 +2,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
[scriptable, uuid(c73294b2-b619-4915-b0e8-314d4215e08d)]

Просмотреть файл

@ -20,14 +20,14 @@ interface nsIMsgShutdownTask : nsISupports
/**
* At shutdown-time, this function will be called to all registered implementors.
* Shutdown will be temporarily postponed until |OnStopRequest()| has been called
* on the passed in url-listener.
* on the passed in url-listener.
* @param inUrlListener The URL listener to report events to.
* @param inMsgWindow The current message window to allow for posing dialogs.
* @return If the shutdown URL was run or not. If the URL is running, the task
* will be responsible for notifying |inUrlListener| when the task is completed.
*/
boolean doShutdownTask(in nsIUrlListener inUrlListener, in nsIMsgWindow inMsgWindow);
/**
* Get the displayable name of the current task. This textual information will be
* shown to the user so they know what shutdown task is being performed.
@ -42,24 +42,24 @@ interface nsIMsgShutdownService : nsISupports
/**
* Get the number of tasks that will need to be processed at shutdown time.
* @return The number of shutdown tasks to do.
*/
*/
long getNumTasks();
/**
* Start the shutdown tasks.
* Start the shutdown tasks.
*/
void startShutdownTasks();
/**
* Tell the service to stop running tasks and go ahead and shutdown the application.
*/
void cancelShutdownTasks();
/**
* Set the shutdown listener.
*/
void setShutdownListener(in nsIWebProgressListener inListener);
/**
* Set the status text of the shutdown progress dialog.
*/

Просмотреть файл

@ -2,7 +2,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
[scriptable, uuid(AACBFA34-8D29-4A08-9283-A8E5B3AB067F)]

Просмотреть файл

@ -22,7 +22,7 @@
* doesn't guarantee a unique mapping.
*
* Tags are sorted internally by 'importance' by their ordinal strings (which by
* default are equal to a tag's key and thus only stored if different).
* default are equal to a tag's key and thus only stored if different).
* The alphanumerically 'smallest' string is called the 'most important' one and
* comes first in any sorted array. The remainder follows in ascending order.
*/

Просмотреть файл

@ -30,7 +30,7 @@ interface nsIMsgWindow : nsISupports {
attribute nsIMsgHeaderSink msgHeaderSink;
attribute nsITransactionManager transactionManager;
attribute nsIMsgFolder openFolder;
/**
* @note Setting this attribute has various side effects, including
* wiring up this object as the parent nsIURIContentListener for the

Просмотреть файл

@ -17,7 +17,7 @@ interface nsISpamSettings: nsISupports {
/**
* 0 for nothing, 100 for highest
*/
attribute long level;
attribute long level;
attribute boolean moveOnSpam;
readonly attribute boolean markAsReadOnSpam;
@ -74,7 +74,7 @@ interface nsISpamSettings: nsISupports {
attribute nsIOutputStream logStream;
void logJunkHit(in nsIMsgDBHdr aMsgHdr, in boolean aMoveMessage);
void logJunkString(in string aLogText);
void clone(in nsISpamSettings aSpamSettings);
void clone(in nsISpamSettings aSpamSettings);
// aServer -> spam settings are associated with a particular server
void initialize(in nsIMsgIncomingServer aServer);

Просмотреть файл

@ -11,10 +11,10 @@ interface nsMsgMessageFlags
{
/// This message has been read
const nsMsgMessageFlagType Read = 0x00000001;
/// A reply to this message has been successfully sent
const nsMsgMessageFlagType Replied = 0x00000002;
/// This message has been flagged
const nsMsgMessageFlagType Marked = 0x00000004;

Просмотреть файл

@ -23,7 +23,7 @@ interface nsIMsgFilterCustomAction : nsISupports
readonly attribute AString name;
/**
* Is this custom action valid for a particular filter type?
* Is this custom action valid for a particular filter type?
*
* @param type the filter type
* @param scope the search scope

Просмотреть файл

@ -16,7 +16,7 @@ interface nsIMsgWindow;
// ApplyFilterHit method on the interface pointer in case of hits, along with
// the desired action and value.
// return value is used to indicate whether the
// filter list should continue trying to apply filters or not.
// filter list should continue trying to apply filters or not.
//
///////////////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -28,12 +28,12 @@ interface nsIMsgFilterList : nsISupports {
const nsMsgFilterFileAttribValue attribVersion = 1;
const nsMsgFilterFileAttribValue attribLogging = 2;
const nsMsgFilterFileAttribValue attribName = 3;
const nsMsgFilterFileAttribValue attribEnabled = 4;
const nsMsgFilterFileAttribValue attribDescription = 5;
const nsMsgFilterFileAttribValue attribEnabled = 4;
const nsMsgFilterFileAttribValue attribDescription = 5;
const nsMsgFilterFileAttribValue attribType = 6;
const nsMsgFilterFileAttribValue attribScriptFile = 7;
const nsMsgFilterFileAttribValue attribAction = 8;
const nsMsgFilterFileAttribValue attribActionValue = 9;
const nsMsgFilterFileAttribValue attribScriptFile = 7;
const nsMsgFilterFileAttribValue attribAction = 8;
const nsMsgFilterFileAttribValue attribActionValue = 9;
const nsMsgFilterFileAttribValue attribCondition = 10;
const nsMsgFilterFileAttribValue attribCustomId = 11;
@ -48,12 +48,12 @@ interface nsIMsgFilterList : nsISupports {
void setFilterAt(in unsigned long filterIndex, in nsIMsgFilter filter);
void removeFilter(in nsIMsgFilter filter);
void removeFilterAt(in unsigned long filterIndex);
void moveFilterAt(in unsigned long filterIndex,
in nsMsgFilterMotionValue motion);
void moveFilter(in nsIMsgFilter filter,
in nsMsgFilterMotionValue motion);
void insertFilterAt(in unsigned long filterIndex, in nsIMsgFilter filter);
attribute boolean loggingEnabled;
@ -68,7 +68,7 @@ interface nsIMsgFilterList : nsISupports {
// (such as the filter list dialog)
attribute nsIFile defaultFile;
void saveToDefaultFile();
// marking noscript because headers is a null-separated list
// of strings, which is not scriptable
@ -89,7 +89,7 @@ interface nsIMsgFilterList : nsISupports {
void writeWstrAttr(in nsMsgFilterFileAttribValue attrib, in wstring value, in nsIOutputStream stream);
void writeBoolAttr(in nsMsgFilterFileAttribValue attrib, in boolean value, in nsIOutputStream stream);
boolean matchOrChangeFilterTarget(in ACString oldUri, in ACString newUri, in boolean caseInsensitive);
// for filter logging
// If both attributes are fetched successfully, they guarantee
// the log file exists and is set up with a header.

Просмотреть файл

@ -26,7 +26,7 @@ interface nsIMsgFilterPlugin : nsISupports
* Some protocols (ie IMAP) can, as an optimization, avoid
* downloading all message header lines. If your plugin doesn't need
* any more than the minimal set, it can return false for this attribute.
*/
*/
readonly attribute boolean shouldDownloadAllHeaders;
};
@ -131,7 +131,7 @@ interface nsIJunkMailPlugin : nsIMsgFilterPlugin
* backwards compatibility with existing junk-oriented classification
* code.
*/
const unsigned long GOOD_TRAIT = 1; // good
const unsigned long JUNK_TRAIT = 2; // junk
@ -146,7 +146,7 @@ interface nsIJunkMailPlugin : nsIMsgFilterPlugin
[array, size_is(aCount)] in string aMsgURIs,
in nsIMsgWindow aMsgWindow,
in nsIJunkMailClassificationListener aListener);
/**
* Given a message URI, evaluate its relative match to a list of
* traits according to the current training set.
@ -206,7 +206,7 @@ interface nsIJunkMailPlugin : nsIMsgFilterPlugin
* cause the training set to be updated appropriately.
*
* @arg aMsgURI URI of the message to be classified
* @arg aOldUserClassification Was it previous manually classified
* @arg aOldUserClassification Was it previous manually classified
* by the user? If so, how?
* @arg aNewClassification New manual classification.
* @arg aListener Callback (may be null)
@ -243,8 +243,8 @@ interface nsIJunkMailPlugin : nsIMsgFilterPlugin
[optional] in nsIJunkMailClassificationListener aJunkListener);
readonly attribute boolean userHasClassified;
/** Removes the training file and clears out any in memory training tokens.
/** Removes the training file and clears out any in memory training tokens.
User must retrain after doing this.
**/
void resetTrainingData();

Просмотреть файл

@ -28,7 +28,7 @@ interface nsIMsgSearchAdapter : nsISupports {
in nsMsgSearchValue value);
readonly attribute string encoding;
[noscript] nsIMsgFolder FindTargetFolder([const] in nsMsgResultElement
element);
void Abort();

Просмотреть файл

@ -58,7 +58,7 @@ interface nsIMsgSearchTerm : nsISupports {
*
* @param aJunkPercent junkpercent for message (0-100, 100 is junk)
* @return true if matches
*/
*/
boolean matchJunkPercent(in unsigned long aJunkPercent);
/*
* Test search term match for junkscoreorigin

Просмотреть файл

@ -99,11 +99,11 @@ interface nsMsgSearchAttrib {
// 52 is for showing customize - in ui headers start from 53 onwards up until 99.
/** OtherHeader MUST ALWAYS BE LAST attribute since
/** OtherHeader MUST ALWAYS BE LAST attribute since
* we can have an arbitrary # of these. The number can be changed,
* however, because we never persist AttribValues as integers.
*/
const nsMsgSearchAttribValue OtherHeader = 52;
const nsMsgSearchAttribValue OtherHeader = 52;
// must be last attribute
const nsMsgSearchAttribValue kNumMsgSearchAttributes = 100;
};

Просмотреть файл

@ -26,7 +26,7 @@ interface nsIMsgAttachment : nsISupports {
/**
* urlCharset attribute
*
* @specify the Charset of url (used to convert url to Unicode after
* @specify the Charset of url (used to convert url to Unicode after
* unescaping)
*/
attribute ACString urlCharset;
@ -63,7 +63,7 @@ interface nsIMsgAttachment : nsISupports {
* a locally saved html document, but also used for cloud files.
*/
attribute ACString contentLocation;
/**
* contentType attribute
*
@ -80,7 +80,7 @@ interface nsIMsgAttachment : nsISupports {
* @It will be added to the content-type during the send/save operation.
*/
attribute string contentTypeParam;
/**
* charset attribute
*

Просмотреть файл

@ -105,11 +105,11 @@ interface nsIMsgCompose : nsIMsgSendListener {
*/
void initialize(in nsIMsgComposeParams aParams,
[optional] in mozIDOMWindowProxy aWindow,
[optional] in nsIDocShell aDocShell);
[optional] in nsIDocShell aDocShell);
/* ... */
void SetDocumentCharset(in string charset);
/* ... */
void RegisterStateListener(in nsIMsgComposeStateListener stateListener);
@ -137,13 +137,13 @@ interface nsIMsgCompose : nsIMsgSendListener {
/* ... */
void abort();
/* ... */
void quoteMessage(in string msgURI);
/*
AttachmentPrettyName will return only the leafName if the it's a file URL.
It will also convert the filename to Unicode assuming it's in the file system
It will also convert the filename to Unicode assuming it's in the file system
charset. In case of URL, |charset| parameter will be used in the conversion.
This UI utility function should probably go into it's own class
*/
@ -206,7 +206,7 @@ interface nsIMsgCompose : nsIMsgSendListener {
/* ... */
readonly attribute nsIMsgCompFields compFields;
/* ... */
readonly attribute boolean composeHTML;
@ -231,7 +231,7 @@ interface nsIMsgCompose : nsIMsgSendListener {
* Init the editor THIS USED TO BE [noscript]
* Now, this is called after editor is created,
* which is triggered by loading startup url from JS.
* The completion of document loading is detected by observing
* The completion of document loading is detected by observing
* the "obs_documentCreated" command
*/
void initEditor(in nsIEditor editor, in mozIDOMWindowProxy contentWindow);
@ -255,7 +255,7 @@ interface nsIMsgCompose : nsIMsgSendListener {
/* ... */
[noscript] void convertAndLoadComposeWindow(in nsStringRef aPrefix,
in nsStringRef aBuf,
in nsStringRef aBuf,
in nsStringRef aSignature,
in boolean aQuoted,
in boolean aHTMLEditor);
@ -267,10 +267,10 @@ interface nsIMsgCompose : nsIMsgSendListener {
/* Retreive the progress object */
readonly attribute nsIMsgProgress progress;
/* ... */
[noscript] void buildBodyMessageAndSignature();
/* ... */
[noscript] void buildQuotedMessageAndSignature();
@ -282,7 +282,7 @@ interface nsIMsgCompose : nsIMsgSendListener {
attribute boolean deleteDraft;
/* true when the compose window is in the process of inserting quoted content
(i.e. via reply, forward inline or a quoting operation) into the document
(i.e. via reply, forward inline or a quoting operation) into the document
*/
attribute boolean insertingQuotedContent;
@ -303,5 +303,5 @@ interface nsIMsgComposeSendListener : nsISupports {
void setMsgCompose(in nsIMsgCompose msgCompose);
void setDeliverMode(in MSG_DeliverMode deliverMode);
};

Просмотреть файл

@ -29,7 +29,7 @@ interface nsIMsgCompType {
const long ReplyWithTemplate = 12;
const long ReplyToList = 13;
/**
/**
* Will resend the original message keeping the Subject and the body the
* same, and will set the Reply-To: header to the sender of the original
* message. This gets the redirector "out of the loop" because replies

Просмотреть файл

@ -10,7 +10,7 @@ interface nsIMsgComposeProgressParams: nsISupports {
/* message subject */
attribute wstring subject;
/* delivery mode */
attribute MSG_DeliverMode deliveryMode;
};

Просмотреть файл

@ -13,7 +13,7 @@ interface nsIOutputStream;
/* Security interface */
[scriptable, uuid(245f2adc-410e-4bdb-91e2-a7bb42d61787)]
interface nsIMsgComposeSecure : nsISupports
interface nsIMsgComposeSecure : nsISupports
{
// requiresCryptoEncapsulation --> returns true if the current message send requires us to go through
// some encryption work. In the case of false, you can disregard the compose secure object.

Просмотреть файл

@ -22,9 +22,9 @@ interface nsIMsgComposeService : nsISupports {
void OpenComposeWindow(in string msgComposeWindowURL,
in nsIMsgDBHdr msgHdr,
in string originalMsgURI,
in MSG_ComposeType type,
in MSG_ComposeType type,
in MSG_ComposeFormat format,
in nsIMsgIdentity identity,
in nsIMsgIdentity identity,
in nsIMsgWindow aMsgWindow);
/**
@ -66,18 +66,18 @@ interface nsIMsgComposeService : nsISupports {
readonly attribute nsIMsgIdentity defaultIdentity;
/* This function is use for debugging purpose only and may go away at anytime without warning */
void TimeStamp(in string label, in boolean resetTime);
void TimeStamp(in string label, in boolean resetTime);
/* This attribute is use for debugging purposes for determining whether to PR_LOG or not */
readonly attribute boolean logComposePerformance;
[noscript] boolean determineComposeHTML(in nsIMsgIdentity aIdentity, in MSG_ComposeFormat aFormat);
/**
/**
* given a mailto url, parse the attributes and turn them into a nsIMsgComposeParams object
* @return nsIMsgComposeParams which corresponds to the passed in mailto url
*/
nsIMsgComposeParams getParamsForMailto(in nsIURI aURI);
nsIMsgComposeParams getParamsForMailto(in nsIURI aURI);
/**
* @{
@ -114,31 +114,31 @@ interface nsIMsgComposeService : nsISupports {
void replyWithTemplate(in nsIMsgDBHdr msgHdr, in string templateUri,
in nsIMsgWindow msgWindow, in nsIMsgIncomingServer server);
/**
/**
* The docShell of each editor element used for composing should be registered
* with this service. docShells passed to initCompose get registered
* automatically. The registrations are typically used to get the msgCompose
* window when determining what remote content to allow to be displayed.
*
* @param aDocShell The nsIDocShell of the editor element.
* @param aDocShell The nsIDocShell of the editor element.
* @param aMsgCompose The compose object associated with the compose window
*/
void registerComposeDocShell(in nsIDocShell aDocShell,
in nsIMsgCompose aMsgCompose);
/**
/**
* When an editor docShell is being closed, you should
* unregister it from this service. nsIMsgCompose normally calls this
* automatically for items passed to initCompose.
*
* @param aDocShell The nsIDocShell of the editor element.
* @param aDocShell The nsIDocShell of the editor element.
*/
void unregisterComposeDocShell(in nsIDocShell aDocShell);
/**
* For a given docShell, returns the nsIMsgCompose object associated with it.
*
* @param aDocShell The nsIDocShell of the editor element.
* @param aDocShell The nsIDocShell of the editor element.
*
* @return NS_ERROR_FAILURE if we could not find a nsIMsgCompose for
* the passed in docShell.

Просмотреть файл

@ -4,12 +4,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* The nsIMsgSend method will create an RFC822 message and send it all in one operation
* as well as providing the ability to save disk files for later use. The mode of delivery
* can also be specified for the "Send Later", "Drafts" and "Templates" operations. (NOTE:
* This method could easily be broken in to a few different calls. Currently, this method
* does several functions depending on the arguments passed in, but this could easily lead
* to confusion. This is something that very well may change as time allows).
* The nsIMsgSend method will create an RFC822 message and send it all in one operation
* as well as providing the ability to save disk files for later use. The mode of delivery
* can also be specified for the "Send Later", "Drafts" and "Templates" operations. (NOTE:
* This method could easily be broken in to a few different calls. Currently, this method
* does several functions depending on the arguments passed in, but this could easily lead
* to confusion. This is something that very well may change as time allows).
*/
#include "nsISupports.idl"
#include "nsrootidl.idl"
@ -61,7 +61,7 @@ interface nsIMsgAttachmentData : nsISupports
attribute ACString realType;
/// Goes along with real_type.
attribute ACString realEncoding;
attribute ACString realEncoding;
/**
* The original name of this document, which will eventually show up in the
@ -111,9 +111,9 @@ interface nsIMsgAttachedFile : nsISupports
/// X-Mozilla-Cloud-Part, if any.
attribute ACString cloudPartInfo;
attribute ACString xMacType; // mac-specific info
attribute ACString xMacCreator; // mac-specific info
attribute ACString realName; // The real name of the file.
attribute ACString xMacType; // mac-specific info
attribute ACString xMacCreator; // mac-specific info
attribute ACString realName; // The real name of the file.
/**
* Some statistics about the data that was written to the file, so that when
@ -158,10 +158,10 @@ interface nsIMsgSend : nsISupports
//
// This is the primary interface for creating and sending RFC822 messages
// in the new architecture. Currently, this method supports many arguments
// that change the behavior of the operation. This will change in time to
// that change the behavior of the operation. This will change in time to
// be separate calls that will be more singluar in nature.
//
// NOTE: when aEditor is non-null, a multipart related MHTML message will
// NOTE: when aEditor is non-null, a multipart related MHTML message will
// be created
//
@ -294,7 +294,7 @@ interface nsIMsgSend : nsISupports
in nsIMsgSendListener aListener,
in nsIMsgStatusFeedback aStatusFeedback,
in wstring aPassword
);
);
/* Abort current send/save operation */
void abort();
@ -318,7 +318,7 @@ interface nsIMsgSend : nsISupports
void BeginCryptoEncapsulation();
/* retreive the last send process report*/
readonly attribute nsIMsgSendReport sendReport;
readonly attribute nsIMsgSendReport sendReport;
/* methods for send listener ... */
void notifyListenerOnStartSending(in string aMsgID, in unsigned long aMsgSize);
@ -327,11 +327,11 @@ interface nsIMsgSend : nsISupports
void notifyListenerOnStopSending(in string aMsgID, in nsresult aStatus, in wstring aMsg, in nsIFile returnFile);
void deliverAsMailExit(in nsIURI aUrl, in nsresult aExitCode);
void deliverAsNewsExit(in nsIURI aUrl, in nsresult aExitCode);
void sendDeliveryCallback(in nsIURI aUrl, in boolean inIsNewsDelivery, in nsresult aExitCode);
/* methods for copy listener ... */
void notifyListenerOnStartCopy();
void notifyListenerOnStartCopy();
void notifyListenerOnProgressCopy(in unsigned long aProgress, in unsigned long aProgressMax);
void notifyListenerOnStopCopy(in nsresult aStatus);
void getMessageId(out ACString messageID);

Просмотреть файл

@ -20,7 +20,7 @@ interface nsIMsgFolder;
* currently doesn't work.
*/
[scriptable, uuid(fa324a4b-4b87-4e9a-a3c0-af9071a358df)]
interface nsIMsgSendLater : nsIStreamListener
interface nsIMsgSendLater : nsIStreamListener
{
/// Used to obtain status feedback for when messages are sent.
attribute nsIMsgStatusFeedback statusFeedback;

Просмотреть файл

@ -30,17 +30,17 @@ interface nsIMsgSendListener : nsISupports {
void onStatus(in string aMsgID, in wstring aMsg);
/**
* Notify the observer that the message has been sent. This method is
* called once when the networking library has finished processing the
* Notify the observer that the message has been sent. This method is
* called once when the networking library has finished processing the
* message.
*
*
* This method is called regardless of whether the the operation was successful.
* aMsgID The message id for the mail message
* status Status code for the message send.
* msg A text string describing the error.
* returnFileSpec The returned file spec for save to file operations.
*/
void onStopSending(in string aMsgID, in nsresult aStatus, in wstring aMsg,
void onStopSending(in string aMsgID, in nsresult aStatus, in wstring aMsg,
in nsIFile aReturnFile);
/**

Просмотреть файл

@ -13,7 +13,7 @@ interface nsIMsgProcessReport : nsISupports {
attribute boolean proceeded;
attribute nsresult error;
attribute wstring message;
void reset();
};
@ -27,18 +27,18 @@ interface nsIMsgSendReport : nsISupports {
const long process_Copy = 3;
const long process_Filter = 4;
const long process_FCC = 5;
attribute long deliveryMode; /* see nsMsgDeliverMode in nsIMsgSend.idl for valid value */
attribute long currentProcess;
void reset();
void setProceeded(in long process, in boolean proceeded);
void setError(in long process, in nsresult error, in boolean overwriteError);
void setMessage(in long process, in wstring message, in boolean overwriteMessage);
nsIMsgProcessReport getProcessReport(in long process);
/* Display Report will ananlyze data collected during the send and will show the most appropriate error.
Also it will return the error code. In case of no error or if the error has been canceld, it will return
NS_OK.

Просмотреть файл

@ -88,7 +88,7 @@ interface nsISmtpServer : nsISupports {
* prompt.
* @return The password to use (may be null if no password was
* obtained).
*/
*/
AString getPasswordWithUI(in wstring promptString, in wstring promptTitle,
in nsIAuthPrompt netPrompt);
@ -105,7 +105,7 @@ interface nsISmtpServer : nsISupports {
* obtained).
* @param password The password to use (may be empty if no password was
* obtained).
*/
*/
void getUsernamePasswordWithUI(in wstring promptString, in wstring promptTitle,
in nsIAuthPrompt netPrompt, out ACString userid,
out AString password);
@ -117,8 +117,8 @@ interface nsISmtpServer : nsISupports {
void forgetPassword();
/**
* Verify that we can logon
*
* Verify that we can logon
*
* @param aPassword - password to use
* @param aUrlListener - gets called back with success or failure.
* @return - the url that we run.

Просмотреть файл

@ -52,11 +52,11 @@ interface nsISmtpService : nsISupports {
* @param aRequest Provides a handle to the running request.
* This parameter may be null.
*/
void sendMailMessage(in nsIFile aFilePath, in string aRecipients,
void sendMailMessage(in nsIFile aFilePath, in string aRecipients,
in nsIMsgIdentity aSenderIdentity,
in AString aPassword,
in nsIUrlListener aUrlListener,
in nsIMsgStatusFeedback aStatusListener,
in nsIUrlListener aUrlListener,
in nsIMsgStatusFeedback aStatusListener,
in nsIInterfaceRequestor aNotificationCallbacks,
in boolean aRequestDSN,
out nsIURI aURL,
@ -123,7 +123,7 @@ interface nsISmtpService : nsISupports {
* If the server does not exist, create it and add it to our list
*/
nsISmtpServer getServerByKey(in string key);
/**
* Delete the given server from the server list - does nothing if the server
* does not exist

Просмотреть файл

@ -17,7 +17,7 @@
typedef nsresult (*nsAttachSaveCompletionCallback) (nsresult aStatus,
const nsACString &aContentType,
const nsACString &aCharset,
int32_t totalSize, const char16_t* aMsg,
int32_t totalSize, const char16_t* aMsg,
void *tagData);
class nsMsgAttachmentHandler;

Просмотреть файл

@ -16,13 +16,13 @@ interface nsIDBChangeAnnouncer : nsISupports {
void AddListener(in nsIDBChangeListener listener);
void RemoveListener(in nsIDBChangeListener listener);
void NotifyHdrChangeAll(in nsIMsgDBHdr aHdrChanged, in unsigned long aOldFlags, in unsigned long aNewFlags,
void NotifyHdrChangeAll(in nsIMsgDBHdr aHdrChanged, in unsigned long aOldFlags, in unsigned long aNewFlags,
in nsIDBChangeListener instigator);
void NotifyHdrAddedAll(in nsIMsgDBHdr aHdrAdded, in nsMsgKey parentKey, in long flags,
void NotifyHdrAddedAll(in nsIMsgDBHdr aHdrAdded, in nsMsgKey parentKey, in long flags,
in nsIDBChangeListener instigator);
void NotifyHdrDeletedAll(in nsIMsgDBHdr aHdrDeleted, in nsMsgKey parentKey, in long flags,
void NotifyHdrDeletedAll(in nsIMsgDBHdr aHdrDeleted, in nsMsgKey parentKey, in long flags,
in nsIDBChangeListener instigator);
void NotifyParentChangedAll(in nsMsgKey keyReparented, in nsMsgKey oldParent, in nsMsgKey newParent, in nsIDBChangeListener instigator);
void NotifyParentChangedAll(in nsMsgKey keyReparented, in nsMsgKey oldParent, in nsMsgKey newParent, in nsIDBChangeListener instigator);
void NotifyReadChanged(in nsIDBChangeListener instigator);

Просмотреть файл

@ -94,7 +94,7 @@ interface nsIDBChangeListener : nsISupports {
* @param aPreChange true on first call before change, false on second call after change
* @param aStatus storage location provided by calling routine for status
* @param aInstigator object that initiated the change
*/
*/
void onHdrPropertyChanged(in nsIMsgDBHdr aHdrToChange, in boolean aPreChange, inout uint32_t aStatus,
in nsIDBChangeListener aInstigator);
@ -107,7 +107,7 @@ interface nsIDBChangeListener : nsISupports {
* registered pending listeners are notified.
*
* @param aDB the db for this event.
* @param aEvent type of event.
* @param aEvent type of event.
*
*/
void onEvent(in nsIMsgDatabase aDB, in string aEvent);

Просмотреть файл

@ -81,7 +81,7 @@ typedef long nsMsgDBCommit;
[scriptable, uuid(15431853-e448-45dc-8978-9958bf74d9b7)]
interface nsMsgDBCommitType
interface nsMsgDBCommitType
{
const long kLargeCommit = 1;
const long kSessionCommit = 2;
@ -377,16 +377,16 @@ interface nsIMsgDatabase : nsIDBChangeAnnouncer {
boolean IsMDNSent(in nsMsgKey key);
// methods to get and set docsets for ids.
void MarkRead(in nsMsgKey key, in boolean bRead,
void MarkRead(in nsMsgKey key, in boolean bRead,
in nsIDBChangeListener instigator);
void MarkReplied(in nsMsgKey key, in boolean bReplied,
void MarkReplied(in nsMsgKey key, in boolean bReplied,
in nsIDBChangeListener instigator);
void MarkForwarded(in nsMsgKey key, in boolean bForwarded,
void MarkForwarded(in nsMsgKey key, in boolean bForwarded,
in nsIDBChangeListener instigator);
void MarkHasAttachments(in nsMsgKey key, in boolean bHasAttachments,
void MarkHasAttachments(in nsMsgKey key, in boolean bHasAttachments,
in nsIDBChangeListener instigator);
void MarkThreadRead(in nsIMsgThread thread, in nsIDBChangeListener instigator,
@ -424,7 +424,7 @@ interface nsIMsgDatabase : nsIDBChangeAnnouncer {
void deleteMessages(in unsigned long aNumKeys,
[array, size_is(aNumKeys)] in nsMsgKey nsMsgKeys,
in nsIDBChangeListener instigator);
void DeleteMessage(in nsMsgKey key,
void DeleteMessage(in nsMsgKey key,
in nsIDBChangeListener instigator,
in boolean commit);
void DeleteHeader(in nsIMsgDBHdr msgHdr, in nsIDBChangeListener instigator,
@ -469,7 +469,7 @@ interface nsIMsgDatabase : nsIDBChangeAnnouncer {
// purge unwanted message headers and/or bodies. If deleteViaFolder is
// true, we'll call nsIMsgFolder::DeleteMessages to delete the messages.
// Otherwise, we'll just delete them from the db.
void applyRetentionSettings(in nsIMsgRetentionSettings aMsgRetentionSettings,
void applyRetentionSettings(in nsIMsgRetentionSettings aMsgRetentionSettings,
in boolean aDeleteViaFolder);
attribute nsIMsgDownloadSettings msgDownloadSettings;
@ -537,7 +537,7 @@ interface nsIMsgDatabase : nsIDBChangeAnnouncer {
in unsigned long aLen2,
[array, size_is(aLen2)] in octet key2);
// when creating a view, the default sort order and view flags
// when creating a view, the default sort order and view flags
// use these for the default. (this allows news to override, so that
// news can be threaded by default)
readonly attribute nsMsgViewFlagsTypeValue defaultViewFlags;
@ -549,12 +549,12 @@ interface nsIMsgDatabase : nsIDBChangeAnnouncer {
/**
* The list of messages currently in the NEW state.
*
*
* If there are no such messages, a null pointer may be returned.
* the caller should free when done using free.
*/
void getNewList(out unsigned long count, [array, size_is(count)] out nsMsgKey newKeys);
// These are used for caching search hits in a db, to speed up saved search folders.
nsISimpleEnumerator getCachedHits(in string aSearchFolderUri);
void refreshCache(in string aSearchFolderUri, in unsigned long aNumKeys, [array, size_is (aNumKeys)] in nsMsgKey aNewHits,

Просмотреть файл

@ -42,7 +42,7 @@ interface nsIMsgOfflineImapOperation : nsISupports
attribute string sourceFolderURI;
void addKeywordToAdd(in string aKeyword);
void addKeywordToRemove(in string aKeyword);
readonly attribute string keywordsToAdd;
readonly attribute string keywordsToAdd;
readonly attribute string keywordsToRemove;
readonly attribute long numberOfCopies;
void addMessageCopyOperation(in string destinationBox);

Просмотреть файл

@ -19,10 +19,10 @@ interface nsIMsgMailViewList : nsISupports {
nsIMsgMailView getMailViewAt(in unsigned long mailViewIndex);
void addMailView(in nsIMsgMailView mailView);
void addMailView(in nsIMsgMailView mailView);
void removeMailView(in nsIMsgMailView mailView);
nsIMsgMailView createMailView();
void save();
void save();
};

Просмотреть файл

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* This is a private interface used exclusively by SMIME.
/* This is a private interface used exclusively by SMIME.
It provides functionality to the JS UI code,
that is only accessible from C++.
*/
@ -11,11 +11,11 @@
#include "nsISupports.idl"
[scriptable, uuid(f86e55c9-530b-483f-91a7-10fb5b852488)]
interface nsIEncryptedSMIMEURIsService : nsISupports
interface nsIEncryptedSMIMEURIsService : nsISupports
{
void rememberEncrypted(in AUTF8String uri);
void forgetEncrypted(in AUTF8String uri);
boolean isEncrypted(in AUTF8String uri);
};

Просмотреть файл

@ -5,13 +5,13 @@
/* This is a private interface used exclusively by SMIME. NO ONE outside of extensions/smime
should have any knowledge nor should be referring to this interface.
should have any knowledge nor should be referring to this interface.
*/
#include "nsISupports.idl"
[scriptable, uuid(338E91F9-5970-4f81-B771-0822A32B1161)]
interface nsIMsgSMIMECompFields : nsISupports
interface nsIMsgSMIMECompFields : nsISupports
{
attribute boolean signMessage;
attribute boolean requireEncryptMessage;

Просмотреть файл

@ -5,8 +5,8 @@
/* This is a private interface used exclusively by SMIME. NO ONE outside of extensions/smime
or the hard coded smime decryption files in mime/src should have any knowledge nor should
be referring to this interface.
or the hard coded smime decryption files in mime/src should have any knowledge nor should
be referring to this interface.
*/
#include "nsISupports.idl"
@ -14,7 +14,7 @@
interface nsIX509Cert;
[scriptable, uuid(25380FA1-E70C-4e82-B0BC-F31C2F41C470)]
interface nsIMsgSMIMEHeaderSink : nsISupports
interface nsIMsgSMIMEHeaderSink : nsISupports
{
void signedStatus(in long aNestingLevel, in long aSignatureStatus, in nsIX509Cert aSignerCert);
void encryptionStatus(in long aNestingLevel, in long aEncryptionStatus, in nsIX509Cert aReceipientCert);

Просмотреть файл

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* This is a private interface used exclusively by SMIME.
/* This is a private interface used exclusively by SMIME.
It provides functionality to the JS UI code,
that is only accessible from C++.
*/
@ -14,7 +14,7 @@ interface nsIMsgCompFields;
interface nsIX509Cert;
[scriptable, uuid(a54e3c8f-a000-4901-898f-fafb297b1546)]
interface nsISMimeJSHelper : nsISupports
interface nsISMimeJSHelper : nsISupports
{
/**
* Obtains detailed information about the certificate availability

Просмотреть файл

@ -1,20 +1,20 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
#include "nsIAutoSyncMsgStrategy.idl"
interface nsIMsgAccount;
[scriptable, uuid(d3bf91cc-37bb-4752-9994-1a8473e46a90)]
[scriptable, uuid(d3bf91cc-37bb-4752-9994-1a8473e46a90)]
interface nsIAutoSyncFolderStrategy : nsISupports {
/**
* Returns a relative-priority for the second folder by comparing with the first one.
*/
nsAutoSyncStrategyDecisionType sort(in nsIMsgFolder aFolder1, in nsIMsgFolder aFolder2);
/**
* Tests whether the given folder should be excluded or not.
*/

Просмотреть файл

@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
interface nsIAutoSyncMsgStrategy;
@ -12,7 +12,7 @@ interface nsIAutoSyncMgrListener;
interface nsIMsgFolder;
interface nsIMsgAccount;
[scriptable, uuid(41ec36a7-1a53-4ca3-b698-dca6452a8761)]
[scriptable, uuid(41ec36a7-1a53-4ca3-b698-dca6452a8761)]
interface nsIAutoSyncMgrListener : nsISupports {
/**
@ -30,7 +30,7 @@ interface nsIAutoSyncMgrListener : nsISupports {
* @param aFolder folder that is added into the queue
*/
void onFolderAddedIntoQ(in long aQType, in nsIMsgFolder aFolder);
/**
* It is called on the listener when a folder is removed from
* the queue
@ -39,42 +39,42 @@ interface nsIAutoSyncMgrListener : nsISupports {
* @param aFolder folder that is removed from the queue
*/
void onFolderRemovedFromQ(in long aQType, in nsIMsgFolder aFolder);
/**
* It is called on the listener when a message download is successfully started
*
* @param aFolder folder in which the download is started
* @param aNumberOfMessages number of the messages that will be downloaded
* @param aTotalPending total number of messages waiting to be downloaded
* @param aFolder folder in which the download is started
* @param aNumberOfMessages number of the messages that will be downloaded
* @param aTotalPending total number of messages waiting to be downloaded
*/
void onDownloadStarted(in nsIMsgFolder aFolder, in unsigned long aNumberOfMessages,
void onDownloadStarted(in nsIMsgFolder aFolder, in unsigned long aNumberOfMessages,
in unsigned long aTotalPending);
/**
* It is called on the listener when a message download on the given folder
* It is called on the listener when a message download on the given folder
* is completed
*/
void onDownloadCompleted(in nsIMsgFolder aFolder);
/**
* It is called on the listener when an error occurs during the message download
*/
void onDownloadError(in nsIMsgFolder aFolder);
/*
* Auto-Sync manager is running or waiting for idle
* Auto-Sync manager is running or waiting for idle
*/
void onStateChanged(in boolean aRunning);
/**
* It is called on the listener after the auto-sync manager starts to process
* It is called on the listener after the auto-sync manager starts to process
* existing headers of the given folder to find missing message bodies
* (mostly for debugging purposes)
*/
void onDiscoveryQProcessed(in nsIMsgFolder aFolder, in unsigned long aNumberOfHdrsProcessed,
void onDiscoveryQProcessed(in nsIMsgFolder aFolder, in unsigned long aNumberOfHdrsProcessed,
in unsigned long aLeftToProcess);
/**
* It is called on the listener after the auto-sync manager updates the given folder
* It is called on the listener after the auto-sync manager updates the given folder
* (mostly for debugging purposes)
*/
void onAutoSyncInitiated(in nsIMsgFolder aFolder);
@ -84,7 +84,7 @@ interface nsIAutoSyncMgrListener : nsISupports {
[scriptable, uuid(7fe0b48e-f5d8-4747-beb7-888c9cced3a5)]
interface nsIAutoSyncManager : nsISupports {
/**
/**
* Download models
*/
const long dmParallel = 0;
@ -92,7 +92,7 @@ interface nsIAutoSyncManager : nsISupports {
/**
* Suggested minimum grouping size in bytes for message downloads.
* Setting this attribute to 0 resets its value to the
* Setting this attribute to 0 resets its value to the
* hardcoded default.
*/
attribute unsigned long groupSize;
@ -113,48 +113,48 @@ interface nsIAutoSyncManager : nsISupports {
* Adds a listener to notify about auto-sync events
*/
void addListener(in nsIAutoSyncMgrListener aListener);
/**
* Removes the listener from notification list
*/
void removeListener(in nsIAutoSyncMgrListener aListener);
/**
* Tests the given message to make sure that whether
* Tests the given message to make sure that whether
* it fits the download criteria or not
*/
boolean doesMsgFitDownloadCriteria(in nsIMsgDBHdr aMsgHdr);
/**
* Called by the nsAutoSyncState object when the download
* queue is changed. Given interface is already addref'd.
*/
void onDownloadQChanged(in nsIAutoSyncState aAutoSyncStateObj);
/**
* Called by the nsAutoSyncState object when the download
* is started. Given interface is already addref'd.
*/
void onDownloadStarted(in nsIAutoSyncState aAutoSyncStateObj, in nsresult aStartCode);
/**
* Called by the nsAutoSyncState object when the download
* completed. Given interface is already addref'd.
*/
void onDownloadCompleted(in nsIAutoSyncState aAutoSyncStateObj, in nsresult aExitCode);
/**
* Number of elements in the discovery queue.
* @see nsAutoSyncManager.h for details
*/
readonly attribute unsigned long discoveryQLength;
/**
* Number of elements in the update queue.
* @see nsAutoSyncManager.h for details
*/
readonly attribute unsigned long updateQLength;
/**
* Number of elements in the download queue (a.k.a priority queue).
* @see nsAutoSyncManager.h for details
@ -176,7 +176,7 @@ interface nsIAutoSyncManager : nsISupports {
/// Pause autosync (e.g., we're downloading for offline).
void pause();
/// Resume normal autosync activities (e.g., we've come back online).
void resume();
};

Просмотреть файл

@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
interface nsIMsgFolder;
@ -20,14 +20,14 @@ interface nsAutoSyncStrategyDecisions
const nsAutoSyncStrategyDecisionType Lower = 0x00000004;
};
[scriptable, uuid(9cb4baff-3112-4cf8-8463-f81b0aa78f93)]
[scriptable, uuid(9cb4baff-3112-4cf8-8463-f81b0aa78f93)]
interface nsIAutoSyncMsgStrategy : nsISupports {
/**
* Returns a relative-priority for the second message by comparing with the first message.
*/
nsAutoSyncStrategyDecisionType sort(in nsIMsgFolder aFolder, in nsIMsgDBHdr aMsgHdr1, in nsIMsgDBHdr aMsgHdr2);
/**
* Tests whether the given message should be excluded or not.
*/

Просмотреть файл

@ -20,7 +20,7 @@ interface nsIAutoSyncState : nsISupports {
*/
/** sync'd and no pending messages */
const long stCompletedIdle = 0;
const long stCompletedIdle = 0;
/** STATUS issued. Will check to see if any counts changed since last STATUS */
const long stStatusIssued = 1;
@ -42,28 +42,28 @@ interface nsIAutoSyncState : nsISupports {
const long stReadyToDownload = 5;
/**
* Puts the download queue offset to its previous position.
* Puts the download queue offset to its previous position.
*/
void rollback();
/**
* Clears the download queue. Resets the offsets.
*/
void resetDownloadQ();
/**
* Rollbacks the offset to the previous position and
* changes the state to ready-to-download.
*/
void tryCurrentGroupAgain(in unsigned long aRetryCount);
/**
* Resets the retry counter.
*/
void resetRetryCounter();
/**
* Tests whether the given folder has the same imap server.
* Tests whether the given folder has the same imap server.
*/
boolean isSibling(in nsIAutoSyncState aAnotherStateObj);
@ -78,18 +78,18 @@ interface nsIAutoSyncState : nsISupports {
void downloadMessagesForOffline(in nsIArray aMessageList);
/**
* Populates the given array with the keys of the messages that will
* Populates the given array with the keys of the messages that will
* be downloaded next.
*
* @param aSuggestedGroupSizeLimit suggested size per group in bytes
* @param aActualGroupSize total size of the messages in bytes in the group
*/
nsIMutableArray getNextGroupOfMessages(in unsigned long aSuggestedGroupSizeLimit,
nsIMutableArray getNextGroupOfMessages(in unsigned long aSuggestedGroupSizeLimit,
out unsigned long aActualGroupSize);
/**
* Iterates through the existing headers of the folder to find
* the messages not downloaded yet.
* Iterates through the existing headers of the folder to find
* the messages not downloaded yet.
*
* @param aNumberOfHeadersToProcess number of headers to be processed
* at this pass
@ -99,30 +99,30 @@ interface nsIAutoSyncState : nsISupports {
unsigned long processExistingHeaders(in unsigned long aNumberOfHeadersToProcess);
/**
* Last time the existing headers are completely processed.
* Last time the existing headers are completely processed.
*/
[noscript]readonly attribute PRTime lastSyncTime;
/**
* Last time the owner folder is updated.
*/
[noscript]attribute PRTime lastUpdateTime;
/**
* Download operation state.
* Download operation state.
*/
attribute long state;
/**
* Number of messages waiting to be downloaded.
*/
readonly attribute long pendingMessageCount;
/**
* Total number of messages in the download queue.
*/
readonly attribute long totalMessageCount;
/**
* The folder this auto-sync object is related to.
*/

Просмотреть файл

@ -88,7 +88,7 @@ interface nsIImapIncomingServer : nsISupports {
in boolean performingBiff);
/**
* Get the password from the nsIMsgIncomingServer. May prompt the user
* if there's no password in the password manager or cached in the
* if there's no password in the password manager or cached in the
* server object.
* @param aWindow msgWindow to associate the password prompt with
* @return Password string.

Просмотреть файл

@ -45,12 +45,12 @@ interface nsIImapMailFolderSink : nsISupports {
/**
* Set FolderQuotaData information
* @param aFolderQuotaRoot The IMAP quota root for this folder,
* @param aFolderQuotaRoot The IMAP quota root for this folder,
* as returned by the GETQUOTAROOT IMAP command.
* @param aFolderQuotaUsedKB Used space, in KB, on this folder's quota root.
* @param aFolderQuotaMaxKB Size, in KB, of this folder's quota root.
**/
void setFolderQuotaData(in ACString aFolderQuotaRoot, in unsigned long aFolderQuotaUsedKB,
void setFolderQuotaData(in ACString aFolderQuotaRoot, in unsigned long aFolderQuotaUsedKB,
in unsigned long aFolderQuotaMaxKB);
/// Should we download all the rfc822 headers of messages, instead of subset.
@ -74,7 +74,7 @@ interface nsIImapMailFolderSink : nsISupports {
[retval, array, size_is(aCount)] out nsMsgKey aKeys);
void parseMsgHdrs(in nsIImapProtocol aProtocol, in nsIImapHeaderXferInfo aHdrXferInfo);
void AbortHeaderParseStream(in nsIImapProtocol aProtocol) ;
void OnlineCopyCompleted(in nsIImapProtocol aProtocol, in ImapOnlineCopyState aCopyState);
void StartMessage(in nsIMsgMailNewsUrl aUrl);
void EndMessage(in nsIMsgMailNewsUrl aUrl, in nsMsgKey uidOfMessage);
@ -91,7 +91,7 @@ interface nsIImapMailFolderSink : nsISupports {
void headerFetchCompleted(in nsIImapProtocol aProtocol);
void setBiffStateAndUpdate(in long biffState);
void progressStatusString(in nsIImapProtocol aProtocol, in string aMsgId, in wstring extraInfo);
void percentProgress(in nsIImapProtocol aProtocol, in wstring aMessage,
void percentProgress(in nsIImapProtocol aProtocol, in wstring aMessage,
in long long aCurrentProgress, in long long aMaxProgressProgressInfo);
void clearFolderRights();

Просмотреть файл

@ -63,7 +63,7 @@ interface nsIImapMessageSink : nsISupports {
void getMessageSizeFromDB(in string aId, out unsigned long aSize);
void setContentModified(in nsIImapUrl aImapUrl, in nsImapContentModifiedType aModified);
/**
* For a message stored in a file, get the message metadata needed to copy
* that message to an imap folder
@ -75,6 +75,6 @@ interface nsIImapMessageSink : nsISupports {
*
* @return message flags
*/
unsigned long getCurMoveCopyMessageInfo(in nsIImapUrl aRunningUrl,
unsigned long getCurMoveCopyMessageInfo(in nsIImapUrl aRunningUrl,
out PRTime aDate, out ACString aKeywords);
};

Просмотреть файл

@ -11,7 +11,7 @@
a connection becomes available.
Unfortunately, if we want to be a truly pluggable protocol with necko, necko
requires the ability to get a channel back right away when it wants to run
requires the ability to get a channel back right away when it wants to run
a url. It doesn't let you wait until an imap connection becomes available.
So I've created the notion of a "mock channel". This mock channel is what

Просмотреть файл

@ -12,7 +12,7 @@ interface nsIMsgMailNewsUrl;
*/
[scriptable, uuid(1217cd9d-7678-4026-b323-0d4b45816af0)]
interface nsIImapProtocolSink : nsISupports {
/**
* Does general cleanup for the imap protocol object.
*/

Просмотреть файл

@ -103,7 +103,7 @@ interface nsIImapServerSink : nsISupports {
*/
void fEAlertWithName(in string aMsgName, in nsIMsgMailNewsUrl aUrl);
/**
* Takes a response from the server and prepends it with IMAP_SERVER_SAID
* Takes a response from the server and prepends it with IMAP_SERVER_SAID
*
* @param aServerString The string to alert the user with.
* @param url The running url.

Просмотреть файл

@ -13,7 +13,7 @@ interface nsIMailboxSpec : nsISupports
{
attribute long folder_UIDVALIDITY;
/**
* The highest modification sequence number the parser has seen
* The highest modification sequence number the parser has seen
* for this mailbox. See IMAP RFC 4551
**/
attribute unsigned long long highestModSeq;

Просмотреть файл

@ -17,7 +17,7 @@ interface nsIAutoSyncState;
* values that the folder props js code will use to update the sharing and
* quota tabs in the folder properties.
*/
[scriptable, uuid(09D99F2C-3E23-4f8c-A536-5C277BAA9585)]
[scriptable, uuid(09D99F2C-3E23-4f8c-A536-5C277BAA9585)]
interface nsIMsgImapFolderProps : nsISupports {
void setFolderType(in AString folderType);
@ -59,7 +59,7 @@ interface nsIMsgImapMailFolder : nsISupports {
void renameClient(in nsIMsgWindow msgWindow, in nsIMsgFolder msgFolder, in ACString oldName, in ACString newName);
// these are used for offline synchronization
void storeImapFlags(in long aFlags, in boolean aAddFlags, [array, size_is (aNumKeys)]
void storeImapFlags(in long aFlags, in boolean aAddFlags, [array, size_is (aNumKeys)]
in nsMsgKey aKeysToFlag, in unsigned long aNumKeys, in nsIUrlListener aUrlListener);
nsIURI setImapFlags(in string uids, in long flags);
void replayOfflineMoveCopy([array, size_is (numKeys)] in nsMsgKey keys, in unsigned long numKeys, in boolean isMove, in nsIMsgFolder aDstFolder,

Просмотреть файл

@ -25,7 +25,7 @@ interface nsICharsetConverterManager : nsISupports
* @throws if aCharset is an unknown charset.
*/
ACString getCharsetAlias(in string aCharset);
/**
* Get the human-readable name for the given charset.
* @throws if aCharset is an unknown charset.
@ -33,26 +33,26 @@ interface nsICharsetConverterManager : nsISupports
AString getCharsetTitle(in string aCharset);
/**
* Get some data about the given charset. This includes whether the
* character encoding may be used for certain purposes, if it is
* Get some data about the given charset. This includes whether the
* character encoding may be used for certain purposes, if it is
* multi-byte, and the language code for it. See charsetData.properties
* for the source of this data. Some known property names:
* LangGroup - language code for charset, e.g. 'he' and 'zh-CN'.
* isMultibyte - is this a multi-byte charset?
* isInternal - not to be used in untrusted web content.
*
*
* @param aCharset name of the character encoding, e.g. 'iso-8859-15'.
* @param aProp property desired for the character encoding.
* @throws if aCharset is an unknown charset.
* @return the value of the property, for the character encoding.
*/
AString getCharsetData(in string aCharset,
AString getCharsetData(in string aCharset,
in wstring aProp);
/**
* Get the language group for the given charset. This is similar to
* Get the language group for the given charset. This is similar to
* calling <tt>getCharsetData</tt> with the <tt>prop</tt> "LangGroup".
*
*
* @param aCharset name of the character encoding, e.g. 'iso-8859-15'.
* @throws if aCharset is an unknown charset.
* @return the language code for the character encoding.

Просмотреть файл

@ -18,7 +18,7 @@ interface nsIMovemailService : nsISupports {
in nsIUrlListener aUrlListener,
in nsIMsgFolder aMsgFolder,
in nsIMovemailIncomingServer movemailServer);
nsIURI CheckForNewMail(in nsIUrlListener aUrlListener,
in nsIMsgFolder inbox,
in nsIMovemailIncomingServer movemailServer);

Просмотреть файл

@ -35,7 +35,7 @@ interface nsIMsgLocalMailFolder : nsISupports {
*/
void setFlagsOnDefaultMailboxes(in unsigned long flags);
/*
/*
* This will return null if the db is out of date
*/
nsIMsgDatabase getDatabaseWOReparse();

Просмотреть файл

@ -5,6 +5,6 @@
#include "nsISupports.idl"
[scriptable, uuid(4b31bdd9-6f4c-46d4-a766-a94f11b599bc)]
interface nsIRssService : nsISupports
interface nsIRssService : nsISupports
{
};

Просмотреть файл

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// This idl will be compiled by MIDL. MS-COM is used
// This idl will be compiled by MIDL. MS-COM is used
// as bridge between MAPI clients and the Mozilla.
import "unknwn.idl";
@ -11,7 +11,7 @@ typedef wchar_t LOGIN_PW_TYPE[256];
typedef struct
{
unsigned long ulReserved;
unsigned long ulReserved;
unsigned long flFlags; /* Flags */
unsigned long nPosition_NotUsed; /* character in text to be replaced by attachment */
LPTSTR lpszPathName; /* Full path name including file name */
@ -22,11 +22,11 @@ typedef struct
typedef struct
{
unsigned long ulReserved;
unsigned long ulReserved;
unsigned long ulRecipClass; /* MAPI_TO, MAPI_CC, MAPI_BCC, MAPI_ORIG */
LPSTR lpszName; /* Recipient name to display */
LPSTR lpszAddress; /* Recipient email address */
unsigned long ulEIDSize_NotUsed;
unsigned long ulEIDSize_NotUsed;
unsigned char * lpEntryID_NotUsed ;
} nsMapiRecipDesc, * lpnsMapiRecipDesc;
@ -64,11 +64,11 @@ interface nsIMapi : IUnknown
HRESULT IsValidSession([in] unsigned long aSession);
HRESULT SendMail([in] unsigned long aSession, [in, unique] lpnsMapiMessage aMessage,
[in] short aRecipCount, [in, size_is(aRecipCount)] lpnsMapiRecipDesc aRecips,
[in] short aFileCount, [in, size_is(aFileCount)] lpnsMapiFileDesc aFiles,
[in] short aRecipCount, [in, size_is(aRecipCount)] lpnsMapiRecipDesc aRecips,
[in] short aFileCount, [in, size_is(aFileCount)] lpnsMapiFileDesc aFiles,
[in] unsigned long aFlags, [in] unsigned long aReserved) ;
HRESULT SendDocuments( [in] unsigned long aSession,
HRESULT SendDocuments( [in] unsigned long aSession,
[in, unique] LPTSTR aDelimChar, [in, unique] LPTSTR aFilePaths,
[in, unique] LPTSTR aFileNames, [in] ULONG aFlags ) ;

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше