Open
Bug 116983
Opened 23 years ago
Updated 2 years ago
move or get rid of helper classes in nsAbUtils.*
Categories
(MailNews Core :: Address Book, defect)
MailNews Core
Address Book
Tracking
(Not tracked)
NEW
People
(Reporter: sspitzer, Unassigned)
References
Details
get rid of the helper classes in nsAbUtils.h
we should we able to use the datastructures (like nsCStringArray and
nsStringArray, etc) that are already in mozilla. no reason for more bloat.
Comment 2•23 years ago
|
||
If you look more closely, these datastructures are required to convert from
char** to nsCStringArray and from PRUnichar** to nsStringArray. we cannot remove
them.
nsCStringArrray and nsStringArray are not native types and therefore cannot be
used in idl files, which needs these conversion (both ways).
Reporter | ||
Comment 3•23 years ago
|
||
if I've got a bunch of char*, can't I do this:
nsCString foo;
foo.Adopt(ptr);
nsCStringArray.Append(foo);
or something.
we can have interfaces that use nsCStringArray and nsStringArray, they just
won't be scriptable. do we really need to pass these through JS?
Reporter | ||
Comment 4•23 years ago
|
||
those helper classes are just in C++, so it doesn't even matter.
I think we can get rid of that code, if we just use Adopt() properly.
Reporter | ||
Comment 5•23 years ago
|
||
talking with dmose and naving, if we decide to clean this up, we'll need keep
it scriptable. so my original suggestion will not work.
searchExt() is part of a scritable interface nsILDAPOperation.idl. where do we
call it from js? and that's called from the ldap datasource, see
nsLDAPDataSource.js
so if we want to go down this road, we'd either use nsISupportsArray and
nsISupportsString and nsISupportsWString, or move these impls to
mozilla/xpcom/ds, as they are useful.
one draw back of changing is we'd have to change from XPCOM-style arrays
(around the char **) to nsISupportsArrays. we'd have to fix at least the LDAP
addrsesbook code, the LDAP autocomplete code, the LDAP URL handling code, and
datasource.
re-assigning to dmose. this undertaking is right up his alley, and may involve
a lot of LDAP ab-LDAP work.
futuring.
Assignee: naving → dmose
Target Milestone: --- → Future
Reporter | ||
Updated•23 years ago
|
Summary: get rid of the helper classes in nsAbUtils.h → move or get rid of helper classes in nsAbUtils.*
Updated•23 years ago
|
Status: NEW → ASSIGNED
OS: Windows 2000 → All
Hardware: PC → All
Reporter | ||
Comment 6•23 years ago
|
||
I've gotten rid of some of the helper classes. see bug #83091
Depends on: 83091
Reporter | ||
Comment 7•23 years ago
|
||
the hash table bloat is gone, 83091 has landed.
Updated•20 years ago
|
Product: Browser → Seamonkey
Updated•19 years ago
|
Component: Address Book → MailNews: Address Book
Product: Mozilla Application Suite → Core
QA Contact: nbaca → addressbook
Comment 8•18 years ago
|
||
Assigning bugs that I'm not actively working on back to nobody; use
SearchForThis as a search term if you want to delete all related bugmail at
once.
Assignee: dmose → nobody
Status: ASSIGNED → NEW
Assignee | ||
Updated•16 years ago
|
Product: Core → MailNews Core
Updated•16 years ago
|
Target Milestone: Future → ---
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•