Commit Graph

167 Commits

Author SHA1 Message Date
Ingo Weinhold
cc3b892702 Storage Kit source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 01:07:11 +00:00
Ingo Weinhold
e0f91d2b8c Added implementation of SetBits() and new ImportBits() API methods.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-01 23:20:49 +00:00
Ingo Weinhold
17819be32b * Adjusted SetSupportedTypes() to make use of the new
BMimeType::SetSupportedType().
* {Get,Set}IconForType() now check the supplied type for validity.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-30 20:11:57 +00:00
Ingo Weinhold
f8cada890c Fixed iteration through message field entries in SetSupportedTypes().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-30 20:04:52 +00:00
Ingo Weinhold
35ab40ee3e Database::SetSupportedTypes() now installs the not yet installed supported types.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-30 20:03:06 +00:00
beveloper
042847af1f some more changes to the notification support. still not finished.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-30 00:34:19 +00:00
ejakowatz
9078d4766e Added Jack Burton's DataIO-related stuff and cleaned things up a bit.
Several files managed to get left out of the build process; changes to
support.src fixed that.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-29 04:59:46 +00:00
Tyler Dauwalder
976e1a9745 + Added fullSync parameter to SetSupportedTypes()
+ Implemented GetSupportingApps()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 23:59:23 +00:00
Tyler Dauwalder
b86972c240 Added GetSupportingApps() message field constants
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 23:58:08 +00:00
Tyler Dauwalder
41b9ba9155 Added GetSupportingApps()/SetSupportedTypes() functionality
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 23:57:30 +00:00
Tyler Dauwalder
682805b291 Added SupportingApps.cpp to libstorage
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 23:56:18 +00:00
Tyler Dauwalder
ee0cf10184 Handles supporting application management. This is an
initial, theoretically fully functional implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 23:52:52 +00:00
beveloper
c5c7139355 Started changes to get this compiling.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 20:24:17 +00:00
Philippe Houdoin
f048ab0138 Ooops, libnetapi.so should link against libnet.so!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 20:01:18 +00:00
ejakowatz
ac52c3780f New addition, with required modification to build file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 03:41:58 +00:00
Ingo Weinhold
bffaf34afe Initial version of provisional BBitmap implementation. Save SetBits() all functions of current interest are implemented. A helper class for palatte <-> true color conversion is in place. Nothing is tested. Currently not included in the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-28 00:42:18 +00:00
beveloper
8483ec04b2 include the net kit libaries
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-27 17:16:53 +00:00
Tyler Dauwalder
02fd0582dd Cleaned up warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-27 08:26:33 +00:00
Tyler Dauwalder
32f45afc26 + Added GetInstalled[Super]Types functionality
+ Cleaned up warnings
+ Added documentation


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-27 08:26:11 +00:00
Philippe Houdoin
f3dfda1779 Moving net kit libnet.so and libnetapi.so source code to /current.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-27 07:38:04 +00:00
Ingo Weinhold
657fea1c08 Fixed missing return value in SetType().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-25 22:50:55 +00:00
Ingo Weinhold
49aeab331d Added BNodeInfo and BAppFileInfo to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-25 22:50:11 +00:00
Ingo Weinhold
98da112cca Complete implementation. The 'supporting types' methods are untested as they need BMimeType/registar support. SetSupportedTypes() may need some adjustions when that is available.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-25 22:49:22 +00:00
ejakowatz
77a6586a2e Another test with minor tweaks to BLooper.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-25 15:44:28 +00:00
ejakowatz
cb5b0f6d58 Fixed SetCommonFilterList() so that the same list can't be added to more
than one looper.
Implemented UnlockFully(), and changed destructor and Quit() to use it.
Reordered the destructor slightly so as to delete fLockSem *after* the call
to UnlockFully().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 20:38:15 +00:00
Tyler Dauwalder
537842b6ee Split into storage/mime/* files, and thus removed
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 05:05:01 +00:00
Tyler Dauwalder
e20a514ae9 After implementing the BMimeType::GetInstalled[Super]Types()
functionality, it became apparent that some restructuring was
needed if I wanted to keep things clean and managble.
storage/MimeDatabase.{h,cpp} have been broken into:

storage/mime/database_support.{h,cpp}
+ MIME database constants
+ high-level database access functions like open_type(),
  read_mime_attr(), etc.

storage/mime/database_access.{h,cpp}
+ atomic read functions
+ is_installed()
+ get_icon_data()

storage/mime/Database.{h,cpp}
+ Mime::Database class, which is responsible for all write,
  non-atomic read, and mime monitor functionality.

storage/mime/InstalledTypes.{h,cpp}
+ Helper class for Mime::Database::GetInstalled[Super]Types()

storage/mime/Supertype.{h,cpp}
+ Helper class for Mime::InstalledTypes

I haven't merged my intial, somewhat cludgy GetInstalled[Super]Types
implementation into the new setup yet. That comes next, and it ought
to be a more graceful implementation now.

I also implemented BMimeType::Get/SetSupportingTypes(), though
they haven't been tested yet (sorry).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 05:04:02 +00:00
Tyler Dauwalder
1c4b41005c Added to_lower() functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 04:54:52 +00:00
ejakowatz
d008c62d53 Fixed a narsty little bug that suddenly started rearing its ugly head in
IsMessageWaiting() test #3.  fLastMessage wasn't getting initialized to
NULL on construction, and the random value was finally biting me.  All
better now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 03:08:44 +00:00
beveloper
eae26d3da1 Start adding notification support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-22 23:34:33 +00:00
beveloper
d0aedf22d8 This update adds a BeOS R5 compatible B_TIMECODE_DEFAULT.
Submitted by David McPaul.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-22 23:16:18 +00:00
ejakowatz
ff1ade6b3d More tests and fixes for bugs exposed by them. Also removed spurious
instantiation of BRoster from BArchivable, line 323, as per Tyler's
mention. =)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-22 03:43:06 +00:00
Tyler Dauwalder
3155eae222 + Added code/updated tests for
- AttrInfo
  - FileExtensions
+ Updated Delete() code to send monitor updates
+ Tenatively added "be:action" field to monitor messages
+ Added data type constants


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-21 10:55:20 +00:00
jrand
e39c71fce8 Remove R3 compatibility details from BPropertyInfo, fix memory leak and implement endian-ness
aware flatten and unflatten code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-21 06:44:27 +00:00
Tyler Dauwalder
1ed04c7ce3 Added code for:
+ {Get,Set}IconForType()
+ Delete*() functions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-20 09:37:04 +00:00
Ingo Weinhold
41b5558a3c Added explanative comment to get_app_path() and fixed the error return value of main_thread_for().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 20:21:10 +00:00
Tyler Dauwalder
dff6cb3f88 + Added code for:
- {Get,Set}PreferredApp()
  - {Get,Set}AppHint()
  - {Get,Set}Icon()   (though it's a hacked up temporary version)
+ Replaced B_SIMPLE_DATA with B_REG_RESULT


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 08:40:24 +00:00
Tyler Dauwalder
e9e5603860 Forgot a #include, I guess...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 08:38:16 +00:00
Tyler Dauwalder
55f345fd20 + Added code for:
- {Get,Set}PreferredApp()
  - {Get,Set}AppHint()
  - {Get,Set}Icon()
+ Added any missing doxygen

SetIcon() is currently not implemented as I would like,
due to us needing an OBOS::BBitmap implementation.
Thus there are two versions and the GetIconData()
function until that day comes around.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 08:37:50 +00:00
jrand
3841621d26 Fixed Flatten() and FlattenedSize() implementation so the unit tests pass now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 04:13:06 +00:00
Ingo Weinhold
83a812a1bb Adjusted the SetSupportedTypes() doxygen comments to reflect knowledge gained from tests -- I hope, I understand the syncAll flag now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 21:18:43 +00:00
beveloper
6c062d1f93 David McPaul added support for drop frame formats.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 12:26:59 +00:00
jrand
52ec2aa88b Fixed Unflatten() and FindMatch() so the unit tests pass now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 06:52:03 +00:00
jrand
75d07a502f Add the BPropertyInfo implementation to the library.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 04:30:06 +00:00
jrand
765a2199e3 Add initial BPropertyInfo implementation, courtesy of Marc Flerackers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 04:29:14 +00:00
Ingo Weinhold
d6b205f306 Added BAppFileInfo header, empty implementation with doxygen comments.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-17 23:59:41 +00:00
Ingo Weinhold
f8b7638264 Fixed some comments.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-17 23:58:22 +00:00
Tyler Dauwalder
f231d0901c + Added fMimeDatabase member
Implemented:
+ {Get,Set}{Long,Short}Description()
+ {Start,Stop}Watching()
+ Install(), Delete(), IsInstalled()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 22:06:51 +00:00
Tyler Dauwalder
fc7d3358e6 + Added MimeDatabase
+ OBOS app kit headers are now used


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 22:03:26 +00:00
Tyler Dauwalder
9f3d4851ac Initial checkin; MimeDatabase class used to handle all actual mime
database access.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 22:00:37 +00:00