38 Commits

Author SHA1 Message Date
alecf%netscape.com
eff2f0d65b oops, back out this change, wasn't supposed to land
git-svn-id: svn://10.0.0.236/trunk@114824 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 23:00:11 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
dougt%netscape.com
bf7163c089 checked in warren's patch to remove circular memory leak in directory service
removed strcmp'er in favor of atom compares.
added comments to nsFileSpec indicating that it is no longer supported.


git-svn-id: svn://10.0.0.236/trunk@67030 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:48:02 +00:00
sspitzer%netscape.com
0f6cad9a9c fix for #32245. r=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@63315 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 21:53:49 +00:00
sspitzer%netscape.com
8138810ade add Delete() to the nsIFileSpec interface.
git-svn-id: svn://10.0.0.236/trunk@63022 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 07:07:56 +00:00
warren%netscape.com
d100457780 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar
git-svn-id: svn://10.0.0.236/trunk@62243 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:26:01 +00:00
dougt%netscape.com
714da09a59 Landing nsIFile.
git-svn-id: svn://10.0.0.236/trunk@58490 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-24 21:28:28 +00:00
dp%netscape.com
9b0cfefb70 NS_GET_IID(). Thanks to patch from pp@ludasdesign.com r=dp@netscape.com
git-svn-id: svn://10.0.0.236/trunk@54812 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 23:36:32 +00:00
fur%netscape.com
e3d83679ec In support of #8305 (implement cache).
Add Truncate() method to nsIFileSpec and implement in nsFileSpecImpl

[Mac Implementation: sdagley, r: sfraser]
[Win implementation: fur, r:rogerl]
[Unix implementation: yixiong.zue@intel.com, r: fur]


git-svn-id: svn://10.0.0.236/trunk@53948 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 01:42:46 +00:00
sspitzer%netscape.com
457995c98d fix for #17954
before, if "mail.directory" was set, we'd assume the mail wasn't in the standard
default place, so we'd migrate Mail -> Mail5
now, we check if "mail.directory" == the default place.  if so, we migrate
it like we would if it wasn't set.
Mail -> Users50/<profile>/Mail

to help do this, I added Equals() to the nsIFileSpec interface, to compare
two nsIFileSpec's, it does this by comparing the nsFileSpecs.


git-svn-id: svn://10.0.0.236/trunk@53396 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 02:02:22 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
dveditz%netscape.com
6b0912645b Changing nsFileSpec Copy and Move function names to match their
functionality, and also to free up the namespace for a *real* Copy
and Move that allow renaming the leaf name rather than just copying
into different directories (i.e. to make backup files). r=ssu


git-svn-id: svn://10.0.0.236/trunk@51333 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:40:39 +00:00
mccabe%netscape.com
69a8cf7c7b Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.


git-svn-id: svn://10.0.0.236/trunk@48284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:46:35 +00:00
dougt%netscape.com
4b0f769454 changing GetDiskSpaceAvailable to return a signed 64 bit value
git-svn-id: svn://10.0.0.236/trunk@46835 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 20:03:56 +00:00
dougt%netscape.com
66f1984420 nsFileSpec::GetDiskSpace now returns a PRUint64. (12479)
thanks to Chet Murphy <cmurphy@modelworks.com> for the windows code!


git-svn-id: svn://10.0.0.236/trunk@46590 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:20:35 +00:00
shaver%netscape.com
aff923d924 add IsChildOf, and dougt's relative-path-handling diff
git-svn-id: svn://10.0.0.236/trunk@45975 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 23:44:59 +00:00
brendan%mozilla.org
d87f3f7b04 Massive spankage to capitalize C++ method and attribute name bindings, per
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).


git-svn-id: svn://10.0.0.236/trunk@44456 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 05:26:25 +00:00
scc%netscape.com
56d5ad0b43 got rid of |NS_IMPL_ISUPPORTS|, where possible, in favor of |NS_IMPL_ISUPPORTS0| or ...1 according to the specific use; got rid of |NS_DEFINE_IID| where possible, or where it should have been |NS_DEFINE_CID|; fixed bad implementations of |QueryInterface|, where possible. Built, tested apprunner, reviewed the changes with hyatt (since he was around to look) before checking in
git-svn-id: svn://10.0.0.236/trunk@44139 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 10:14:16 +00:00
sspitzer%netscape.com
695d359ba6 change the nsIDirectoryIterator::Init interface to match the nsDirectoryIterator ctor: two paramenters, a file spec and a bool for resolveSymlinks. pass in PR_TRUE in the pref and component manager code. this fixes the problem where prefs wouldn't get loaded on the mac!
git-svn-id: svn://10.0.0.236/trunk@41358 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 23:33:54 +00:00
dougt%netscape.com
d219f1385e Fix for bug 10177 and 10041.
git-svn-id: svn://10.0.0.236/trunk@41167 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 22:09:42 +00:00
dougt%netscape.com
0e3652a9a5 fix for bug: 10260
removed warning in nsIFileStream.cpp


