Gerasim Troeglazov
cb5ed9c755
MimeType: fix SetFileExtensions
2014-07-09 13:23:01 +00:00
Ingo Weinhold
cdfeba5a1e
BPackageWriter: Add Recompress()
...
Allows rewriting an existing package file with a different compression.
2014-07-08 22:00:35 +02:00
Ingo Weinhold
2fc2aebcba
PackageWriterImpl: Move _Finish() impl to match order in header
2014-07-08 22:00:35 +02:00
Ingo Weinhold
f5a20d5ff1
package kit: PackageFileHeapReader::Init(): Sanity checks
...
Make sure the compressed/uncompressed heap size and the chunk size
table look plausible, so we can rely on the values later. Fixes
potential crashes for corrupt packages.
2014-07-08 22:00:35 +02:00
Ingo Weinhold
b04949711d
BUrl::IsValid(): Replace with a slightly better dummy impl
2014-07-03 17:39:59 +02:00
Ingo Weinhold
c666db88ef
BZlibCompressionAlgorithm: Missing NULL check
2014-07-03 17:39:59 +02:00
Ingo Weinhold
a5330a8e41
Remove private support kit BUrl
...
Use the public BUrl from the network kit instead.
2014-07-03 17:39:59 +02:00
Ingo Weinhold
72f6b787cf
BUrl: Add missing functionality from support kit BUrl
2014-07-03 17:39:59 +02:00
Ingo Weinhold
2573655b79
Revert "Revert "HttpRequest: support gzip and deflate compression.""
...
This reverts commit 256080b112
.
With the following changes:
* Adjusted to the BZlibCompressionAlgorithm API.
* Add some error handling.
2014-07-03 17:39:58 +02:00
Ingo Weinhold
c99f294eb0
BNetBuffer: Restore semantics after DynamicBuffer -> BDataIO
2014-07-03 17:39:58 +02:00
Ingo Weinhold
25d34313d0
DynamicBuffer::Read(): Small optimization (skip 0 case)
2014-07-03 17:39:58 +02:00
Ingo Weinhold
6926863e37
DynamicBuffer::Write(): Fix return type and semantics
2014-07-03 17:39:58 +02:00
Ingo Weinhold
739f15e144
Revert "Revert "DynamicBuffer: implement BDataIO""
...
This reverts commit 747b401e87
.
2014-07-03 17:39:57 +02:00
Ingo Weinhold
72cf56a0fd
BZlibCompressionAlgorithm: Basic support for gzip format
2014-07-01 21:54:58 +02:00
Ingo Weinhold
b3263ad3e1
Switch package kit to BZlibCompressionAlgorithm
...
... and remove the Zlib{Compressor,Decompressor} API.
2014-06-30 21:55:41 +02:00
Ingo Weinhold
dcdc33b0af
Add B[Zlib]CompressionAlgorithm
...
* BCompressionAlgorithm is a base class for classes that provide
compression/decompression functionality. There are methods for
compressing/decompressing a single buffer and factory methods for
a compressing/decompressing input/output BDataIO.
* BZlibCompressionAlgorithm is a BCompressionAlgorithm implementation
using zlib.
2014-06-30 21:55:41 +02:00
Ingo Weinhold
6a89a36aa0
Move package kit Zlib* classes to support kit
...
Also move to B* namespace and no longer expose the zlib dependency in
the headers.
2014-06-30 21:55:41 +02:00
Ingo Weinhold
b773d89eba
BDataIO: Add Flush()
2014-06-30 21:55:40 +02:00
Ingo Weinhold
0dab9e5cb4
package kit: ReaderImplBase: Remove superfluous scratch buffer
2014-06-30 21:51:16 +02:00
Ingo Weinhold
f1a12bcfc0
ReaderImplBase::ReadSection(): Small simplification
2014-06-30 21:51:16 +02:00
John Scipione
ab97fc0564
Replace FindFirst() == 0 with StartsWith()
...
Thanks PulkoMandy.
2014-06-30 14:45:02 -04:00
John Scipione
784d5bea5c
Tracker: small refactor to FindPaths.
...
No functional change intended.
* Remove trailing / from Tracker, thanks Axel.
* put addOnPaths.CountStrings() in a variable.
2014-06-29 17:31:05 -04:00
John Scipione
b43baaba36
BRoster: Remove brief desc comments
...
As per discussion, you'll just have to look in the Haiku Book for this.
Thanks Axel
2014-06-26 20:04:39 -04:00
John Scipione
e4652fbaae
BRoster: small doc fix
2014-06-26 20:02:26 -04:00
John Scipione
1909b63bab
BRoster: whitespace
2014-06-26 20:01:30 -04:00
John Scipione
807a7aa09a
Roster: print when sending B_READY_TO_RUN
2014-06-25 19:32:27 -04:00
John Scipione
732c579702
Roster: style fixes.
...
* Check if == NULL or == 0 explicitily
* Use NULL instead of 0 as default value for pointers in header.
* other little stuff, new lines, comments
2014-06-25 19:31:24 -04:00
John Scipione
e0016ffde9
Style fixes to BRoster, move docs to doxygen.
...
Keep the brief description as a regular comment above each public method.
Leave the docs of private methods.
Some variable renaming mostly because of abbreviations.
Add documentation for all the public methods and app_info members and defines
that didn't have docs in the cpp file.
2014-06-25 15:35:09 -04:00
Adrien Destugues
158ae74373
Escape reserved characters when converting paths to urls
...
* Introduce and use BUrl::BUrl(const BPath&)
* The path is url-encoded, and the protocol is set to "file"
Fixes #10964 .
2014-06-25 10:45:03 +02:00
John Scipione
29e8fa5922
Style fixes to Support Kit files
2014-06-24 19:30:54 -04:00
Ingo Weinhold
5ede33ed15
BDataIO: Hopefully fix native build
2014-06-23 23:18:00 +02:00
Ingo Weinhold
84297881bb
Remove BPackageKit::[...]::AbstractDataWriter and friends
...
* FDDataWriter and ZlibDataWriter weren't used anymore.
* AbstractDataWriter was implemented only by PackageFileHeapWriter,
which was only used by WriterImplBase.
* Add a PackageFileHeapWriter::AddDataThrows() which has semantics
equivalent to the previously inherited WriteDataThrows().
2014-06-23 22:58:15 +02:00
Ingo Weinhold
32832cbe47
Remove BPackageKit::BDataOutput
...
Use BDataIO instead.
2014-06-23 22:58:15 +02:00
Ingo Weinhold
0d8b44e25b
BDataIO: Add methods {Read,Write}Exactly()
2014-06-23 22:58:15 +02:00
Ingo Weinhold
98759fe6e6
BDataIO: Provide default implementations for Read()/Write()
...
This makes the interface somewhat more suitable for unidirectional use,
since one doesn't have to implement the other, not needed method.
2014-06-23 22:58:14 +02:00
John Scipione
f90ef128c8
Tracker: fix accidental logic reversal
...
...introduced in a66ee36
. This should hopefully be the last issue.
2014-06-21 04:22:29 -04:00
John Scipione
a1e688610a
Tracker: tiny style fix in NavMenu.cpp
2014-06-21 04:21:40 -04:00
John Scipione
b0fcbfb871
Tracker: style fix, use NULL instead of 0 for pointers
2014-06-21 04:04:22 -04:00
John Scipione
512c80ef1c
Tracker: add back parens
2014-06-21 03:54:35 -04:00
John Scipione
64fda603ef
Tracker: fix accidential logic reversal
2014-06-21 03:54:08 -04:00
John Scipione
d73129ff46
Tracker: style fixes to IconCache
2014-06-21 03:03:35 -04:00
John Scipione
7dbe212003
Tracker: Fix accidental logic reversal in a66ee36
...
should be: if (!container || suppressFolderHierarchy)
also rename container to isContainer
2014-06-21 03:02:52 -04:00
John Scipione
546ec3bcf9
Tracker: tiny style fix to FilePanelPriv.cpp
2014-06-21 02:51:01 -04:00
John Scipione
116b363cb8
Tracker: indent comments
2014-06-21 02:50:40 -04:00
John Scipione
91faf3201b
Tracker: Fix DEBUG build (I hope)
2014-06-21 01:02:53 -04:00
John Scipione
92199e801c
Tracker: style fixes to WidgetAttributeText
2014-06-20 21:30:12 -04:00
John Scipione
69e5768d45
Tracker: style fixes to VolumeWindow
2014-06-20 21:30:10 -04:00
John Scipione
e07476a120
Tracker: style fixes to VirtualDirectoryWindow
2014-06-20 21:30:09 -04:00
John Scipione
5d3c0dd100
Tracker: style fixes to VirtualDirectoryPoseView
2014-06-20 21:30:07 -04:00
John Scipione
d8d0539a08
Tracker: style fixes to VirtualDirectoryManager
2014-06-20 21:30:05 -04:00
John Scipione
09d0d8f9dc
Tracker: style fixes to VirtualDirectoryEntryList
2014-06-20 21:30:03 -04:00
John Scipione
27dc6eb7e1
Tracker: style fixes to ViewState
2014-06-20 21:30:02 -04:00
John Scipione
a4c3bbd3f5
Tracker: style fixes to Utilities
2014-06-20 21:30:00 -04:00
John Scipione
e29e8b3b27
Tracker: style fixes to TrashWatcher
2014-06-20 21:29:58 -04:00
John Scipione
22b073d41f
Tracker: style fixes to TrackerString
2014-06-20 21:29:56 -04:00
John Scipione
e55f3b531d
Tracker: style fixes to TrackerSettingsWindow
2014-06-20 21:29:55 -04:00
John Scipione
4c0810574e
Tracker: style fixes to TrackerSettings
2014-06-20 21:29:53 -04:00
John Scipione
a92b628772
Tracker: style fixes to TrackerScripting.cpp
2014-06-20 21:29:51 -04:00
John Scipione
eaece3eb95
Tracker: style fixes to TrackerInitialState.cpp
2014-06-20 21:29:50 -04:00
John Scipione
d8edc67336
Tracker: style fixes to Tracker class
2014-06-20 21:29:48 -04:00
John Scipione
6d4e243a84
Tracker: style fixes to TitleView
2014-06-20 21:29:47 -04:00
John Scipione
477bd87be1
Tracker: style fixes to TextWidget
2014-06-20 21:29:45 -04:00
John Scipione
2be7dbb562
Tracker: style fixes to Tests.cpp
2014-06-20 21:29:43 -04:00
John Scipione
a2d1822e99
Tracker: style fixes to TemplatesMenu
2014-06-20 21:29:42 -04:00
John Scipione
754d953d6d
Tracker: style fixes to StatusWindow classes
2014-06-20 21:29:40 -04:00
John Scipione
ad12c9b56f
Tracker: SlowMenu style fixes
2014-06-20 21:29:39 -04:00
John Scipione
4afa2a751d
Tracker: SlowContextPopup style fixes
2014-06-20 21:29:37 -04:00
John Scipione
f435b67810
Tracker: style fixes to SettingsViews classes
2014-06-20 21:29:36 -04:00
John Scipione
b2ee107be9
Tracker: style fixes to SettingsHandler classes
2014-06-20 21:29:34 -04:00
John Scipione
262e7c9368
Tracker: style fixes to Settings class
2014-06-20 21:29:33 -04:00
John Scipione
775ad007b5
Tracker: style fixes to SelectionWindow
2014-06-20 21:29:31 -04:00
John Scipione
96d9dde048
Tracker: style fixes to RegExp (minor)
2014-06-20 21:29:30 -04:00
John Scipione
0c7c3ed429
Tracker: style fixes to RecentItems
...
Renamed fTterator to fIterator which I'm assuming was a typo.
2014-06-20 21:29:28 -04:00
John Scipione
961b4f97f7
Tracker: style fixes to QueryPoseView
2014-06-20 21:29:26 -04:00
John Scipione
388dbb6fe7
Tracker: style fixes to QueryContainerWindow
2014-06-20 21:29:25 -04:00
John Scipione
1147c0f980
Tracker: style fixes to PublicCommands.h
...
just changes header guard names for consistency.
2014-06-20 21:29:24 -04:00
John Scipione
850b01cee9
Tracker: style fixes to PoseViewScripting
2014-06-20 21:29:21 -04:00
John Scipione
091db3a99d
Tracker: Check if selectedPose is NULL
...
... before using it.
2014-06-20 21:29:19 -04:00
John Scipione
14bf930b99
Tracker: Check if selectedBounds is NULL
...
... before using it.
2014-06-20 21:29:17 -04:00
John Scipione
38181640e9
Tracker: style fixes to PoseView class
2014-06-20 21:29:14 -04:00
John Scipione
fdb62486ef
Tracker: style fixes to PoseList class
2014-06-20 21:02:16 -04:00
John Scipione
6b1b5709a6
Tracker: style fixes to Pose class
2014-06-20 21:02:15 -04:00
John Scipione
3dca186447
Tracker: style fixes to PendingNodeMonitorCache
2014-06-20 21:02:14 -04:00
John Scipione
8c968207bb
Tracker: OverrideAlert style fixes
2014-06-20 21:02:12 -04:00
John Scipione
3d47df58de
Tracker: Use floats in OpenWithWindow calculations
2014-06-20 21:02:11 -04:00
John Scipione
c513839558
Tracker: Style fixes to OpenWithWindow
2014-06-20 21:02:10 -04:00
John Scipione
01579713f8
Tracker: NodeWalker style fixes
2014-06-20 21:02:09 -04:00
John Scipione
26325b395c
Tracker: NodePreloader style fixes
2014-06-20 21:02:08 -04:00
John Scipione
a66ee3684c
Tracker: NavMenu style fixes
2014-06-20 21:02:06 -04:00
John Scipione
f97ab85b35
Tracker: make sure dynamic_cast succeeded
...
CID something or other I'll bet.
2014-06-20 21:02:05 -04:00
John Scipione
808af41c2a
Tracker: style fixes to Navigator
2014-06-20 21:02:04 -04:00
John Scipione
dbe62cc77f
Tracker: style fixes to MountMenu class
2014-06-20 21:02:03 -04:00
John Scipione
c8d910f76b
Tracker: style fixes to Model class
2014-06-20 21:02:01 -04:00
John Scipione
40ef04f38e
Tracker: MiniMenuField style fixes
2014-06-20 21:02:00 -04:00
John Scipione
90da025732
Tracker: tiny style fix to MimTypes.h
2014-06-20 21:01:59 -04:00
John Scipione
cc334f72b3
Tracker: MimeTypeList style fixes
2014-06-20 21:01:58 -04:00
John Scipione
603e1a2cf2
Tracker: LockingList.h style fixes (minor)
2014-06-20 21:01:56 -04:00
John Scipione
ff43bcbfd5
Tracker: style fixes to InfoWindow
...
Return B_BAD_VALUE if pointer is NULL in InfoWindow
2014-06-20 21:01:55 -04:00
John Scipione
ba50b2c229
Tracker: style fixes to IconMenuItem
2014-06-20 21:01:54 -04:00
John Scipione
f2ed47616f
Tracker: style fixes to IconCache
2014-06-20 21:01:52 -04:00