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

320 Коммитов

Автор SHA1 Сообщение Дата
gayatrib%netscape.com 5ed55409a2 This file is not required for profile ui 1999-09-17 23:30:23 +00:00
neeti%netscape.com 0bed67a824 *** empty log message *** 1999-09-17 23:28:56 +00:00
neeti%netscape.com 4f448a67e0 moved bookmarks.html to defaults/profile 1999-09-17 23:26:54 +00:00
sfraser%netscape.com d1fcac20b7 First Checked In. 1999-09-17 23:20:53 +00:00
gayatrib%netscape.com a7885b64bc adding locale dir to makefile 1999-09-17 23:17:28 +00:00
gayatrib%netscape.com 81e33ae9e4 moving entities into dtds 1999-09-17 23:16:06 +00:00
gayatrib%netscape.com 6eec46bc80 makefile for dtds 1999-09-17 22:05:54 +00:00
gayatrib%netscape.com 911e9c2cc2 dtds for profile manager ui 1999-09-17 22:05:04 +00:00
sspitzer%netscape.com 5beee13044 close the stream. 1999-09-17 11:47:46 +00:00
dveditz%netscape.com b83b004785 match buffered i/o registry change in XP_MAC section 1999-09-17 07:00:55 +00:00
sspitzer%netscape.com ea6116a88c 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-16 23:01:45 +00:00
sspitzer%netscape.com fcf002830d propagate errors. right now, -installer doesn't work on the mac. now, we through up and and tell the user, which is better than crashing. I'm still working on getting it to work on the Mac. 1999-09-16 23:00:21 +00:00
sspitzer%netscape.com f212e02373 add a scriptable version of GetCurrentProfileDir to the nsIProfle interface called GetCurrentProfileDirFromJS
eventually, the non-scriptable interface will go away, but I don't have time do that yet.  slamm is using this in his sidebarOverlay.js
1999-09-16 20:36:27 +00:00
cls%seawood.org 11333d189a Linux only: Removed -D_BSD_SOURCE from DEFINES as it is unnecessary now that __STRICT_ANSI__ is set in <prinet.h> 1999-09-16 14:54:18 +00:00
sspitzer%netscape.com cdfcf81126 increase the changes of -installer working on mac tomorrow, by not checking
if there is enough space before copying.

once we get -installer working on the mac, we'll turn this code back on.
1999-09-16 10:41:13 +00:00
sspitzer%netscape.com 9d47fa7306 rewrite to not user GetCString(). read the comments in nsFileSpec.cpp: "Using it guarantees bugs on Macintosh"
clean up code.  wrap all printfs with #ifdef DEBUG_profile
1999-09-16 08:17:51 +00:00
gayatrib%netscape.com ea371f4d62 Removing tabs that are not supported yet 1999-09-16 00:39:20 +00:00
gayatrib%netscape.com 24ec1d40f6 Fixing the finish button problem and removing tabs that are not supported yet 1999-09-16 00:38:40 +00:00
gayatrib%netscape.com a9ca010f7f fixing bug 13899 1999-09-15 21:23:39 +00:00
alecf%netscape.com 7035f9d3f9 fix lots of leaks in profile code
use nsCOMPtr and nsXPIDLCString where I found leaks
1999-09-15 06:07:33 +00:00
sspitzer%netscape.com 6bf18b77e1 stupid cut and paste error. 1999-09-15 05:36:53 +00:00
sspitzer%netscape.com fbee1ffc31 add support for the PROFILE_NAME PROFILE_HOME environment variables, for multiple profile migration on UNIX 1999-09-15 05:21:18 +00:00
sspitzer%netscape.com cb2b1b46d2 rename the mail filter rule files (if we need to, and if we can) when we do the migration.
rename the cookie file (if we need to) so that if you run -installer,
you cookies will be migrated.
Change DoTheCopy() to be DoTheCopyAndRename(), which takes additional parameters
to rename files as it copies them.
remove unnecessary code.
#define constants to be clean.
add a stub for RenameAndMoveFilterFiles() with comments on what we need to do
for the mac.
1999-09-15 04:15:27 +00:00
briano%netscape.com 89198d119d General cleanup. 1999-09-15 03:00:30 +00:00
ramiro%netscape.com 26dd94b010 Cleanup the neckutil linking thing. 1999-09-15 02:15:11 +00:00
sspitzer%netscape.com c7c63563a0 only automigrate (when we have one profile) on windows. 1999-09-14 11:12:10 +00:00
sspitzer%netscape.com b0e356a49e fix build bustage 1999-09-14 10:43:49 +00:00
sspitzer%netscape.com d79e81a24b 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 3f8ac304c7 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 dc2b6bdbba 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 9e1c49ca33 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 596f8ad3fa 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 168aeeb620 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 70fa68d932 added files: mozilla/profile/pref-migrator/public/nsIPrefMigration.idl 1999-09-13 05:52:26 +00:00
sspitzer%netscape.com 26eca40523 XPIDL-ify nsIPrefMigration, and the necessary changes that go along with that. 1999-09-13 05:52:18 +00:00
sspitzer%netscape.com f4084b2e81 new files resulting from XPIDL-ifying nsIPrefMigration.
NOT PART OF THE BUILD YET.
1999-09-13 04:23:31 +00:00
sspitzer%netscape.com ceff67bf42 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 17c88d7b29 Fix my bustage using -D_BSD_SOURCE 1999-09-12 16:41:14 +00:00
sspitzer%netscape.com 3df0613073 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 9d09d05876 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 a91b3799d1 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 27b926ef35 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 b6a94a88a0 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 16b41d5cc5 more changes to get profile migration to work on UNIX 1999-09-11 22:18:47 +00:00
sspitzer%netscape.com 75e0ab4564 rewrite nsPrefMigration to use the pref service instead of old school PREF_* api. 1999-09-11 22:18:22 +00:00
sspitzer%netscape.com 3cc18d2b78 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 d74a8149d3 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 0c267c1c7a 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 e81f1c49b6 src/nsPrefMigration.cpp 1999-09-11 20:05:11 +00:00
sspitzer%netscape.com e08a5a5296 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