git-svn-id: svn://10.0.0.236/trunk@40445 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 17:56:01 +00:00
rods%netscape.com
4ed1205371 Commented out a check to that makes it return when mOutputStream null
instead it creates  an output stream when it is null


git-svn-id: svn://10.0.0.236/trunk@39681 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 12:57:45 +00:00
sspitzer%netscape.com
19011d007c add the touch interface to the nsIFileSpec iterface and the appropriate implementations
git-svn-id: svn://10.0.0.236/trunk@39149 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-13 19:10:43 +00:00
sspitzer%netscape.com
0a1cd32ae8 bulletproofing changes. check return value and return it if error.
git-svn-id: svn://10.0.0.236/trunk@38015 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 06:31:31 +00:00
mcmullen%netscape.com
d6a17f446b readLine was returning (in its truncation parameter) the exact opposite of the promised boolean. Thanks to kin@netscape.com for pointing this out.
git-svn-id: svn://10.0.0.236/trunk@36392 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-22 23:21:00 +00:00
mcmullen%netscape.com
31d50e2f64 Changed to reference parameters (to avoid copying of objects onto the stack)
git-svn-id: svn://10.0.0.236/trunk@36249 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-22 05:03:30 +00:00
mcmullen%netscape.com
7811bed44a Removed two evil exported functions which I added. Well actually, I added them as inlines, but they somehow changed. So since I don't want them as exports, dust to dust, and ashes to ashes.
git-svn-id: svn://10.0.0.236/trunk@36223 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-22 03:53:43 +00:00
dp%netscape.com
c8118dee3e Removing nsIComponentManager.h from nsIFileSpec.h to prevent circular
header dependencies in preparation for component manager using nsIFileSpec.


git-svn-id: svn://10.0.0.236/trunk@35569 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:26:02 +00:00
mcmullen%netscape.com
eace9f2cd3 Fix casting problem
git-svn-id: svn://10.0.0.236/trunk@35263 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:55:24 +00:00
mcmullen%netscape.com
547167bb7c Made write and read do an implicit open. Added a FileContents attribute to allow simple conversion between an entire file and a string.
git-svn-id: svn://10.0.0.236/trunk@35207 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:05:41 +00:00
mscott%netscape.com
088a2c2da9 Remove warning introduced by an unused variabled into NS_NewFileSpecWithSpec.
git-svn-id: svn://10.0.0.236/trunk@34500 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:09:55 +00:00
mscott%netscape.com
a516c9660b Adding NS_NewFileSpecWithSpec for C++ code which allows you to create a nsIFileSpec given a nsFileSpec.
git-svn-id: svn://10.0.0.236/trunk@34489 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:49:39 +00:00
dp%netscape.com
a334563929 Cleaning up silliness.
git-svn-id: svn://10.0.0.236/trunk@34443 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:17:50 +00:00
mcmullen%netscape.com
8a800cd243 Return value
git-svn-id: svn://10.0.0.236/trunk@33217 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:51:02 +00:00
mcmullen%netscape.com
95205de0f7 Moved widgetry out.
git-svn-id: svn://10.0.0.236/trunk@33208 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 01:28:25 +00:00
dp%netscape.com
3a5dab8bf1 Fixed crasher bug# 7311 by removing aggregation. Both constructors need to take an additional parameter that will initialize the outer need to happen. Doing the bigger change of introducing aggregation later
git-svn-id: svn://10.0.0.236/trunk@33164 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 22:09:32 +00:00
dp%netscape.com
4b8edfa961 Added aggregation. Implemented Create() so that the GenericFactory can create IFileSpec
Objects if registered.


git-svn-id: svn://10.0.0.236/trunk@33068 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 00:50:42 +00:00
dp%netscape.com
befa259a88 Landing xpcom20/21 branch.
git-svn-id: svn://10.0.0.236/trunk@32644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:38:36 +00:00