Граф коммитов

295 Коммитов

Автор SHA1 Сообщение Дата
sspitzer%netscape.com 4f057cd26a only automigrate (when we have one profile) on windows. 1999-09-14 11:12:10 +00:00
sspitzer%netscape.com e0b280be86 fix build bustage 1999-09-14 10:43:49 +00:00
sspitzer%netscape.com f9846f9db9 turn on migration for the mac. note, it doesn't work just yet. also, for mac, like unix, don't automigrate if there is only one profile. this make it hell to debug. once it works, we can make it automigrate if we only have one profile if we want. 1999-09-14 10:23:08 +00:00
sspitzer%netscape.com afecdc4e8f the pref migrator iid's look very suspicous, so regenerate them.
follow convention:
rename nsPrefMigrationIIDs.h to nsPrefMigrationCIDs.h
rename NS_IPrefMigration_IID -> NS_PREFMIGRATION_CID
rename kFoo_CID to kFooCID
use the NS_GET_IID macro
1999-09-14 09:41:41 +00:00
sspitzer%netscape.com 5068559111 fix for #13704.
also, instead of just checking that ".msf" or ".snm" or ".summary" appears in th
e file name, we now check if the filename *ends* with ".msf", ".snm" or ".summar
y".
1999-09-14 00:08:33 +00:00
sspitzer%netscape.com afbd510ee3 fix profile migration on windows (and probably mac.)
on UNIX, "mail.directory" is always set.
on windows, it may be set to ""
add the PL_strlen test to tree "" as not being set, so we assume the default 4.x location, which is what we want.
1999-09-13 20:38:23 +00:00
sspitzer%netscape.com 167e2ad607 clean up a bunch of code by using nsCOMPtrs and the almighty NS_WITH_SERVICE macro. 1999-09-13 07:37:05 +00:00
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