History log of /haiku/src/kits/storage/NodeInfo.cpp
Revision Date Author Comments
# ebb0db62 04-Jul-2019 Augustin Cavalier <waddlesplash@gmail.com>

kits: Only export private dummy copy constructors for R5 ABI.

Fixes #546 (after all these years!)


# d3628dcd 10-Nov-2015 John Scipione <jscipione@gmail.com>

IK: Move CheckNodeIconHintPrivate to Tracker

* Move BPrivate::BNodeInfo::CheckNodeIconHintPrivate() to Tracker's
Model class.
* Rename HasVectorIconHint(BNode*) to CheckNodeIconHint(BNode*).
and make it check not only for vector icons but also if you have
BOTH large and mini icons.
* Replace instances of CheckNodeIconHintPrivate() with the newly
created CheckNodeIconHint().


# 9bbfee0f 07-Jul-2014 John Scipione <jscipione@gmail.com>

BNodeInfo: Style fixes

* Remove public method docs, they are in Haiku Book only.
* Format private method docs as doxygen.
* Other style fixes like explicit NULL checks.
* Remove dead code in GetIcon() that isn't coming back.
* Pointer style.


# a30a4a41 18-Jun-2014 John Scipione <jscipione@gmail.com>

Style fixes to Storage Kit classes.

No functional changes intended.

* Some variable renaming for clarity and consistency.
* Pointer style fixes.
* Added private method documentation back to cpp files for some methods.


# 81c42a76 07-Feb-2013 John Scipione <jscipione@gmail.com>

Move documentation from NodeInfo into the API docs.

* Delete the docs from NodeInfo.cpp and NodeInfo.h
* I snuck a couple of style fixes into NodeInfo.cpp
* I had to make a small modification to MimeType.dox to prevent it
from overriding the docs of one of the methods in NodeInfo.dox.


# 260da902 12-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

Rewrote BNodeInfo::GetTrackerIcon().
* Exit the function early in case of error, instead of maintaining the error
until the end.
* Separate more clearly the condition that a file type is available at all
versus not. This removes a redundancy when falling back to the generic
file icon.
* Add retrieving the icon from the super type. Even check if there is a
preferred app for the super type that supplies an icon before using the
icon of the super type itself.

Hopefully I didn't introduce new errors, but that the super type icon was not
used was the main problem I tried to fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27990 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8a97620 15-Nov-2006 Stephan Aßmus <superstippi@gmx.de>

* added new icon specific verions of GetIcon and SetIcon


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19300 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 59deaf10 11-Sep-2006 Stephan Aßmus <superstippi@gmx.de>

various changes to improve integration of vector icons
* Deskbar uses 32 bit icons now
* vector icons are now correctly converted to B_CMAP8 bitmaps
if no B_CMAP8 icon is available
* small fixes in Tracker (window mode menu)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18803 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9ecf9d1c 26-Aug-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Merge from layout management branch.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 31dc79a1 03-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

* Added B_MINI_ICON_TYPE and B_LARGE_ICON_TYPE to TypeConstants.h.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16996 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5351ff06 26-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Implemented CheckNodeIconHintPrivate() - this missing call was responsible for the
wrong icons Tracker showed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16883 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2297a36b 22-Mar-2006 Stephan Aßmus <superstippi@gmx.de>

* added functions to improve binary compatibility with old apps
-> Guido (for which there is source available though) is now
running fine on Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16860 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7b730235 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Fixed the attribute string error in other places as well.
* Now always returns B_BAD_DATA in case of attributes with the wrong size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15741 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 762eb223 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* NodeInfo::GetType() now returns B_BAD_DATA instead of B_BAD_VALUE if the
attribute is longer than B_MIME_TYPE_LENGTH.
* NodeInfo::GetType() now null terminates the attribute; you cannot expect
that strings in attributes are null terminated (it already wrote the null
byte to B_MIME_TYPE_LENGTH - 1 for safety, but why not do it right?).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15740 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 290bc091 28-Jun-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

