sspitzer%netscape.com
8675ea5ec8
if GetDirFromPref() failed, we use the old profile directory path to determine the old directory. save that in the premigrated version of the pref, because we will need that during actual pref migration. if we don't do this, premigrated.foo is left blank, because foo was not set.
1999-09-13 07:21:36 +00:00
sspitzer%netscape.com
8ee819b718
added files: mozilla/profile/pref-migrator/public/nsIPrefMigration.idl
1999-09-13 05:52:26 +00:00
sspitzer%netscape.com
073edb9cac
XPIDL-ify nsIPrefMigration, and the necessary changes that go along with that.
1999-09-13 05:52:18 +00:00
sspitzer%netscape.com
5a12798f0f
new files resulting from XPIDL-ifying nsIPrefMigration.
...
NOT PART OF THE BUILD YET.
1999-09-13 04:23:31 +00:00
sspitzer%netscape.com
dd8d913ed5
use #defines where possible to clean up the code, reduce the risk of errors,
...
and make the code more portable.
create directories with 00700 permissions, not PR_RDWR. On UNIX, PR_RDWR would
create directories with d______r__. 00700 gives us drwx______ which is want we
want. change the signature of ProcessPrefs() so that we just return the result,instead of
setting an out parameter. remove ComputeMailPath(), it is unused.
instead of doing PR_MALLOC in the beginning, set char *'s to nsnull, and use
PR_smprintf() and CopyCharPref() to allocate the memory. (the PR_FREEIF()s
are still correct, though.)
use NS_SUCCEEDED() and NS_FAILED() instead of comparing against NS_OK directly.
don't execute the GetSizes(), GetDriveName() and CheckForSpace() methods
on UNIX, as they are not UNIX friendly. hold onto the nsIFileSpec that points
to the prefs file, so we can save it when we are done using SavePrefFileAs()
Change the signature of GetDirFromPref() and GetDriveName(). The out parameters
were char *'s. they need to be char **'s for them to work.
Change GetDirFromPref() to also take the oldProfilePathStr and the new directory leaf name.
These are used on UNIX, where we to do some magic because in
4.x the directory structure on UNIX was much different that on Mac and Windows
fix leak in GetDriveName(). we were leaking *driveName in the loop.
initialize variables.
add some printfs to remind me that there is more todo.
fix various comments to reflect the new signatures to methods.
check parameters of GetDirFromPref() and GetDriveName()
1999-09-13 00:10:13 +00:00
cls%seawood.org
762fca642e
Fix my bustage using -D_BSD_SOURCE
1999-09-12 16:41:14 +00:00
sspitzer%netscape.com
03fe870ecd
set up prefs with the new prefs.js file that we copied over from the 4.x world
1999-09-12 01:39:03 +00:00
sspitzer%netscape.com
0d184814ac
remove obsolete code. define PREF_MAIL_SERVER_TYPE to avoid errors, like using mail.server.type instead of mail.server_type.
1999-09-12 01:13:41 +00:00
sspitzer%netscape.com
5fc797845d
more changes to get profile migration to work on UNIX. fix stupid mistake that was breaking migration on all platforms.
1999-09-12 01:06:12 +00:00
sspitzer%netscape.com
90ed3cfbd2
more changes to get -installer to work on UNIX. since there was no registry on UNIX in 4x, so MigrateProfileInfo() for UNIX assumes your profile name is seth and your profile directory in 4.x was /home/seth/.netscape and that you only had one 4.x profile. also, use AUTOMATICALLY_MIGRATE_IF_ONLY_ONE_PROFILE so that on UNIX, we don't automatically attempt to migrate. since we are creating News, Mail, and Cache directories, create ImapMail
1999-09-12 00:14:50 +00:00
beard%netscape.com
2308a9ce73
Fixed a leak and incorrect copy of C string. Added nsXPIDLCString::operator =() to simplify usage.
1999-09-11 23:05:47 +00:00
sspitzer%netscape.com
bef08ecd2c
more changes to get profile migration to work on UNIX
1999-09-11 22:18:47 +00:00
sspitzer%netscape.com
158b5aeead
rewrite nsPrefMigration to use the pref service instead of old school PREF_* api.
1999-09-11 22:18:22 +00:00
sspitzer%netscape.com
3908912a5c
change the nsIProfileService interface and implemenation. add an Init() method
...
instead of doing things in the constructor.
1999-09-11 22:15:24 +00:00
sspitzer%netscape.com
726c31e012
follow convention and put the preprocessor macros on the first character of the
...
line.
1999-09-11 21:21:16 +00:00
sspitzer%netscape.com
30839431b2
this comment is for the last checkin.
...
define server_type constants.
handle it gracefully, if they didn't use imap or pop. (example, movemail on unix.)
the pref is "mail.server_type" and it's an int (not "mail.server.type" as a char *)
initialize some variables to nsnull.
1999-09-11 20:07:44 +00:00
sspitzer%netscape.com
77e3f69442
src/nsPrefMigration.cpp
1999-09-11 20:05:11 +00:00
sspitzer%netscape.com
4faf8d4ffa
changes to get pref-migrator (think apprunner -installer) on UNIX.
...
use the NS_DEFINE_STATIC_IID_ACCESSOR and NS_DEFINE_STATIC_CID_ACCESSOR macros.
fix a bunch of warnings. rewrite to use #defines. remove unused variables. use MAXPATHLEN instead of _MAX_PATH.
when setting a 4.x pref (example "mail.directory") to a new 5.0 value, create a "premigration" pref
with the old value. (example "premigration.mail.directory").
1999-09-11 19:48:50 +00:00
sspitzer%netscape.com
560c7a7f95
ignore the generated Makefiles.
...
they aren't being generated yet, but soon.
1999-09-11 16:10:24 +00:00
sspitzer%netscape.com
9fc02c45ee
makefile for building pref-migrator on UNIX. NOT PART OF BUILD YET.
1999-09-11 16:08:15 +00:00
colin%theblakes.com
317c0966aa
Tidy up library list
1999-09-11 15:37:40 +00:00
sspitzer%netscape.com
ad648fd0fc
makfiles for building the pref-migrator on unix. NOT PART OF BUILD YET.
1999-09-11 00:24:28 +00:00
dougt%netscape.com
41333e2a6c
Fixing LL_ compare routines.
1999-09-10 18:56:30 +00:00
dbragg%netscape.com
cb4ea90170
Added the new mail directory code for POP and IMAP
1999-09-10 18:41:33 +00:00
alecf%netscape.com
629f39c6ec
fix printf and don't release the service we're given
1999-09-10 05:38:18 +00:00
alecf%netscape.com
373f71408f
fix uninitialize variable that was preventing prefs from saving on windows
1999-09-10 05:25:29 +00:00
alecf%netscape.com
b4471e7fd1
added files: mozilla/profile/public/nsIProfile.idl
1999-09-10 00:51:45 +00:00
alecf%netscape.com
9ff9548e0c
profile changes on windows
1999-09-10 00:51:22 +00:00
alecf%netscape.com
c5c85908f7
land new profiles stuff
...
- move command line processing into nsIProfile
- fix up leaks
- use SERVICE macros
- general cleanup
1999-09-10 00:51:02 +00:00
alecf%netscape.com
43eb7beefc
link against appropriate libraries in preparation for profile landing
1999-09-10 00:40:49 +00:00
gayatrib%netscape.com
5debc7e092
Fixing bug #13518
1999-09-10 00:34:45 +00:00
alecf%netscape.com
ebcf1ed682
adding neckoutil_s in preparation for profile landing
1999-09-10 00:30:26 +00:00
alecf%netscape.com
af15ee55f9
add new files to prepare for profile landing
1999-09-10 00:29:08 +00:00
dougt%netscape.com
b563171606
fixing build bustage.
1999-09-09 20:30:14 +00:00
dougt%netscape.com
41a7fa078c
nsFileSpec::GetDiskSpace now returns a PRUint64. (12479)
...
thanks to Chet Murphy <cmurphy@modelworks.com> for the windows code!
1999-09-09 19:20:35 +00:00
dbragg%netscape.com
ec66ed1b78
Added the writing of the string Mozilla User Preferences to the top of the prefs js file. Fixes bug 8610
1999-09-07 18:28:55 +00:00
dveditz%netscape.com
ee89552282
remove xp_file.h from NSReg.h, required minor tweaking elsewhere to include
...
now missing NSPR types.
1999-09-04 19:46:18 +00:00
bruce%cybersight.com
87b10d9485
Use nsCRT::free() on nsEscape() result rather than delete[]. Fix some memory leaks. Remove some warnings.
1999-09-04 17:00:15 +00:00
waterson%netscape.com
b4d0e01ffa
Fix 'rename profile' to bring up the right file.
1999-09-03 20:36:04 +00:00
waterson%netscape.com
fc8d70d300
Wrap in <html:div> to get layout to work right.
1999-09-03 20:32:10 +00:00
waterson%netscape.com
707f3a5aeb
Fix profile manager XUL; was incorrectly using 'xul:' namespace on window tag.
1999-09-03 16:51:41 +00:00
gayatrib%netscape.com
d0d0297cf9
Correcting some typos
1999-09-03 00:58:34 +00:00
gayatrib%netscape.com
1480073791
Partial fix for bug #13033--yet to disable buttons
1999-09-03 00:56:26 +00:00
gayatrib%netscape.com
7cb90cfb1d
Partial fix for bug #13033--yet to align buttons to the right and disable buttons
1999-09-03 00:52:19 +00:00
gayatrib%netscape.com
c56dda8b23
fixing bug #12815
1999-09-02 20:55:41 +00:00
briano%netscape.com
6519af50e5
Cleaned it up and eliminated the pointless #!gmake.
1999-09-02 00:06:06 +00:00
gayatrib%netscape.com
d55576d042
Fixing bug #12953
1999-09-01 23:37:41 +00:00
briano%netscape.com
88553027ba
Fixed the typo that was breaking (at least) the commercial Unix builds. (pmRename.xul != pmrename.xul)
1999-09-01 23:07:38 +00:00
varada%netscape.com
4289beaebc
changing the name of the dll from profileservices to profidl to suit the 8.3 windows naming convention
1999-09-01 01:14:37 +00:00
cyeh%netscape.com
34cd2ddae1
Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people.
1999-09-01 01:13:14 +00:00