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

12 Коммитов

Автор SHA1 Сообщение Дата
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
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 ad648fd0fc makfiles for building the pref-migrator on unix. NOT PART OF BUILD YET. 1999-09-11 00:24:28 +00:00
dbragg%netscape.com ff4ea358ae First Checked In. 1999-08-10 21:55:20 +00:00
dbragg%netscape.com f93844358b changed the .xpt file name from include to pm_progress 1999-08-02 21:55:27 +00:00
dbragg%netscape.com 4524952ae6 Added a progress bar 1999-06-09 20:16:59 +00:00
dbragg%netscape.com bc1f7c864d Added *aResult for status values per XPCOM 1999-05-26 21:22:58 +00:00
dbragg%netscape.com d240076959 Changed DEPTH 1999-05-26 21:22:15 +00:00
dbragg%netscape.com 50a9e17c77 This file was in the wrong place 1999-05-18 00:03:44 +00:00
dougt%netscape.com 4bfb7582c3 First Checked In. 1999-05-07 21:35:49 +00:00