We use B_BITMAP_NO_SERVER_LINK BBitmaps internally now. This should remove the only app_server dependency the registrar has before shutdown.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13307 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 88706bbe 22-May-2005 Axel Dörfler <axeld@pinc-software.de>

Added some compatibility exports for libtracker.so; not yet sure if we
will keep those two, though, as I don't think they are widely used.
Note, BPrivate::CheckNodeIconHintPrivate() is not implemented.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12769 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f5b1fba0 11-Jan-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Yuck! Bad typo. I wonder why the respective unit test ever passed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10680 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 425399b1 10-Mar-2004 Axel Dörfler <axeld@pinc-software.de>

If the MIME type couldn't be retrieved, it will now take the file type
into account; i.e. it will ask for a directory/volume/symlink/application icon.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6942 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 17e6de7a 03-Aug-2003 shadow303 <shadow303@nowhere.fake>

gcc 3 fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4227 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 98833b15 11-Jun-2003 haydentech <haydentech@nowhere.fake>

Cleaned-up the std namespace support


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3475 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a04efc92 06-Oct-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Added variable initializations. Not necessary, but they please the compiler.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1414 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 76ba3434 03-Sep-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Replaced applications of BBitmap::SetBits() by BBitmap::ImportBits().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@978 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f8b76382 17-Aug-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@795 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 78359574 16-Aug-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

The implementation is now complete and passes the tests. Reimplement almost all methods.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@780 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 09d84e61 12-Aug-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

+ Changed StorageKit namespace to BPrivate::Storage
+ Changed Sniffer namespace to BPrivate::Storage::Sniffer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@714 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 36a3a8f0 11-Aug-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved doxygen comments into the source file. Completed/extended/rewrote them. Changes to style and indentation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@707 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9bbfee0fd545c4971e6649864d4aa4d3685f338c 07-Jul-2014 John Scipione <jscipione@gmail.com>

BNodeInfo: Style fixes

* Remove public method docs, they are in Haiku Book only.
* Format private method docs as doxygen.
* Other style fixes like explicit NULL checks.
* Remove dead code in GetIcon() that isn't coming back.
* Pointer style.


# a30a4a41f948ebb03b95dab065a27a584ac0c97a 18-Jun-2014 John Scipione <jscipione@gmail.com>

Style fixes to Storage Kit classes.

No functional changes intended.

* Some variable renaming for clarity and consistency.
* Pointer style fixes.
* Added private method documentation back to cpp files for some methods.


# 81c42a7685fad4a6fb544f98259fdf57e1059a78 07-Feb-2013 John Scipione <jscipione@gmail.com>

Move documentation from NodeInfo into the API docs.

* Delete the docs from NodeInfo.cpp and NodeInfo.h
* I snuck a couple of style fixes into NodeInfo.cpp
* I had to make a small modification to MimeType.dox to prevent it
from overriding the docs of one of the methods in NodeInfo.dox.


# 260da902db41dd0e8c9821f92fbcd190c6b06ce7 12-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

Rewrote BNodeInfo::GetTrackerIcon().
* Exit the function early in case of error, instead of maintaining the error
until the end.
* Separate more clearly the condition that a file type is available at all
versus not. This removes a redundancy when falling back to the generic
file icon.
* Add retrieving the icon from the super type. Even check if there is a
preferred app for the super type that supplies an icon before using the
icon of the super type itself.

Hopefully I didn't introduce new errors, but that the super type icon was not
used was the main problem I tried to fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27990 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8a976202c0a387153849c97067127ab8e2beb3e 15-Nov-2006 Stephan Aßmus <superstippi@gmx.de>

* added new icon specific verions of GetIcon and SetIcon


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19300 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 59deaf10bcbd8e27fd028f1757e62b27e09e385f 11-Sep-2006 Stephan Aßmus <superstippi@gmx.de>

various changes to improve integration of vector icons
* Deskbar uses 32 bit icons now
* vector icons are now correctly converted to B_CMAP8 bitmaps
if no B_CMAP8 icon is available
* small fixes in Tracker (window mode menu)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18803 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9ecf9d1c1d4888d341a6eac72112c72d1ae3a4cb 26-Aug-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Merge from layout management branch.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 31dc79a18b4e73cddd78b71b7d74e8edb680b6f0 03-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

* Added B_MINI_ICON_TYPE and B_LARGE_ICON_TYPE to TypeConstants.h.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16996 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5351ff06d0a24f7ec8430e87f36edcfca4e6c092 26-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Implemented CheckNodeIconHintPrivate() - this missing call was responsible for the
wrong icons Tracker showed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16883 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2297a36b5b36a171c118b68e740c8c6a2b06003d 22-Mar-2006 Stephan Aßmus <superstippi@gmx.de>

* added functions to improve binary compatibility with old apps
-> Guido (for which there is source available though) is now
running fine on Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16860 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7b73023562532b0e042e8c442b2ed51b9bc57463 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Fixed the attribute string error in other places as well.
* Now always returns B_BAD_DATA in case of attributes with the wrong size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15741 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 762eb2233b69cafb4a2ca943ff0b9c5748dc351e 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* NodeInfo::GetType() now returns B_BAD_DATA instead of B_BAD_VALUE if the
attribute is longer than B_MIME_TYPE_LENGTH.
* NodeInfo::GetType() now null terminates the attribute; you cannot expect
that strings in attributes are null terminated (it already wrote the null
byte to B_MIME_TYPE_LENGTH - 1 for safety, but why not do it right?).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15740 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 290bc091c79a3bb397b5b4e715a1dcf7c9997042 28-Jun-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

We use B_BITMAP_NO_SERVER_LINK BBitmaps internally now. This should remove the only app_server dependency the registrar has before shutdown.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13307 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 88706bbe114653946d4c580b10f5cf036bee3033 22-May-2005 Axel Dörfler <axeld@pinc-software.de>

Added some compatibility exports for libtracker.so; not yet sure if we
will keep those two, though, as I don't think they are widely used.
Note, BPrivate::CheckNodeIconHintPrivate() is not implemented.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12769 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f5b1fba06374ede6c523370e2030ea36ed8eb562 11-Jan-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Yuck! Bad typo. I wonder why the respective unit test ever passed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10680 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 425399b165ab171dcb36e4714be2020a3b3f2292 10-Mar-2004 Axel Dörfler <axeld@pinc-software.de>

If the MIME type couldn't be retrieved, it will now take the file type
into account; i.e. it will ask for a directory/volume/symlink/application icon.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6942 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 17e6de7a37c5c61f45eb724de108daa70905cb8f 03-Aug-2003 shadow303 <shadow303@nowhere.fake>

gcc 3 fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4227 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 98833b15bf4967b0b12fda60065cda7ac83e091d 11-Jun-2003 haydentech <haydentech@nowhere.fake>

Cleaned-up the std namespace support


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3475 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a04efc92d03c28be336ca2eec9cef2196d8db092 06-Oct-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Added variable initializations. Not necessary, but they please the compiler.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1414 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 76ba3434f81d65243dbc5512872b7da262103396 03-Sep-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Replaced applications of BBitmap::SetBits() by BBitmap::ImportBits().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@978 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f8b7638264ec04102ce1c57db2fe8c630bb60772 17-Aug-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@795 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7835957412fae7eca62924bb4b27f53e0014bb06 16-Aug-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

The implementation is now complete and passes the tests. Reimplement almost all methods.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@780 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 09d84e61b6c2629d253dce1e7d7e944943d3e40e 12-Aug-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

+ Changed StorageKit namespace to BPrivate::Storage
+ Changed Sniffer namespace to BPrivate::Storage::Sniffer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@714 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 36a3a8f02343dcda07fbc25b33dc7e4fff79b36b 11-Aug-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved doxygen comments into the source file. Completed/extended/rewrote them. Changes to style and indentation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@707 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96